Building mupen64plus-input-sdl against custom SDL library

15 views
Skip to first unread message

Carlos Gottberg

unread,
May 26, 2013, 4:42:55 PM5/26/13
to mupen...@googlegroups.com
Hi, I've been trying to compile mupen64plus-input-sdl for a while, the
thing is it must use a custom sdl library ( had to apply a patch so I
can move left/right with my sixaxis ). Is there any way to accomplish
this? The SDL library is built in ~/soft/libsdl (by means of
'./configure && make all')

Sven Eckelmann

unread,
May 27, 2013, 4:03:38 AM5/27/13
to mupen...@googlegroups.com, Carlos Gottberg
It is a all or nothing approach. Nearly all components depend on SDL.
Therefore, the first component causing SDL to be loaded will decide which SDL
version gets loaded. But this also makes it extreme easy to you to overwrite
this decision:

$ LD_PRELOAD="$HOME/soft/libsdl/./build/.libs/libSDL.so" mupen64plus

If you really want to change the SDL to build against then you need to install
it to get a working sdl-config.

$ cd ~/soft/libsdl
$ ./configure --prefix="$HOME/soft/libsdl-install/"
$ make install
$ cd ~/soft/mupen64plus-foobar
$ make V=1 -C projects/unix SDL_CONFIG="$HOME/soft/libsdl-install/bin/sdl-config" all

But please keep in mind that the first component depending on libSDL will
decide which version of the lib gets loaded. Mixing different version (for
example SDL1.2 and SDL2) will not work as expected.

Kind regards,
Sven
signature.asc
Reply all
Reply to author
Forward
0 new messages