Bug 362046

Summary: Boost fails to compile
Product: [Applications] krita Reporter: robbie.bykowski
Component: GeneralAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: normal CC: halla
Priority: NOR    
Version First Reported In: git master (please specify the git hash!)   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description robbie.bykowski 2016-04-21 17:28:57 UTC
Following the guide, https://github.com/KDE/krita/tree/master/3rdparty

when I get to the point of compling boost it fails with:

>>> begin log
CUSTOMBUILD : error : msvc initialization: parameter 'version' inconsistent [C:\krita\externals\build\ext_boost\ext_boost.vcxproj]
CUSTOMBUILD : error : no value was specified in earlier initialization [C:krita\externals\build\ext_boost\ext_boost.vcxproj]
CUSTOMBUILD : error : an explicit value is specified now [C:\krita\externals\build\ext_boost\ext_boost.vcxproj]
  
Done Building Project "C:\krita\externals\build\ext_boost\ext_boost.vcxproj" (default targets) -- FAILED.

Build FAILED.
<<< end log

I did a bit of searching and came across this stackoverflow http://stackoverflow.com/questions/34293380/specifying-toolset-version-when-building-boost-1-55-with-msvc-2015

I found that the CMakeList.txt had be changed recently including what the stackoverflow says is the problem. I reverted commit c0147862c13df225dbc5fe4d65caff99d157a262 "Remove the need to rename boost dll and lib " and boost succesfully compiled. It appears the toolset variable does not support specific versioning and requires editing the project-config.jam instead, so I'm assuming that ext_boost will need to be patched first by cmake perhaps to force it to use version 14.0

>>> begin from stackoverflow
The previously specified version is in project-config.jam:

using msvc ; 

Change it to:

using msvc : 14.0 ;
<<< end from stackoverflow

Reproducible: Always

Steps to Reproduce:
1. Compile ext_boost : cmake --build . --config RelWithDebInfo --target ext_boost

Actual Results:  
CUSTOMBUILD : error : msvc initialization: parameter 'version' inconsistent [C:\krita\externals\build\ext_boost\ext_boost.vcxproj]
CUSTOMBUILD : error : no value was specified in earlier initialization [C:\krita\externals\build\ext_boost\ext_boost.vcxproj]
CUSTOMBUILD : error : an explicit value is specified now [C:\krita\externals\build\ext_boost\ext_boost.vcxproj]
  
Done Building Project "C:\krita\externals\build\ext_boost\ext_boost.vcxproj" (default targets) -- FAILED.

Build FAILED.

Expected Results:  
Build succeeded.
Comment 1 Halla Rempt 2016-05-26 06:38:43 UTC
Hm, I'm not sure what's up, but actually, it worked for me in win7 vm just now :-(