Comments (1)
I just ran into the same issue. I am not the maintainer, but I looked into it and managed to get pygame_sdl2 to compile successfully. Your analysis is correct, but SDL_JoystickGetDeviceInstanceID is only the beginning of the problems. The various commits made to this repo require other symbols that are also missing from renpy/pygame_sdl2_windeps.
Here is what I did on Windows in case it is useful to anyone:
- Git clone renpy/pygame_sdl2 and add renpy/pygame_sdl2_windeps as a submodule.
- Download SDL2-devel-2.0.14-VC from https://www.libsdl.org/release/ and move it inside the pygame_sdl2/pygame_sdl2_windeps directlry.
- Run "python ./unpack.py SDL2-devel-2.0.14-VC.zip" from the pygame_sdl2/pygame_sdl2_windeps directory. This will overwrite all the relevant files in the include/ and lib/ subdirectories
- (optional) Depending on your compiler, you may run into an unrelated error with src/SDL_gfxPrimitives.c. Recent versions of MSVC define lrint() as an intrinsic function whereas the #ifdef pragma assumes this function to be missing for that compiler. Ideally, the pragma should be updated to check the version number. If all you care is creating a new binary and not committing any changes, I suggest simply removing the entire #ifdef block.
- Rerun "python setup.py install" in the pygame_sdl2 directory.
from pygame_sdl2.
Related Issues (20)
- MIDI HOT 1
- Building 'pygame_sdl2.rwobject' extension failes HOT 1
- Variable is used out of scope
- G923 compatibility
- gfxdraw.filled_polygon producing incorrect image HOT 2
- 'pygame.image.save' works inproperly when saving PNG images
- Why? HOT 4
- [Feature Request] avif images support HOT 2
- Problem with fix_virtualenv.py HOT 3
- Error trying to build on Windows (pygame_sdl2.event.c) HOT 4
- pygame_sdl2.controller.get_axis_from_string crashes when provided with a string.
- Error trying to build on Windows HOT 2
- Problem to import .pyx files HOT 6
- gfxdraw.thick_line cast to integers doesn't seem to work HOT 1
- Use image.load for gif HOT 4
- android.py configure error
- Compile problem: Exception values are incompatible. HOT 2
- EventType.__eq__ doesn't handle other is None
- feature: allow check events by `scancode` instead of `key` & `unicode`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pygame_sdl2.