Arch compile error in Python[ServerFramework|AI].cpp
Moderator: Oberlus
Re: Arch compile error in Python[ServerFramework|AI].cpp
Actually, This got changed 8 days ago or so by adrian_brother - he added the find_package(PythonInterp REQUIRED) without a version (other similar calls for server and client have the version 2). Maybe that's what broke things for my environment.
Attached patches are released under GPL 2.0 or later.
Re: Arch compile error in Python[ServerFramework|AI].cpp
It says "authored on 23 Apr", so that would be a month, not just 8 days ago, but other than that, your guess sounds absolutely reasonable.Chriss wrote:Actually, This got changed 8 days ago or so by adrian_brother - he added the find_package(PythonInterp REQUIRED) without a version (other similar calls for server and client have the version 2). Maybe that's what broke things for my environment.
Re: Arch compile error in Python[ServerFramework|AI].cpp
oopsie
Kay, if you could commit that change and the boost 1.58 fix then I can go ahead and migrate the Arch package to Git sometime later this week.
Attached patches are released under GPL 2.0 or later.
Re: Arch compile error in Python[ServerFramework|AI].cpp
I want Dilvish to take a look at your fixes before, as that's Linux stuff and I'm not on Linux here - can't test your patches. Dilvish?Chriss wrote:Kay, if you could commit that change and the boost 1.58 fix then I can go ahead and migrate the Arch package to Git sometime later this week.
- adrian_broher
- Programmer
- Posts: 1156
- Joined: Fri Mar 01, 2013 9:52 am
- Location: Germany
Re: Arch compile error in Python[ServerFramework|AI].cpp
Chriss
- What's the output of `python -V`?
- The boost python library needs to be compiled against a specific version of python. FO requires 2.7. I don't know what Arch provides. Fedora provides both library variants as separate and parallel installable packages, The Debian package allows to link against either python2 or python3.
Resident code gremlin
Attached patches are released under GPL 2.0 or later.
Git author: Marcel Metz
Attached patches are released under GPL 2.0 or later.
Git author: Marcel Metz
Re: Arch compile error in Python[ServerFramework|AI].cpp
Apparently in some systems with both python2 and python3 installed, find_package(PythonInterp) will give 2.7, but find_package(PythonLibs) will find 3.x
See, for example, https://public.kitware.com/Bug/view.php?id=13794
As noted in the above link, this is apparently fixed cmake 3.1, but it may still need attention from us: as described in
https://bugs.debian.org/cgi-bin/bugrepo ... bug=677598 it sounds like the search for PythonLibs can still be a little finicky.
it sounds like probably we should be using
See, for example, https://public.kitware.com/Bug/view.php?id=13794
As noted in the above link, this is apparently fixed cmake 3.1, but it may still need attention from us: as described in
https://bugs.debian.org/cgi-bin/bugrepo ... bug=677598 it sounds like the search for PythonLibs can still be a little finicky.
it sounds like probably we should be using
Code: Select all
find_package(PythonInterp 2.7 EXACT)
find_package(PythonLibs ${PYTHON_VERSION_STRING} EXACT)
If I provided any code, scripts or other content here, it's released under GPL 2.0 and CC-BY-SA 3.0
Re: Arch compile error in Python[ServerFramework|AI].cpp
adrian_broher wrote:Chriss
- What's the output of `python -V`?
- The boost python library needs to be compiled against a specific version of python. FO requires 2.7. I don't know what Arch provides. Fedora provides both library variants as separate and parallel installable packages, The Debian package allows to link against either python2 or python3.
Code: Select all
[chris@desk ~]$ python -V
Python 3.4.3
[chris@desk ~]$ python2 -V
Python 2.7.9
[chris@desk ~]$ cmake --version
cmake version 3.2.2
Regarding EXACT, it seems to be enough to specify 2 to get version 2 and not 3 in my install. 2.7 with or without EXACT yields the same result.
Attached patches are released under GPL 2.0 or later.