Tuesday 15 April 2014

gcc - c++ Qt Compile error -



gcc - c++ Qt Compile error -

i trying compile illustration library. have qt installed think have link , dont know how. error:

g++ face_recognition.cpp -o test

in file included face_recognition.cpp:29:0: /usr/local/include/openbr/openbr_plugin.h:22:23: fatal error: qdatastream: no such file or directory #include ^ compilation terminated.

you can't compile qt application straight g++ because application must first go through qt's moc compiler.

if want build qt application cmd-line, create sure define appropriate .pro file specifies qt modules , other 3rd party headers/libraries want might use. instance:

qt += core widgets sources += \ main.cpp

then invoke qmake on command line in same directory .pro file build appropriate makefiles, , execute make build app.

qt gcc g++ openbr

No comments:

Post a Comment