Building terminal demo

  • "":
    Ends up with :
    @In file included from main.cpp:45:0:
    mainwindow.h:50:36: fatal error: QtSerialPort/QSerialPort: No such file or directory
    #include <QtSerialPort/QSerialPort>
    compilation terminated.
    @tom@oberon:~/qt/qt-qtserialport> more
    lessThan(QT_MAJOR_VERSION, 5) {
    TEMPLATE = subdirs
    SUBDIRS = src examples tests
    CONFIG += ordered

    !infile&#40;$$OUT_PWD/.qmake.cache, QTSERIALPORT_PROJECT_ROOT&#41; {
        system("echo QTSERIALPORT_PROJECT_ROOT = $$PWD >> $$OUT_PWD/.qmake.cache"&#41;
        system("echo QTSERIALPORT_BUILD_ROOT = $$OUT_PWD >> $$OUT_PWD/.qmake.cache"&#41;

    } else {

    How to set the include header path to qmake ?
    Using qt 5.3 @ OpenSuse 12.3

  • Lifetime Qt Champion

    Hi and welcome to devnet,

    Did you add

    @QT += serialport@

    to your pro file ?

  • Well there are several pro files. I just added that to the one in
    tom@oberon:~/qt/qt-qtserialport/src/serialport> more
    @QT = core

    QMAKE_DOCS = $$PWD/doc/qtserialport.qdocconf

    greaterThan(QT_MAJOR_VERSION, 4) {
    QT += core-private
    QT += serialport
    TARGET = QtSerialPort
    } else {
    TEMPLATE = lib
    TARGET = $$qtLibraryTarget(QtSerialPort$$QT_LIBINFIX)
    CONFIG += module create_prl

    Now I see that it also ships include headers ; absolute path :
    But why it won't work I cannot tell .
    Still the same error.

  • Lifetime Qt Champion

    It looks like you are trying to modify the modules pro file. If you want to build the example you should open the terminal/ file

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.