Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: compilation error build (pysfml-cython)  (Read 6522 times)

0 Members and 1 Guest are viewing this topic.

Benoit87

  • Newbie
  • *
  • Posts: 11
    • View Profile
compilation error build (pysfml-cython)
« on: August 18, 2012, 11:08:02 am »
Hello ! I open this topic because I need help about an compilation error during Bastien Léonard binding pySFML2-cython build.
I use python 3.2 and I run under Linux (Linux mint 12).

When a start the build with command python3.2 setup.py build
If the build fails, run patch.py and try again
----------------------------------------------

running build
running build_ext
skipping 'src/sfml.cpp' Cython extension (up-to-date)
building 'sfml' extension
gcc -pthread -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/local/include/python3.2m -c src/sfml.cpp -o build/temp.linux-x86_64-3.2/src/sfml.o
cc1plus: attention (warning ?) : command line option ‘-Wstrict-prototypes’ is valid for Ada/C/ObjC but not for C++ [enabled by default]
src/sfml.cpp:278:29: erreur fatale (fatal error) : SFML/Graphics.hpp : Aucun fichier ou dossier de ce type (No such file or folder)
compilation terminée. (compilation finished)
error: command 'gcc' failed with exit status 1
 

I have execute patch.py with python3.2 patch.py witch seem execute itself without exception, but that seem  not linked to my main problem.

I have ever search about a problem like that, but I haven't found the same :/

Thanks you in advance !  :)
« Last Edit: November 04, 2013, 10:21:03 am by Sonkun »

bastien

  • Full Member
  • ***
  • Posts: 231
    • View Profile
    • http://bastien-leonard.alwaysdata.net
Re: [pySFML2-cython] (Bastien Léonard) compilation error build
« Reply #1 on: August 19, 2012, 06:16:16 pm »
My guess is that you have installed a 32 bits version of SFML while you are trying to build a 64 bits module, or you installed it in /usr/local and GCC isn't configured to look for headers there.
Check out pysfml-cython, an up to date Python 2/3 binding for SFML 2: https://github.com/bastienleonard/pysfml-cython