intjelic / python-sfml

Official binding of SFML for Python
https://www.python-sfml.org
Other
176 stars 41 forks source link

Compilation problems with pysfml_2.3.2 on OS X #141

Open AtheistApe opened 7 years ago

AtheistApe commented 7 years ago

Hello,

I'm running OS X 10.11, with XCode 8.1 and SFML-2.4.1-osx-clang

SFML is properly installed since XCode was able to compile and run the SFML App Template.

When I tried installing pysfml with: python3 setup.py install , I get:

→ python3 setup.py install -- INSERT -- /Users/gary/anaconda/lib/python3.5/site-packages/Cython/Distutils/old_build_ext.py:30: UserWarning: Cython.Distutils.old_build_ext does not properly handle dependencies and is deprecated. "Cython.Distutils.old_build_ext does not properly handle dependencies " running install running build running build_py running build_ext skipping 'src/sfml/system/system.cpp' Cython extension (up-to-date) building 'sfml.system' extension /usr/bin/clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/gary/anaconda/include -arch x86_64 -Iinclude/Includes -I/Users/gary/anaconda/include/python3.5m -Ibuild/temp.macosx-10.6-x86_64-3.5/include -c src/sfml/system/system.cpp -o build/temp.macosx-10.6-x86_64-3.5/src/sfml/system/system.o src/sfml/system/system.cpp:14429:28: warning: unused function 'Pyx_PyObject_AsString' [-Wunused-function] static CYTHON_INLINE char __Pyx_PyObject_AsString(PyObject o) { ^ src/sfml/system/system.cpp:14426:32: warning: unused function '__Pyx_PyUnicode_FromString' [-Wunused-function] static CYTHON_INLINE PyObject* Pyx_PyUnicode_FromString(const char c_str) { ^ src/sfml/system/system.cpp:14547:33: warning: unused function 'Pyx_PyIndex_AsSsize_t' [-Wunused-function] static CYTHON_INLINE Py_ssize_t Pyx_PyIndex_AsSsize_t(PyObject b) { ^ src/sfml/system/system.cpp:14609:33: warning: unused function 'Pyx_PyInt_FromSize_t' [-Wunused-function] static CYTHON_INLINE PyObject * Pyx_PyInt_FromSize_t(size_t ival) { ^ src/sfml/system/system.cpp:11864:32: warning: unused function 'Pyx_GetItemInt_List_Fast' [-Wunused-function] static CYTHON_INLINE PyObject *Pyx_GetItemInt_List_Fast(PyObject o, P... ^ src/sfml/system/system.cpp:11879:32: warning: unused function '__Pyx_GetItemInt_Tuple_Fast' [-Wunused-function] static CYTHON_INLINE PyObject Pyx_GetItemInt_Tuple_Fast(PyObject *o, ... ^ src/sfml/system/system.cpp:11938:26: warning: unused function '__Pyx_PyBytes_Equals' [-Wunused-function] static CYTHON_INLINE int Pyx_PyBytes_Equals(PyObject s1, PyObject s2... ^ src/sfml/system/system.cpp:14071:31: warning: function 'Pyx_PyInt_As_long' is not needed and will not be emitted [-Wunneeded-internal-declaration] static CYTHON_INLINE long Pyx_PyInt_As_long(PyObject *x) { ^ 8 warnings generated. /usr/bin/clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/gary/anaconda/include -arch x86_64 -Iinclude/Includes -I/Users/gary/anaconda/include/python3.5m -Ibuild/temp.macosx-10.6-x86_64-3.5/include -c src/sfml/system/error.cpp -o build/temp.macosx-10.6-x86_64-3.5/src/sfml/system/error.o /usr/bin/clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/gary/anaconda/include -arch x86_64 -Iinclude/Includes -I/Users/gary/anaconda/include/python3.5m -Ibuild/temp.macosx-10.6-x86_64-3.5/include -c src/sfml/system/hacks.cpp -o build/temp.macosx-10.6-x86_64-3.5/src/sfml/system/hacks.o /usr/bin/clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/gary/anaconda/include -arch x86_64 -Iinclude/Includes -I/Users/gary/anaconda/include/python3.5m -Ibuild/temp.macosx-10.6-x86_64-3.5/include -c src/sfml/system/NumericObject.cpp -o build/temp.macosx-10.6-x86_64-3.5/src/sfml/system/NumericObject.o /usr/bin/clang++ -bundle -undefined dynamic_lookup -L/Users/gary/anaconda/lib -arch x86_64 build/temp.macosx-10.6-x86_64-3.5/src/sfml/system/system.o build/temp.macosx-10.6-x86_64-3.5/src/sfml/system/error.o build/temp.macosx-10.6-x86_64-3.5/src/sfml/system/hacks.o build/temp.macosx-10.6-x86_64-3.5/src/sfml/system/NumericObject.o -L/Users/gary/anaconda/lib -lsfml-system -o build/lib.macosx-10.6-x86_64-3.5/sfml/system.cpython-35m-darwin.so clang: warning: libstdc++ is deprecated; move to libc++ with a minimum deployment target of OS X 10.9 ld: library not found for -lsfml-system clang: error: linker command failed with exit code 1 (use -v to see invocation) error: command '/usr/bin/clang++' failed with exit status 1