Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-57668

Qt5.8: network/multistreamclient and multistreamserver not compiling

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P3: Somewhat important
    • None
    • 5.8.0 RC
    • Examples and Demos
    • x11, macOS, Win

    Description

      Qt5.8 installers from 12-Dec

      Install with default options, launch QtCreator and open example network/multistreamclient and compile, repeat steps for network/multistreamseerver. Both fail with following error:
      multistreamclient:

      g++ -c -pipe -g -std=gnu++11 -Wall -W -D_REENTRANT -fPIC -DQT_QML_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I../multistreamclient -I. -I/home/joaijala/data/Qt/Qt5.8.0_ent_597/5.8/gcc_64/include -I/home/joaijala/data/Qt/Qt5.8.0_ent_597/5.8/gcc_64/include/QtWidgets -I/home/joaijala/data/Qt/Qt5.8.0_ent_597/5.8/gcc_64/include/QtGui -I/home/joaijala/data/Qt/Qt5.8.0_ent_597/5.8/gcc_64/include/QtNetwork -I/home/joaijala/data/Qt/Qt5.8.0_ent_597/5.8/gcc_64/include/QtCore -I. -isystem /usr/include/libdrm -I/home/joaijala/data/Qt/Qt5.8.0_ent_597/5.8/gcc_64/mkspecs/linux-g++ -o client.o ../multistreamclient/client.cpp
      In file included from ../multistreamclient/client.cpp:54:0:
      ../multistreamclient/client.h:85:5: error: ‘QSctpSocket’ does not name a type
           QSctpSocket *sctpSocket;
           ^
      ../multistreamclient/client.cpp: In constructor ‘Client::Client(QWidget*)’:
      ../multistreamclient/client.cpp:67:5: error: ‘sctpSocket’ was not declared in this scope
           sctpSocket = new QSctpSocket(this);
           ^
      ../multistreamclient/client.cpp:67:22: error: expected type-specifier before ‘QSctpSocket’
           sctpSocket = new QSctpSocket(this);
                            ^
      ../multistreamclient/client.cpp:67:22: error: expected ‘;’ before ‘QSctpSocket’
      ../multistreamclient/client.cpp:126:26: error: ‘QSctpSocket’ has not been declared
           connect(sctpSocket, &QSctpSocket::connected, this, &Client::connected);
                                ^
      ../multistreamclient/client.cpp:127:26: error: ‘QSctpSocket’ has not been declared
           connect(sctpSocket, &QSctpSocket::disconnected, this, &Client::disconnected);
                                ^
      ../multistreamclient/client.cpp:128:26: error: ‘QSctpSocket’ has not been declared
           connect(sctpSocket, &QSctpSocket::channelReadyRead, this, &Client::readDatagram);
                                ^
      ../multistreamclient/client.cpp: In destructor ‘virtual Client::~Client()’:
      ../multistreamclient/client.cpp:153:12: error: ‘sctpSocket’ was not declared in this scope
           delete sctpSocket;
                  ^
      ../multistreamclient/client.cpp: In member function ‘void Client::disconnected()’:
      ../multistreamclient/client.cpp:166:5: error: ‘sctpSocket’ was not declared in this scope
           sctpSocket->close();
           ^
      ../multistreamclient/client.cpp: In member function ‘void Client::requestConnect()’:
      ../multistreamclient/client.cpp:172:5: error: ‘sctpSocket’ was not declared in this scope
           sctpSocket->abort();
           ^
      ../multistreamclient/client.cpp: In member function ‘void Client::readDatagram(int)’:
      ../multistreamclient/client.cpp:179:5: error: ‘sctpSocket’ was not declared in this scope
           sctpSocket->setCurrentReadChannel(channel);
           ^
      ../multistreamclient/client.cpp: In member function ‘void Client::displayError(QAbstractSocket::SocketError)’:
      ../multistreamclient/client.cpp:201:39: error: ‘sctpSocket’ was not declared in this scope
                                        .arg(sctpSocket->errorString()));
                                             ^
      ../multistreamclient/client.cpp: In member function ‘void Client::writeDatagram(const QByteArray&)’:
      ../multistreamclient/client.cpp:215:9: error: ‘sctpSocket’ was not declared in this scope
           if (sctpSocket->isValid() && sctpSocket->state() == QAbstractSocket::ConnectedState) {
               ^
      make: *** [client.o] Error 1
      08:54:09: The process "/usr/bin/make" exited with code 2.
      Error while building/deploying project multistreamclient (kit: Desktop Qt 5.8.0 GCC 64bit)
      When executing step "Make"
      

      multistreamserver:

      ../multistreamserver/server.cpp: In constructor ‘Server::Server(QWidget*)’:
      ../multistreamserver/server.cpp:68:38: error: invalid use of incomplete type ‘class QSctpServer’
           sctpServer = new QSctpServer(this);
                                            ^
      In file included from ../multistreamserver/server.cpp:55:0:
      ../multistreamserver/server.h:59:7: error: forward declaration of ‘class QSctpServer’
       class QSctpServer;
             ^
      ../multistreamserver/server.cpp:69:15: error: invalid use of incomplete type ‘class QSctpServer’
           sctpServer->setMaximumChannelCount(NumberOfChannels);
                     ^
      In file included from ../multistreamserver/server.cpp:55:0:
      ../multistreamserver/server.h:59:7: error: forward declaration of ‘class QSctpServer’
       class QSctpServer;
             ^
      ../multistreamserver/server.cpp:78:26: error: incomplete type ‘QSctpServer’ used in nested name specifier
           connect(sctpServer, &QSctpServer::newConnection, this, &Server::newConnection);
                                ^
      [log cutted here]
      

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              janihe Jani Heikkinen
              joaijala Johanna Äijälä
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes