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:

  1. install strawbey perl (http://strawberryperl.com/)
  2. 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.
  3. download qt 5.0.2 source code http://qt-project.org/downloads
  4. start “open vs2012 x64 native tools command prompt“
  5. make sure python available on command prompt. when installing python can add python.exe environment path. (i used python 3.3)
  6. switch qt 5.0.2 source directory (directory contains configure.bat)
  7. run configure -developer-build -opensource -nomake examples -nomake tests
  8. and afterwards nmake

Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

qt - Errors in generated MOC files for QT5 from cmake -