Discussion:
adding compiler options to a Qt project
blake82
2009-09-05 02:53:48 UTC
Permalink
Hi All,



I'm having problems with a Qt project I'm working on.



I need to specify some compiler flags for g++ ( -O3 & -pg to start with), but Netbeans removes the "Additional Options" field from the C++ compiler properties when project configuration is set to Qt Application.



Any ideas on how I can make this happen?



Thanks!



Blake
chessmani
2009-09-08 11:35:09 UTC
Permalink
I'm having the same problem. In my case I want to use OpenCV together with Qt.
Alexey Vladykin
2009-09-08 15:36:36 UTC
Permalink
Try adding
QMAKE_CXXFLAGS += <your flags>
in project properties->Build->Qt->Expert->Custom definitions

Alexey
chessmani
2009-09-14 11:00:38 UTC
Permalink
Thx for the hint. In my case I needed to specify libs for the linker, which I achieved using



LIBS += ...

Loading...