visual studio 2010 - Not able to build qt5 in release -
i'm buiding qt 5 visual studio 2010 because need have debug symbols. use following commands:
configure -debug-and-release -force-debug-info -platform win32-msvc2010 -opensource -mp nmake but seems qt built in debug mode, because can see *d.dll files in qtbase/bin , qtbase/lib folders.
when try build sample qt project, goes ok in debug. in release following error:
1>link : fatal error lnk1181: cannot open input file 'qtmain.lib' this file indeed absent in qt folder.
i tried "-release" instead of "-debug-and-release" , created debug libraries instead of release.
i build qt5.0.2 configure -developer-build -opensource -nomake examples -nomake tests
in detail:
- install strawbey perl (http://strawberryperl.com/)
- install windows sdk http://msdn.microsoft.com/en-us/windows/desktop/aa904949 when using windows 7. on older versions of microsoft windows directx sdk should installed.
- download qt 5.0.2 source code http://qt-project.org/downloads
- start “open vs2012 x64 native tools command prompt“
- make sure python available on command prompt. when installing python can add python.exe environment path. (i used python 3.3)
- switch qt 5.0.2 source directory (directory contains configure.bat)
- run configure -developer-build -opensource -nomake examples -nomake tests
- and afterwards nmake
Comments
Post a Comment