2011-12-27 65 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 –