I am trying to build slicer 4.8 on Windows 7 using:
Visual studio 2013 update 5
Qt 4.8.7 using easy build option ‘Visual Studio 2013 64-bit Debu
@powershell -Command “$destDir=‘C:\D\Support’;$buildType=‘Debug’;$qtPlatform=‘win32-msvc2013’;$bits=‘64’;iex ((new-object net.webclient).DownloadString(‘https://raw.githubusercontent.com/jcfr/qt-easy-build/4.8.7/windows_build_qt.ps1’))”
I had to add Visual studio 2013 native command prompt to the Tools menu of VS 2013 following instructions on this link https://stackoverflow.com/questions/21476588/where-is-developer-command-prompt-for-vs2013 like so:
/k “C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools\VsDevCmd.bat”
Then i set cmake up with the VS 2013 -64 bit c++ toolkit.
Since, i was building for debuggin, I selected cmake-gui option cmake_configuration_types and deleted all types except ‘Debug’, selected the newly built qmake.exe in the previuos step. Then configuration and generation proceeded
Fired up VS 2013, opened Slicer.sln, in the side-bar right clicked ‘Slicer’ and selected option ‘Set as startup project’ and then did Build.
I don’t see where i selected any x86 build in all of this but it crashes with numerous errors starting with the LNK1112 conflict above, mostly with libraries having Qt in them. Any help will be appreciated.