c++ - Qt: Include .pri to use library - incorrect includes -
i'm trying use qtserialport (http://qt-project.org/wiki/qtserialport) qt 4.8. it's not part of version, have install manually. avoid manually install it, wanted include .pri file shipped qtserialport. got copy doing "git clone https://git.gitorious.org/qt/qtserialport.git". using in *.pro file with:
include(qtserialport/src/serialport/serialport-lib.pri)
but compiling fails bc. of includes like:
#include <qtserialport/qserialportglobal.h>
so guess these includes resolve /usr/include etc. there way fix without changing includes "foo.h" manually?
so guess these includes resolve /usr/include etc. there way fix without changing includes "foo.h" manually?
yes, sure.
first, need write config += serialport
per documentation.
you specify includepath qtserialport clone on system.
you still need library built, assume aware of it.
Comments
Post a Comment