Comments (14)
Did you install python3-dev
? It looks like it cant find /usr/lib64/libpython3.3.so or 3.4. Does it exist on your machine? You probably might have a look at the building guidelines.
from openage.
yes. I've installed python3-dev. I've been looking at the guidelines as well, to no avail.
from openage.
As a workaround, you can manually define PYTHON_LIBRARIES
and PYTHON_INCLUDEDIRS
. Have a look at the OSX discussion, see svkurowski's comment. However that's hardly a solution. What does this minimal example output?
from openage.
tried setting ENV .. no luck.
$ ~/_code/openage$ env | grep PY
PYTHON_LIBRARIES=/usr/lib/python3.4/config-3.4m-x86_64-linux-gnu/libpython3.4m.so
PYTHON_INCLUDE_DIR=/usr/include/python3.4
from openage.
About your issue, have you tried the python 3.3 (instead of 3.4)?
from openage.
Link for what I think you can do to install other versions http://stackoverflow.com/a/10961035/1322969
from openage.
@daveheitzman please try the minimal example... the workaround doesn't use env, but passes the defines as command-line arguments (./configure --raw-cmake-args -DPYTHON_INCLUDE_DIR=/whereever
)
from openage.
Try adding version 3.4 to line 41 of /usr/share/cmake-2.8/FindPythonLibs.cmake
, if it isn't there. iirc that's what made things work for me.
Original:
set(_PYTHON3_VERSIONS 3.3 3.2 3.1 3.0)
New:
set(_PYTHON3_VERSIONS 3.4 3.3 3.2 3.1 3.0)
from openage.
Atleast on OS X, setting the env variables won't work. As @mic-e said you have to pass them to cmake via the configure script:
./configure -c llvm --raw-cmake-args --mode debug \
-DPYTHON_LIBRARIES=/usr/lib/python3.4/config-3.4m-x86_64-linux-gnu/libpython3.4m.so
-DPYTHON_INCLUDE_DIR=/usr/include/python3.4
Change llvm
to gnu
if you're using gcc
obviously.
from openage.
@goto-bus-stop - your solution worked. It has built!
~/_code/openage$ ./configure --mode=debug
...
-- Configuring done
-- Generating done
-- Build files have been written to: /home/gruen/_code/openage/.bin/gcc-debug-O1
from openage.
./configure worked, but now make fails
/usr/bin/gcc -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.3m -c /home/gruen/_code/openage/py/openage/convert/cabextract/lzxd/lzxd.cpp -o build/temp.linux-x86_64-3.3/home/gruen/_code/openage/py/openage/convert/cabextract/lzxd/lzxd.o -O1 -Wall -Wextra -pedantic -std=c++11
...
In file included from /home/gruen/_code/openage/py/openage/convert/cabextract/lzxd/pyinterface.cpp:1:0:
/home/gruen/_code/openage/py/openage/convert/cabextract/lzxd/pyinterface.h:4:20: fatal error: Python.h: No such file or directory
#include <Python.h>
It fails to find Python.h
I suspect it has to do with it looking for that in the /usr/include/python3.3m directory. But I do not know how to make the build system use /usr/include/python3.4m, which does contain Python.h
from openage.
Try updating your repo and running ./configure
again. I've fixed that issue earlier (I hope).
from openage.
Okay that works. Now, last problem I'm having is compiling the assets.
from openage.
The building issues seem to be resolved. If you got further compile problems, reopen.
from openage.
Related Issues (20)
- "error: βDictβ is not a member of βnyanβ" during build HOT 7
- Can't build with clang, error: "jthread is supported now, remove custom definition" HOT 4
- Asset conversion issue, AttributeError: 'NoneType' object has no attribute 'readable' HOT 6
- Adding PR/ISSUE Templates for this repo HOT 7
- Asset path type is incorrectly used HOT 5
- error: Couldn't find qml root folder HOT 15
- Test fail when building with GCC 13.2.1 HOT 10
- Error launching game, uncaught exception(s) HOT 25
- openage game: error: the following arguments are required: --modpacks HOT 4
- Running Error on Mac osx 13.4(Macbook M1 Pro ARM architecture) HOT 1
- FATAL: terminate has been called uncaught exception std::exception of type std::__1::system_error: thread::join failed: Invalid argument HOT 2
- Multiple cmake issues when trying to build HOT 4
- Submission to Steam HOT 2
- OpenGL error when launching on Wayland HOT 11
- CMake can't find toml11 on Linux Mint 21.2 HOT 4
- Errors after the new PR merged HOT 3
- Link on website https://openage.sft.mx/ to windows packages is a broken link HOT 2
- Windows Build: Python Command Requiring --modpacks Argument HOT 3
- Asset conversion stalls on media conversion HOT 10
- Fix Ubuntu Dependency installation script HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openage.