2012-12-07 49 views
0

我如何更改qmake配置。在我製作的所有項目中,qmake在Makefile.Realease和其他不需要的標誌中放置了-fno-exceptions -fno-rtti -DQT_NO_DYNAMIC_CAST標誌。我如何改變這種行爲。qmake配置

我在Windows上。我使用mingw-64(ruben 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 
+0

這個問題是非常相似[QMAKE:如何刪除編譯器標誌...](HTTP ://stackoverflow.com/questions/8241567/qmake-how-to-remove-compiler-flag-for-a-certain-project-without-changing-qmake)。也許你的答案在那裏。 – jwernerny

回答

1

有何幫助時加exceptionsrttiCONFIG變量?

 
CONFIG += exceptions rtti 

你也許應該確保您的自定義的Qt構建有例外和RTTI支持啓用:

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