c++qtqt5.12

How to enable making objects from QSctpSocket?


I am attempting to use QSctpServer & QSctpSocket, but I can't make an object from none of these classes.

What is the problem?

OS: Ubuntu 16.04 Qt version: 5.12.3

I also visited Qt stream control transmission protocol (sctp) but confused about what exactly should I do!

.pro is as follows:

QT += core
QT += network
TARGET = TcpServer
CONFIG += console
CONFIG -= app_bundle
TEMPLATE = app

Solution

  • Compile Qt by enabling -sctp flag solved the problem. After goring to Qt source folder did the following:

    ./configure -sctp
    make 
    make install