Page 2 of 2

Re: Trying to build SDK

Posted: Fri Oct 04, 2019 8:26 pm
by em3
Geoff the Medio wrote:
Fri Oct 04, 2019 12:03 pm
Are you running this from the Visual Studio 2017 Developer Command Prompt? Perhaps the Boost stuff is looking for environment variables that are missing if using another command prompt or configuration thereof?
I hadn't run cmake through the VS command prompt before. I did just now, and the results are mostly the same (I verified build log with Meld). Still 13 warnings and one error - the clang-linux one.

Re: Trying to build SDK

Posted: Fri Oct 04, 2019 8:30 pm
by em3
As a side note - I don't have the Visual Studio IDE installed, only the build tools (that is, msbuild, cl, link, etc), which are available as a separate download from Microsoft. Visual Studio 2017 Developer Command Propmt (that is, vcvarsall.bat) is included.

Re: Trying to build SDK

Posted: Sat Oct 05, 2019 11:09 am
by em3
I added LLVM\bin to my PATH. So far so good:

Code: Select all

  notice: will use 'clang++' for clang-linux, condition <toolset>clang-linux-8.0.0
  notice: Searching '.' for project-config configuration file 'project-config.jam'.
  notice: Loading project-config configuration file 'project-config.jam' from '.'.
  notice: [msvc-cfg] msvc-14.1 detected, command: 'C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x64\cl.exe'
  notice: will use 'C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x64\cl.exe' for msvc, condition <toolset>msvc-14.1
  
Still going strong.

Edit: Yup, that did the trick. 0 warnings, 0 errors.

Re: Trying to build SDK

Posted: Sat Nov 23, 2019 1:10 pm
by o01eg
I've prepared PR which allows to build MSVC SDK without clang: https://github.com/freeorion/freeorion-sdk/pull/53