1
Python / Error Building the PySFML2-cython Bindings
« on: July 26, 2011, 03:49:08 pm »
Well I wasn't getting that error before, and my MinGW hasn't changed since then, so I'm not sure what's going on...
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
$ python setup.py build_ext --inplace --compiler=mingw32 --include="c:\Program Files (x86)\SFML\include" "-LC:\program files (x86)\SFML\lib"
running build_ext
cythoning sf.pyx to sf.cpp
building 'sf' extension
creating build
creating build\temp.win32-2.7
creating build\temp.win32-2.7\Release
C:\MinGW\bin\gcc.exe -mno-cygwin -mdll -O -Wall "-Ic:\Program Files (x86)\SFML\include" -IC:\Python27\include -IC:\Python27\PC -c sf.cpp -o build\temp.win32-2.7\Release\sf.o
[snip unnecessary warnings]
writing build\temp.win32-2.7\Release\sf.def
C:\MinGW\bin\g++.exe -mno-cygwin -mdll -static --output-lib build\temp.win32-2.7\Release\libsf.a --def build\temp.win32-2.7\Release\sf.def -s build\temp.win32-2.7\Release\sf.o "-LC:\program files (x86)\SFML\lib" -LC:\Python27\libs -LC:\Python27\PCbuild -lsfml-graphics -lsfml-window -lsfml-audio -lsfml-system -lpython27 -lmsvcr90 -o C:\Users\NightKev\SFML2\pysfml2-cython-u1\sf.pyd
g++: build\temp.win32-2.7\Release\libsf.a: No such file or directory
error: command 'g++' failed with exit status 1
C:\Users\NightKev\SFML2\pysfml2-cython-u1>python setup.py build_ext --inplace --compiler=mingw32 --include="c:\Program Files (x86)\SFML\include"
running build_ext
cythoning sf.pyx to sf.cpp
building 'sf' extension
creating build
creating build\temp.win32-2.7
creating build\temp.win32-2.7\Release
C:\MinGW\bin\gcc.exe -mno-cygwin -mdll -O -Wall "-Ic:\Program Files (x86)\SFML\include" -IC:\Python27\include -IC:\Python27\PC -c sf.cpp -o build\temp.win32-2.7\Release\sf.o
C:\MinGW\bin\g++.exe -mno-cygwin -mdll -static --output-lib build\temp.win32-2.7\Release\libsf.a --def build\temp.win32-2.7\Release\sf.def -s build\temp.win32-2.7\Release\sf.o -LC:\Python27\libs -LC:Python27\PCbuild -lsfml-graphics -lsfml-window -lsfml-audio -lsfml-system -lpython27 -lmsvcr90 -o C:\Users\NightKev\SFML2\pysfml2-cython-u1\sf.pyd
g++: build\temp.win32-2.7\Release\libsf.a: No such file or directory
error: command 'g++' failed with exit status 1
running build_ext
skipping 'sf.cpp' Cython extension (up-to-date)
building 'sf' extension
C:\MinGW\bin\gcc.exe -mno-cygwin -mdll -O -Wall -IC:\Python27\include -IC:\Python27\PC -c sf.cpp -o build\temp.win32-2.7\Release\sf.o
In file included from sf.cpp:225:0:
SFML/Graphics.hpp:32:27: fatal error: SFML/Window.hpp: No such file or directory
compilation terminated.
error: command 'gcc' failed with exit status 1