I’m unsuccessfully trying to build pySFML from https://github.com/intjelic/python-sfml on my Windows machine with Python 3.12.
I have downloaded SFML 2.3.2 from https://www.sfml-dev.org/download/sfml/2.3.2/ and have Visual Studio 22 installed.
After extracting SFML-2.3.2 to C:libraries, i have set the Environment-Variables:
SFML_DIR = C:librariesSFML-2.3.2
SFML_HEADERS = C:librariesSFML-2.3.2include
SFML_LIBRARIES = C:librariesSFML-2.3.2lib
I then git-cloned the repo https://github.com/intjelic/python-sfml.git into a Python 3.12 venv with Cython-Version 3.0.10.
When I first tried:
pip install .
I got:
Error compiling Cython file:
------------------------------------------------------------
...
from libcpp.string cimport string
cimport time
^
------------------------------------------------------------
includeIncludessfmlsfml.pxd:9:8: 'time.pxd' not found
the file is indeed in the directory and there is also a empty init.py file, but anyways I changed it to:
from . cimport Time
It now finds the file but I get:
Error compiling Cython file:
------------------------------------------------------------
...
from sfml cimport Time
cdef extern from "SFML/System.hpp" namespace "sf::Time":
cdef Time Zero
^
------------------------------------------------------------
includeIncludessfmlTime.pxd:10:9: 'Time' is not a type identifier
The actual traceback is much longer (the same as above for every other class) and can be seen here: https://raw.githubusercontent.com/ai-cr/pySFML-traceback/main/pySFML_traceback.txt
Did anyone manage to install pySFML? Help would be much appreciated..!