Linux Dockerfile?
Moderator: Oberlus
Linux Dockerfile?
I see some forum posts (viewtopic.php?p=94965#p94965) mentioning a Dockerfile to build FO on Linux.
I found it here https://github.com/freeorion/freeorion- ... Dockerfile.
I use Linux via a VM and I've never built anything on it. I've been learning Docker and since I'm basically creating a build environment from scratch anyway, maybe it would be to my advantage to update the Dockerfile to build FO. Does anyone have any recommendations?
I found it here https://github.com/freeorion/freeorion- ... Dockerfile.
I use Linux via a VM and I've never built anything on it. I've been learning Docker and since I'm basically creating a build environment from scratch anyway, maybe it would be to my advantage to update the Dockerfile to build FO. Does anyone have any recommendations?
Re: Linux Dockerfile?
What target platform you are going to build FreeOrion?human2 wrote: ↑Wed Mar 17, 2021 6:22 am I see some forum posts (viewtopic.php?p=94965#p94965) mentioning a Dockerfile to build FO on Linux.
I found it here https://github.com/freeorion/freeorion- ... Dockerfile.
I use Linux via a VM and I've never built anything on it. I've been learning Docker and since I'm basically creating a build environment from scratch anyway, maybe it would be to my advantage to update the Dockerfile to build FO. Does anyone have any recommendations?
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
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
Re: Linux Dockerfile?
Linux and macOS. I've got a thread about my macOS build adventures here viewtopic.php?f=24&t=11962&p=105492#p105492.
Re: Linux Dockerfile?
I'm using docker to build packages for Ubuntu from Debian. Dockerfile is based on the one you mentioned.human2 wrote: ↑Wed Mar 17, 2021 1:45 pm Linux and macOS. I've got a thread about my macOS build adventures here viewtopic.php?f=24&t=11962&p=105492#p105492.
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
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
Re: Linux Dockerfile?
Ok, I tried to build using that old Dockerfile and I get this error after running cmake ../freeorion.
I updated the Dockerfile to pull from "focal-20210217" instead of "bionic-20190307" and that didn't go so well. I could try to debug this but I am hoping you can share your Dockerfile instead.
Code: Select all
CMake Error at /usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
Could NOT find PythonInterp: Found unsuitable version "3.6.9", but required
is at least "3.9" (found /usr/bin/python3)
Call Stack (most recent call first):
/usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:376 (_FPHSA_FAILURE_MESSAGE)
/usr/share/cmake-3.10/Modules/FindPythonInterp.cmake:152 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:231 (find_package)
Re: Linux Dockerfile?
I still build with bionic because FreeOrion minimum python version is 3.5.human2 wrote: ↑Wed Mar 17, 2021 3:09 pm Ok, I tried to build using that old Dockerfile and I get this error after running cmake ../freeorion.
I updated the Dockerfile to pull from "focal-20210217" instead of "bionic-20190307" and that didn't go so well. I could try to debug this but I am hoping you can share your Dockerfile instead.Code: Select all
CMake Error at /usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:137 (message): Could NOT find PythonInterp: Found unsuitable version "3.6.9", but required is at least "3.9" (found /usr/bin/python3) Call Stack (most recent call first): /usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:376 (_FPHSA_FAILURE_MESSAGE) /usr/share/cmake-3.10/Modules/FindPythonInterp.cmake:152 (FIND_PACKAGE_HANDLE_STANDARD_ARGS) CMakeLists.txt:231 (find_package)
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
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
Re: Linux Dockerfile?
Ugh. I know what I did. I changed the python required version in the CMakeLists.txt because I couldn't get the macOS version to build using the old Python. I fixed it and it worked. I'm running make now.
Re: Linux Dockerfile?
Hm. It failed.
Code: Select all
[ 43%] Building C object CMakeFiles/freeorioncommon.dir/util/binreloc.c.o
[ 43%] Linking CXX shared library libfreeorioncommon.so
[ 43%] Built target freeorioncommon
Scanning dependencies of target freeorionparseobj
[ 43%] Building CXX object CMakeFiles/freeorionparseobj.dir/parse/ArithmeticRules.cpp.o
c++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-7/README.Bugs> for instructions.
CMakeFiles/freeorionparseobj.dir/build.make:62: recipe for target 'CMakeFiles/freeorionparseobj.dir/parse/ArithmeticRules.cpp.o' failed
make[2]: *** [CMakeFiles/freeorionparseobj.dir/parse/ArithmeticRules.cpp.o] Error 4
CMakeFiles/Makefile2:250: recipe for target 'CMakeFiles/freeorionparseobj.dir/all' failed
make[1]: *** [CMakeFiles/freeorionparseobj.dir/all] Error 2
Makefile:151: recipe for target 'all' failed
make: *** [all] Error 2
Re: Linux Dockerfile?
Looks like not enough memory to build highly boosted c++ code )human2 wrote: ↑Wed Mar 17, 2021 4:35 pm Hm. It failed.
Code: Select all
[ 43%] Building C object CMakeFiles/freeorioncommon.dir/util/binreloc.c.o [ 43%] Linking CXX shared library libfreeorioncommon.so [ 43%] Built target freeorioncommon Scanning dependencies of target freeorionparseobj [ 43%] Building CXX object CMakeFiles/freeorionparseobj.dir/parse/ArithmeticRules.cpp.o c++: internal compiler error: Killed (program cc1plus) Please submit a full bug report, with preprocessed source if appropriate. See <file:///usr/share/doc/gcc-7/README.Bugs> for instructions. CMakeFiles/freeorionparseobj.dir/build.make:62: recipe for target 'CMakeFiles/freeorionparseobj.dir/parse/ArithmeticRules.cpp.o' failed make[2]: *** [CMakeFiles/freeorionparseobj.dir/parse/ArithmeticRules.cpp.o] Error 4 CMakeFiles/Makefile2:250: recipe for target 'CMakeFiles/freeorionparseobj.dir/all' failed make[1]: *** [CMakeFiles/freeorionparseobj.dir/all] Error 2 Makefile:151: recipe for target 'all' failed make: *** [all] Error 2
What are available memory or memory limits?
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
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
- Geoff the Medio
- Programming, Design, Admin
- Posts: 13587
- Joined: Wed Oct 08, 2003 1:33 am
- Location: Munich
Re: Linux Dockerfile?
Consider also only single non-parallel building for Parsers.
Re: Linux Dockerfile?
My Docker was assigned 2 GB. I upped it to 4 GB and will try again.
I have no idea how to change that.Geoff the Medio wrote: ↑Wed Mar 17, 2021 4:47 pm Consider also only single non-parallel building for Parsers.
Re: Linux Dockerfile?
Call build command with -j1human2 wrote: ↑Wed Mar 17, 2021 5:24 pmI have no idea how to change that.Geoff the Medio wrote: ↑Wed Mar 17, 2021 4:47 pm Consider also only single non-parallel building for Parsers.
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
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
Re: Linux Dockerfile?
It built!
I'm trying to run this on Lubuntu 20.04. I've been able to install sdl, openal, but it's trying to load libboost_locale.so.1.62.0 and the oldest version on apt is libboost_locale.so.1.67.0. I don't know what to do about this.
I'm trying to run this on Lubuntu 20.04. I've been able to install sdl, openal, but it's trying to load libboost_locale.so.1.62.0 and the oldest version on apt is libboost_locale.so.1.67.0. I don't know what to do about this.
Code: Select all
./freeorion: error while loading shared libraries: libboost_locale.so.1.62.0: cannot open shared object file: No such file or directory
Re: Linux Dockerfile?
You should use same ubuntu version to build it. Bionic from Dockerfile is 18.04 so it isn't compatible with 20.04human2 wrote: ↑Wed Mar 17, 2021 7:47 pm It built!
I'm trying to run this on Lubuntu 20.04. I've been able to install sdl, openal, but it's trying to load libboost_locale.so.1.62.0 and the oldest version on apt is libboost_locale.so.1.67.0. I don't know what to do about this.
Code: Select all
./freeorion: error while loading shared libraries: libboost_locale.so.1.62.0: cannot open shared object file: No such file or directory
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
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
Re: Linux Dockerfile?
Which version of FreeOrion are you trying to build? You can use my PPA branches to build deb packages then install freeorion package in OS.
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
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