Rocket/Core/Python/Python.h: No such file or directory

Post Reply
shogun1234
Posts: 2
Joined: Sat Oct 11, 2014 5:17 pm

Rocket/Core/Python/Python.h: No such file or directory

Post by shogun1234 » Sat Oct 11, 2014 5:26 pm

Following the readme file to build freeablo, but fail with the below error when executing make. Basically building libRocket is successful. The error happens when trying to build freeablo exutable file. How can I fix missing python?

My environment : Debian kernel 3.14-1-686-pae, gcc 4.9.1-14, cmake 3.0.2

Thanks

Code: Select all

~/freeablo/components/render/sdl2backend.cpp:20:39: fatal error: Rocket/Core/Python/Python.h: No such file or directory
 #include <Rocket/Core/Python/Python.h>
                                       ^
compilation terminated.
components/CMakeFiles/Render.dir/build.make:146: recipe for target 'components/CMakeFiles/Render.dir/render/sdl2backend.cpp.o' failed
make[2]: *** [components/CMakeFiles/Render.dir/render/sdl2backend.cpp.o] Error 1
CMakeFiles/Makefile2:352: recipe for target 'components/CMakeFiles/Render.dir/all' failed
make[1]: *** [components/CMakeFiles/Render.dir/all] Error 2
Makefile:76: recipe for target 'all' failed
make: *** [all] Error 2

User avatar
wheybags
Site Admin
Posts: 83
Joined: Thu Apr 24, 2014 9:01 pm
Location: Ireland

Re: Rocket/Core/Python/Python.h: No such file or directory

Post by wheybags » Sun Oct 12, 2014 8:12 pm

Did you install librocket with python?
If not you can install it like so:

Code: Select all

$ git clone https://github.com/libRocket/libRocket.git
$ cd libRocket
$ mkdir buildDir
$ cd buildDir
$ cmake ../Build -DBUILD_PYTHON_BINDINGS=On
$ make
$ sudo make install
the BUILD_PYTHON_BINDINGS bit is probably the problem, seems I forgot that part on the github readme

shogun1234
Posts: 2
Joined: Sat Oct 11, 2014 5:17 pm

Re: Rocket/Core/Python/Python.h: No such file or directory

Post by shogun1234 » Mon Oct 13, 2014 5:13 am

Building with

Code: Select all

cmake ../Build -DBUILD_PYTHON_BINDINGS=On
fixes the problem.

Thanks!

User avatar
wheybags
Site Admin
Posts: 83
Joined: Thu Apr 24, 2014 9:01 pm
Location: Ireland

Re: Rocket/Core/Python/Python.h: No such file or directory

Post by wheybags » Mon Oct 13, 2014 8:13 am

Excellent, glad to hear it.

Post Reply