Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Showcase
  4. QtUPnP a C++ framework, based on QT5, to build easily an UPnP control point. It focuses on the UPnP/AV standards.

QtUPnP a C++ framework, based on QT5, to build easily an UPnP control point. It focuses on the UPnP/AV standards.

Scheduled Pinned Locked Moved Showcase
upnp
6 Posts 3 Posters 3.3k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    ptstream
    wrote on 12 Sept 2017, 16:03 last edited by ptstream 9 Dec 2017, 16:18
    #1

    QtUPnP a C++ framework, based on QT5, to build easily an UPnP control point. It focuses on the UPnP/AV standards. For this, a set of classes are created to handle easily media servers and media renderers and to hide the UPnP protocol. Of course UPnP protocol (UPnP/AV use UPnP) is implemented and your can handle every compatible devices.

    The source codes are available at https://github.com/ptstream/QtUPnP.
    For a better description, unzip https://github.com/ptstream/QtUPnP/blob/master/upnp/Doc/html.zip and choose index.html. It has been tested on Windows and Linux.

    This framework use only QT API, no other system dependent API .

    1 Reply Last reply
    3
    • V Offline
      V Offline
      VRonin
      wrote on 12 Sept 2017, 16:25 last edited by
      #2

      I was waiting for a UPnP API to play with. I'll definitely give it a spin

      "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
      ~Napoleon Bonaparte

      On a crusade to banish setIndexWidget() from the holy land of Qt

      1 Reply Last reply
      0
      • P Offline
        P Offline
        ptstream
        wrote on 13 Sept 2017, 10:01 last edited by
        #3

        Thank you very much for your interest in QtUPnP. I look forward to your remarks.
        Très bonne citation de Napoleon Bonaparte.

        1 Reply Last reply
        0
        • T Offline
          T Offline
          the_
          wrote on 13 Sept 2017, 10:10 last edited by
          #4

          trying to compile it with Qt5.9 (latest available from Arch Repository) I get

          $ qmake upnp.pro
          $ make
          g++ -c -pipe -std=c++11 -O2 -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -fPIC -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_XMLPATTERNS_LIB -DQT_NETWORK_LIB -DQT_XML_LIB -DQT_SCRIPT_LIB -DQT_SCRIPTTOOLS_LIB -DQT_CORE_LIB -I. -isystem /usr/include/qt -isystem /usr/include/qt/QtWidgets -isystem /usr/include/qt/QtGui -isystem /usr/include/qt/QtXmlPatterns -isystem /usr/include/qt/QtNetwork -isystem /usr/include/qt/QtXml -isystem /usr/include/qt/QtScript -isystem /usr/include/qt/QtScriptTools -isystem /usr/include/qt/QtCore -I. -isystem /usr/include/libdrm -I/usr/lib/qt/mkspecs/linux-g++ -o upnpsocket.o upnpsocket.cpp
          upnpsocket.cpp: In member function 'const QByteArray& QtUPnP::CUpnpSocket::readDatagrams()':
          upnpsocket.cpp:117:5: error: 'CWaitingLoop' has not been declared
               CWaitingLoop::wait (m_wait * 100, QEventLoop::ExcludeUserInputEvents);
               ^~~~~~~~~~~~
          upnpsocket.cpp:117:39: error: 'QEventLoop' has not been declared
               CWaitingLoop::wait (m_wait * 100, QEventLoop::ExcludeUserInputEvents);
                                                 ^~~~~~~~~~
          make: *** [Makefile:1450: upnpsocket.o] Error 1
          

          -- No support in PM --

          1 Reply Last reply
          0
          • P Offline
            P Offline
            ptstream
            wrote on 13 Sept 2017, 11:22 last edited by
            #5

            Sorry for the problem. I skip a Linux test. Now it is OK on GIT. I simply add include "waitingloop.hpp".
            Also I start with GIT and sometimes it is not obvious for me. Good luck.

            1 Reply Last reply
            2
            • T Offline
              T Offline
              the_
              wrote on 13 Sept 2017, 11:56 last edited by
              #6

              thanks for the quick fix :)

              -- No support in PM --

              1 Reply Last reply
              0

              1/6

              12 Sept 2017, 16:03

              • Login

              • Login or register to search.
              1 out of 6
              • First post
                1/6
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved