Could not find boost_python36 (Ubuntu 18.04)

Questions, problems and discussion about compiling FreeOrion.

Moderator: Oberlus

Message
Author
Ophiuchus
Programmer
Posts: 3433
Joined: Tue Sep 30, 2014 10:01 am
Location: Wall IV

Re: Could not find boost_python36 (Ubuntu 18.04)

#16 Post by Ophiuchus »

Ophiuchus wrote: Tue Mar 24, 2020 5:06 pm So where are the libs in real?

Here in fedora they are in /usr/lib64/

Also i think you can tell cmake to ignore boost if the version is too low:

CMakeLists.txt -

set(MINIMUM_BOOST_VERSION 1.58.0)
Just a reminder to myself besides installing boost-python3-devel (fedora). Had to set following symlink in /usr/lib64 (fedora) or /usr/lib/x86_64-linux-gnu/ (ubuntu)

Code: Select all

ln -s libboost_python3.so.1.66.0 libboost_python3-py36.so
Any code or patches in anything posted here is released under the CC and GPL licences in use for the FO project.

Look, ma... four combat bouts!

User avatar
adrian_broher
Programmer
Posts: 1156
Joined: Fri Mar 01, 2013 9:52 am
Location: Germany

Re: Could not find boost_python36 (Ubuntu 18.04)

#17 Post by adrian_broher »

Ophiuchus wrote: Tue Jul 07, 2020 6:17 pm Just a reminder to myself besides installing boost-python3-devel (fedora). Had to set following symlink in /usr/lib64 (fedora) or /usr/lib/x86_64-linux-gnu/ (ubuntu)

Code: Select all

ln -s libboost_python3.so.1.66.0 libboost_python3-py36.so
There is no need to do that. First of all the FindBoost CMake module takes care of such platform library naming differences (the symlink name is not the default style Fedora names development libraries, so you are breaking your installation in a subtle way that will bite you in the arse in the future). Also the non-versioned so file is always provided by the corresponding devel package

See also: https://bugzilla.redhat.com/show_bug.cgi?id=1253049


To find possible candidates you can use `dnf whatprovides` with or without globbing:

Code: Select all

$ sudo dnf whatprovides *libboost_python*.so
Last metadata expiration check: 4:04:04 ago on Tue Jul  7 17:24:57 2020.
boost-python2-devel-1.69.0-9.fc31.i686 : Shared object symbolic links for Boost.Python 2
Repo        : fedora
Matched from:
Other       : *libboost_python*.so

boost-python2-devel-1.69.0-9.fc31.x86_64 : Shared object symbolic links for Boost.Python 2
Repo        : fedora
Matched from:
Other       : *libboost_python*.so

boost-python2-devel-1.69.0-12.fc31.i686 : Shared object symbolic links for Boost.Python 2
Repo        : updates
Matched from:
Other       : *libboost_python*.so

boost-python2-devel-1.69.0-12.fc31.x86_64 : Shared object symbolic links for Boost.Python 2
Repo        : @System
Matched from:
Other       : *libboost_python*.so

boost-python2-devel-1.69.0-12.fc31.x86_64 : Shared object symbolic links for Boost.Python 2
Repo        : updates
Matched from:
Other       : *libboost_python*.so

boost-python3-devel-1.69.0-9.fc31.i686 : Shared object symbolic links for Boost.Python 3
Repo        : fedora
Matched from:
Other       : *libboost_python*.so

boost-python3-devel-1.69.0-9.fc31.x86_64 : Shared object symbolic links for Boost.Python 3
Repo        : fedora
Matched from:
Other       : *libboost_python*.so

boost-python3-devel-1.69.0-12.fc31.i686 : Shared object symbolic links for Boost.Python 3
Repo        : updates
Matched from:
Other       : *libboost_python*.so

boost-python3-devel-1.69.0-12.fc31.x86_64 : Shared object symbolic links for Boost.Python 3
Repo        : @System
Matched from:
Other       : *libboost_python*.so

boost-python3-devel-1.69.0-12.fc31.x86_64 : Shared object symbolic links for Boost.Python 3
Repo        : updates
Matched from:
Other       : *libboost_python*.so
Resident code gremlin
Attached patches are released under GPL 2.0 or later.
Git author: Marcel Metz

Ophiuchus
Programmer
Posts: 3433
Joined: Tue Sep 30, 2014 10:01 am
Location: Wall IV

Re: Could not find boost_python36 (Ubuntu 18.04)

#18 Post by Ophiuchus »

adrian_broher wrote: Tue Jul 07, 2020 7:29 pm
There is no need to do that.... Also the non-versioned so file is always provided by the corresponding devel package
Thanks, cleaned it up accordingly.
Any code or patches in anything posted here is released under the CC and GPL licences in use for the FO project.

Look, ma... four combat bouts!

Post Reply