Articles . Notes: Build Settings
Some important personal build settings that I need to remember but tend to forget.
Qt Builds
configure
configure -nomake demos -nomake examples -no-qt3support -no-accessibility -no-phonon -no-phonon-backend -no-webkit -opensource -debug-and-release -shared -platform win32-msvc2010 -qt-style-windows -qt-style-windowsxp -qt-style-windowsvista
qmake
qmake -tp vc -r (in Visual Studio console)
Project Settings
- Enable wchar_t for compatibility with Visual C++' default wide character settings
- Define _HAS_ITERATOR_DEBUGGING 0 in Debug to disable STL runtime checks in debug builds (NOT VC++-defaults-compatible)
- Define _SECURE_SCL 0 in Release to disable STL runtime checks in release builds (NOT VC++-defaults-compatible)
Build
Only qtmain, QtCore and QtGui.
Boost Builds
bjam
bjam stage ^
link=static ^
--toolset=msvc-10.0 ^
--build-dir="%YOUR_BUILD_DIR%/build" ^
--stagedir="%YOUR_BUILD_DIR%/lib" ^
--with-date_time ^
--with-filesystem ^
--with-regex ^
--with-signals ^
--with-system ^
--with-test ^
--with-thread ^
define=_CRT_NONSTDC_NO_DEPRECATE ^
define=_CRT_SECURE_NO_DEPRECATE ^
define=_SCL_SECURE_NO_DEPRECATE ^
define=_SECURE_SCL=0 ^
define=_HAS_ITERATOR_DEBUGGING=0 ^
runtime-link=shared,static ^
threading=multi