Building terminal demo
-
"http://qt-project.org/doc/qt-5/qtserialport-terminal-example.html":http://qt-project.org/doc/qt-5/qtserialport-terminal-example.html
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 qtserialport.pro
lessThan(QT_MAJOR_VERSION, 5) {
TEMPLATE = subdirs
SUBDIRS = src examples tests
CONFIG += ordered!infile($$OUT_PWD/.qmake.cache, QTSERIALPORT_PROJECT_ROOT) { system("echo QTSERIALPORT_PROJECT_ROOT = $$PWD >> $$OUT_PWD/.qmake.cache") system("echo QTSERIALPORT_BUILD_ROOT = $$OUT_PWD >> $$OUT_PWD/.qmake.cache") }
} else {
load(qt_parts)
}
@How to set the include header path to qmake ?
Using qt 5.3 @ OpenSuse 12.3 -
-
Well there are several pro files. I just added that to the one in
tom@oberon:~/qt/qt-qtserialport/src/serialport> more serialport.pro
@QT = coreQMAKE_DOCS = $$PWD/doc/qtserialport.qdocconf
include($$PWD/serialport-lib.pri)greaterThan(QT_MAJOR_VERSION, 4) {
load(qt_build_config)
QT += core-private
QT += serialport
TARGET = QtSerialPort
load(qt_module)
} else {
TEMPLATE = lib
TARGET = $$qtLibraryTarget(QtSerialPort$$QT_LIBINFIX)
include($$PWD/qt4support/install-helper.pri)
CONFIG += module create_prl
mac:QMAKE_FRAMEWORK_BUNDLE_NAME = $$TARGET
}@Now I see that it also ships include headers ; absolute path :
tom@oberon:~/qt/qt-qtserialport/include/QtSerialPort>
But why it won't work I cannot tell .
Still the same error. -
It looks like you are trying to modify the modules pro file. If you want to build the example you should open the terminal/terminal.pro file