Coder Social home page Coder Social logo

build on ubuntu 14.10 about openage HOT 14 CLOSED

daveheitzman avatar daveheitzman commented on April 28, 2024
build on ubuntu 14.10

from openage.

Comments (14)

TheJJ avatar TheJJ commented on April 28, 2024

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.

daveheitzman avatar daveheitzman commented on April 28, 2024

yes. I've installed python3-dev. I've been looking at the guidelines as well, to no avail.

from openage.

mic-e avatar mic-e commented on April 28, 2024

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.

daveheitzman avatar daveheitzman commented on April 28, 2024

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.

luan-cestari avatar luan-cestari commented on April 28, 2024

About your issue, have you tried the python 3.3 (instead of 3.4)?

from openage.

luan-cestari avatar luan-cestari commented on April 28, 2024

Link for what I think you can do to install other versions http://stackoverflow.com/a/10961035/1322969

from openage.

mic-e avatar mic-e commented on April 28, 2024

@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.

goto-bus-stop avatar goto-bus-stop commented on April 28, 2024

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.

svkurowski avatar svkurowski commented on April 28, 2024

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.

daveheitzman avatar daveheitzman commented on April 28, 2024

@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.

daveheitzman avatar daveheitzman commented on April 28, 2024

./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.

mic-e avatar mic-e commented on April 28, 2024

Try updating your repo and running ./configure again. I've fixed that issue earlier (I hope).

from openage.

daveheitzman avatar daveheitzman commented on April 28, 2024

Okay that works. Now, last problem I'm having is compiling the assets.

from openage.

TheJJ avatar TheJJ commented on April 28, 2024

The building issues seem to be resolved. If you got further compile problems, reopen.

from openage.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.