user14416
user14416

Reputation: 3032

qmake configuration

How I change qmake configuration. In all projects which I make, qmake puts -fno-exceptions -fno-rtti -DQT_NO_DYNAMIC_CAST flags in Makefile.Realease and other undesirable flags. How I can change this behavior.

I am on Windows. I use mingw-64 (ruben build). I used the following commands to build qt 4.8.3:

    ..\src\configure.exe -opensource -confirm-license -plugin-sql-mysql -plugin-sql-sqlite -no-dsp -no-vcproj -no-qt3support -no-phonon -no-phonon-backend -platform win32-g++  -largefile -fontconfig -no-webkit -nomake examples -nomake demos -prefix "D:\qt\4.8.3\x86_64-w64-mingw32"  -I "D:\mysql\include" -L "D:\mysql\lib" -l mysql

make

make install

Upvotes: 0

Views: 1732

Answers (1)

Nikos C.
Nikos C.

Reputation: 51930

Does it help when you add exceptions and rtti to your CONFIG variable?

CONFIG += exceptions rtti

You should probably make sure that your custom Qt build has exception and rtti support enabled:

configure.exe -exceptions -rtti [...]

Upvotes: 1

Related Questions