Trying to build SDK

Questions, problems and discussion about compiling FreeOrion.

Moderators: Oberlus, Oberlus

Message
Author
User avatar
em3
Vacuum Dragon
Posts: 599
Joined: Sun Sep 25, 2011 2:51 pm

Re: Trying to build SDK

#16 Post by em3 » Fri Oct 04, 2019 8:26 pm

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.
[...] for Man has earned his right to hold this planet against all comers, by virtue of occasionally producing someone totally batshit insane. - Randall Munroe, title text to xkcd #556

User avatar
em3
Vacuum Dragon
Posts: 599
Joined: Sun Sep 25, 2011 2:51 pm

Re: Trying to build SDK

#17 Post by em3 » Fri Oct 04, 2019 8:30 pm

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.
[...] for Man has earned his right to hold this planet against all comers, by virtue of occasionally producing someone totally batshit insane. - Randall Munroe, title text to xkcd #556

User avatar
em3
Vacuum Dragon
Posts: 599
Joined: Sun Sep 25, 2011 2:51 pm

Re: Trying to build SDK

#18 Post by em3 » Sat Oct 05, 2019 11:09 am

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.
[...] for Man has earned his right to hold this planet against all comers, by virtue of occasionally producing someone totally batshit insane. - Randall Munroe, title text to xkcd #556

o01eg
Programmer
Posts: 582
Joined: Sat Dec 10, 2011 5:46 am

Re: Trying to build SDK

#19 Post by o01eg » Sat Nov 23, 2019 1:10 pm

I've prepared PR which allows to build MSVC SDK without clang: https://github.com/freeorion/freeorion-sdk/pull/53
Gentoo Linux x64, gcc-9.2, boost-1.71.0
Ubuntu Server 18.04 x64, gcc-7.4, boost-1.65.1
Welcome to slow multiplayer game at freeorion-lt.dedyn.io. Version 2019-12-08.203bc4c.
Donates are welcome: BTC:14XLekD9ifwqLtZX4iteepvbLQNYVG87zK

Post Reply