Bug 362046 - Boost fails to compile
Summary: Boost fails to compile
Status: RESOLVED WORKSFORME
Alias: None
Product: krita
Classification: Applications
Component: General (other bugs)
Version First Reported In: git master (please specify the git hash!)
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-21 17:28 UTC by robbie.bykowski
Modified: 2016-05-26 06:38 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 :-(