Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SDL 2.0.4 -> SDL 2.0.5
#1
Hi folks,

I was wondering how I can update my SDL2 library version to the latest one.

apt search SDL2 shows only 2.0.2 as available. I'd like 2.0.5.

I think I could build it from source, but - would the hardware acceleration of my H3 chip work with it automagically?

Thank you.
Reply
#2
what would you like to use it for? We already use 2.0.5 with Mali backend (without X11, proper for EmulationStation)
Reply
#3
(06-22-2018, 09:29 PM)alexkidd Wrote: what would you like to use it for? We already use 2.0.5 with Mali backend (without X11, proper for EmulationStation)

I am working on a 2d game engine for Orange Pi and Raspberry Pi, and had some linking errors for some newer functions only in 2.0.5.

I'm using the latest image of RetroOrangePi (Plus2), and couldn't find 2.0.5 to link against. The library in /usr/local/include/SDL2 is 2.0.4

Any tips?

Thank you.
Reply
#4
compiling works fine, but if you want to use your engine in the framebuffer , you need to use RetroPie sources (with Mali backend).

i have some packages in our server, i think they install to /usr/local, and it should work for you.

http://www.retrorangepi.org/sdl_2.0.5-mali_armhf.deb
http://www.retrorangepi.org/sdl_2.0.7-1_armhf.deb

i'm not sure if the second one has Mali support, give it a try. You can install with sudo dpkg -i --force-overwrite packagename.deb
Reply
#5
Thank you for your help.
Reply
#6
Hi guys, I have an orange pi zero, and I wonder if it is possible to use the original snes control connector on the orange zero gpio, if possible what would be the connection design?
Reply
#7
what does it have to do with SDL? Please open your own thread
Reply
#8
Code:
what would you like to use it for? We already use 2.0.5 with Mali backend (without X11, proper for EmulationStation)

I searched installed packages and found a package named simply "sdl", description "SDL 2.0.5 with Mali backend".

doing dpkg -L "sdl" gives me the following 
/usr/share/doc/sdl/ ...
/usr/local/include/SDL2/ ... 
/usr/local/lib/libSDL2_test.a
/usr/local/lib/libSDL2-2.0.so.0.4.1
/usr/local/lib/libSDL2main.a
/usr/local/lib/libSDL2.so
/usr/local/lib/libSDL2-2.0.so.0

A closer look in /usr/local/lib shows

lrwxrwxrwx  1 root root       20 May  6  2017 libSDL2-2.0.so.0 -> libSDL2-2.0.so.0.4.1
-rwxr-xr-x  1 root root   667928 May  6  2017 libSDL2-2.0.so.0.4.1
-rw-r--r--  1 root root  5195936 May  6  2017 libSDL2.a
-rwxr-xr-x  1 root root      953 May  6  2017 libSDL2.la
-rw-r--r--  1 root root     4188 May  6  2017 libSDL2main.a
lrwxrwxrwx  1 root root       20 May  6  2017 libSDL2.so -> libSDL2-2.0.so.0.4.1

I don't see 2.0.5 - any idea where I can find it, if it's really included? Or is it compiled in with no dev files? If so, I can patch my code instead to avoid 2.0.5 APIs. My intention later on is to distribute my engine without the need for extra work for the user compiling more packages.

Thank you.
Reply
#9
try this one: http://www.retrorangepi.org/sdl2_2.0.8-1_armhf.deb

RetroPie fork is here: https://github.com/RetroPie/SDL-mirror/
switch to the branch according to your needs
Reply
#10
Thank you kindly. You rock.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)