2011-12-27 45 views
0

我试图让PySFML-1.6与Python 2.7遵循these指示。我直接到SFML目录,然后输入PySFML构建不起作用

python setup.py build -cmingw32 

,我得到这个错误

c:/mingw/bin/../lib/gcc/mingw32/4.6.1/../../../../mingw32/bin/ld.exe: cannot find 
d -lsfml-graphics 
c:/mingw/bin/../lib/gcc/mingw32/4.6.1/../../../../mingw32/bin/ld.exe: cannot find 
d -lsfml-window 
c:/mingw/bin/../lib/gcc/mingw32/4.6.1/../../../../mingw32/bin/ld.exe: cannot find 
d -lsfml-audio 
c:/mingw/bin/../lib/gcc/mingw32/4.6.1/../../../../mingw32/bin/ld.exe: cannot find 
d -lsfml-system 
collect2: ld returned 1 exit status 
error: command 'g++' failed with exit status 1 

什么我做错了,我该如何解决?

回答

1

你跟着它吗?

如果你想从源代码构建PySFML,你必须有SFML C++在SFML-xx目录的头文件和库(以及在“蟒蛇”文件夹)

无论如何,为什么不只是下载预编译的文件here

+0

我在两个都有。预编译哪个版本? – Eva

+0

下载链接:http://downloads.sourceforge.net/sfml/SFML-1.6-python2.7-win32.zip –