User avatar
boomonster
Posts: 61
Joined: Fri May 11, 2018 11:18 pm

How do I install SDL and PySDL?

Sat Jun 30, 2018 2:45 pm

Hi there!

Just wondering if anyone has
successfully installed SDL 2.0
and PySDL on the Raspberry Pi 2
with Debian Stretch. When I tried in
Python to:

Code: Select all

import sdl2.ext
Python did this:

Code: Select all

>>> import sdl2.ext
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python2.7/dist-packages/sdl2/__init__.py", line 5, in <module>
    from .audio import *
  File "/usr/local/lib/python2.7/dist-packages/sdl2/audio.py", line 6, in <module>
    from .rwops import SDL_RWops, SDL_RWFromFile
  File "/usr/local/lib/python2.7/dist-packages/sdl2/rwops.py", line 54, in <module>
    SDL_LoadFile_RW = _bind("SDL_LoadFile_RW", [POINTER(SDL_RWops), POINTER(c_size_t), c_int], c_void_p)
  File "/usr/local/lib/python2.7/dist-packages/sdl2/dll.py", line 87, in bind_function
    (funcname, self._dll))
ValueError: could not find function 'SDL_LoadFile_RW' in <CDLL 'libSDL2-2.0.so.0', handle 86da58 at 76a2bc90>
>>> 
Any answers???

User avatar
The Traveler
Posts: 361
Joined: Sat Oct 21, 2017 3:48 pm

Re: How do I install SDL and PySDL?

Sat Jun 30, 2018 2:58 pm

Install pygame.
Retired IT professional, C programmer and "beardie weirdie".
RPi interests: Developing an Infinite Improbability Drive
“Thinking outside of the box allows you to get rewards outside of your reach.” Matshona Dhliwayo

User avatar
boomonster
Posts: 61
Joined: Fri May 11, 2018 11:18 pm

Re: How do I install SDL and PySDL?

Wed Jul 04, 2018 6:31 pm

? I have pygame installed! :?:

Return to “Graphics programming”

Who is online

Users browsing this forum: No registered users and 5 guests