Trying to build SDK

Questions, problems and discussion about compiling FreeOrion.

Moderator: Oberlus

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

Re: Trying to build SDK

#16 Post 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.
https://github.com/mmoderau
[...] 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: 630
Joined: Sun Sep 25, 2011 2:51 pm

Re: Trying to build SDK

#17 Post 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.
https://github.com/mmoderau
[...] 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: 630
Joined: Sun Sep 25, 2011 2:51 pm

Re: Trying to build SDK

#18 Post 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.
https://github.com/mmoderau
[...] 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: 2004
Joined: Sat Dec 10, 2011 5:46 am

Re: Trying to build SDK

#19 Post by o01eg »

I've prepared PR which allows to build MSVC SDK without clang: https://github.com/freeorion/freeorion-sdk/pull/53
Gentoo Linux x64, gcc-11.2, boost-1.78.0
Ubuntu Server 22.04 x64, gcc-12, boost-1.74.0
Welcome to the slow multiplayer game at freeorion-lt.dedyn.io.Version 2024-03-15.b3de094.
Donations're welcome:BTC:bc1q007qldm6eppqcukewtfkfcj0naut9njj7audnm

Post Reply