The current MITK master fails to build on my system due to problems building Boost (and later Matchpoint)
1>------ Build started: Project: Boost, Configuration: Release x64 ------ 1>Building Custom Rule D:/projects/bug/MITK/CMakeLists.txt 1>CMake does not need to re-run because D:/projects/bug/bin/CMakeFiles/generate.stamp is up-to-date. 1>Creating directories for 'Boost' 1>Performing download step (download, verify and extract) for 'Boost' 1>-- Downloading... 1> dst='D:/projects/bug/bin/ep/src/boost_1_64_0.7z' 1> timeout='none' 1>-- Using src='http://mitk.org/download/thirdparty/boost_1_64_0.7z' 1>-- [download 0% complete] <SNIP> 1>-- [download 100% complete] 1>-- verifying file... 1> file='D:/projects/bug/bin/ep/src/boost_1_64_0.7z' 1>-- Downloading... done 1>-- extracting... 1> src='D:/projects/bug/bin/ep/src/boost_1_64_0.7z' 1> dst='D:/projects/bug/bin/ep/src/Boost' 1>-- extracting... [tar xfz] 1>-- extracting... [analysis] 1>-- extracting... [rename] 1>-- extracting... [clean up] 1>-- extracting... done 1>No update step for 'Boost' 1>No patch step for 'Boost' 1>Performing configure step for 'Boost' 1>Building Boost.Build engine 1> 1>Failed to build Boost.Build engine. 1>Please consult bootstrap.log for further diagnostics. 1> 1>You can try to obtain a prebuilt binary from 1> 1> http://sf.net/project/showfiles.php?group_id=7586&package_id=72941 1> 1>Also, you can file an issue at http://svn.boost.org 1>Please attach bootstrap.log in that case. 1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(171,5): error MSB6006: "cmd.exe" exited with code 2. 1>Done building project "Boost.vcxproj" -- FAILED.
bootstrap.log reads:
********************************************************************** ** Visual Studio 2017 Developer Command Prompt v15.0.26730.8 ** Copyright (c) 2017 Microsoft Corporation ********************************************************************** [vcvarsall.bat] Environment initialized for: 'x86' ### ### Using 'vc141' toolset. ### yyacc.c c1: fatal error C1083: Cannot open source file: 'yyacc.c': No such file or directory
Which seems to indicate that Microsofts changes in their directory structure might be at fault. MSVS 2017 (VC15.3.1) is the version supposed to be used, the above log indicates 14.1. The development console is now at
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\Tools\VsDevCmd.bat
In contrast MSVS 2015 called
C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools\VsDevCmd.bat
and the vcvarsall.bat is at
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat
instead of
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat
There seems to be a problem for boost recognizing the correct one.
Possibly this occurs for me only because I have several versions of visual studio installed.