Launch qemu without loading libSDL?
Continuing on this thread, is there any way to launch the pre-compiled binaries in such a fashion that they don't dynamically load the SDL libraries at runtime? For example:
[root@a3 /]# qemu -nographic ... etc ...
qemu: error while loading shared libraries: libSDL-1.2.so.0: cannot open shared object file: No such file or directory [root@a3 /]#
Ideally if the -nographic flag were there, then it won't try to load the SDL libraries and would "just work" on a server that has no video output. Everything else looks like it's ready to go:
[root@a3 /]# ldd /usr/local/bin/qemu
libm.so.6 => /lib/tls/libm.so.6 (0x00917000)
libz.so.1 => /usr/lib/libz.so.1 (0x0093c000)
libSDL-1.2.so.0 => not found
libpthread.so.0 => /lib/tls/libpthread.so.0 (0x009a3000)
librt.so.1 => /lib/tls/librt.so.1 (0x00554000)
libutil.so.1 => /lib/libutil.so.1 (0x009cf000)
libc.so.6 => /lib/tls/libc.so.6 (0x007e4000)
/lib/ld-linux.so.2 (0x007c6000)[root@a3 /]#
Any suggestions for how to suppress loading of libSDL, or perhaps trick
it into loading a "null" implementation of libSDL that does nothing?
Thanks!
-david
You would probably be better off relinking. Or, maybe just copy libSDL. If you install the thoughtwave packages on solaris it comes with libsdl.
Thanks,
jonathan
Quoted 35 lines · David Barrett
Continuing on this thread, is there any way to launch the pre-compiled
binaries in such a fashion that they don't dynamically load the SDL libraries at runtime? For example:[root@a3 /]# qemu -nographic ... etc ...
qemu: error while loading shared libraries: libSDL-1.2.so.0: cannot open shared object file: No such file or directory
[root@a3 /]#Ideally if the -nographic flag were there, then it won't try to load the SDL libraries and would "just work" on a server that has no video output. Everything else looks like it's ready to go:
[root@a3 /]# ldd
/usr/local/bin/qemulibm.so.6 => /lib/tls/libm.so.6 (0x00917000) libz.so.1 => /usr/lib/libz.so.1 (0x0093c000) libSDL-1.2.so.0 => not found libpthread.so.0 => /lib/tls/libpthread.so.0 (0x009a3000) librt.so.1 => /lib/tls/librt.so.1 (0x00554000) libutil.so.1 => /lib/libutil.so.1 (0x009cf000) libc.so.6 => /lib/tls/libc.so.6 (0x007e4000) /lib/ld-linux.so.2 (0x007c6000)[root@a3 /]#
Any suggestions for how to suppress loading of libSDL, or perhaps trick
it into loading a "null" implementation of libSDL that does nothing?Thanks!
-david
Signature · 7 lines
-- Jonathan Kalbfeld ThoughtWave Technologies LLC www.thoughtwave.com +1 424 354 1814 Learn UNIX For Free at unixlessons.com
Thanks; ya, I just recompiled it and kqemu and looks like it's going to work fine. Thanks again!
-david
Quoted 47 lines · Jonathan Kalbfeld
You would probably be better off relinking. Or, maybe just copy libSDL. If you install the thoughtwave packages on solaris it comes with libsdl.
Thanks,
jonathan
Quoted 35 lines · David Barrett
Continuing on this thread, is there any way to launch the pre-compiled
binaries in such a fashion that they don't dynamically load the SDL libraries at runtime? For example:[root@a3 /]# qemu -nographic ... etc ...
qemu: error while loading shared libraries: libSDL-1.2.so.0: cannot open shared object file: No such file or directory
[root@a3 /]#Ideally if the -nographic flag were there, then it won't try to load the SDL libraries and would "just work" on a server that has no video output. Everything else looks like it's ready to go:
[root@a3 /]# ldd
/usr/local/bin/qemulibm.so.6 => /lib/tls/libm.so.6 (0x00917000) libz.so.1 => /usr/lib/libz.so.1 (0x0093c000) libSDL-1.2.so.0 => not found libpthread.so.0 => /lib/tls/libpthread.so.0 (0x009a3000) librt.so.1 => /lib/tls/librt.so.1 (0x00554000) libutil.so.1 => /lib/libutil.so.1 (0x009cf000) libc.so.6 => /lib/tls/libc.so.6 (0x007e4000) /lib/ld-linux.so.2 (0x007c6000)[root@a3 /]#
Any suggestions for how to suppress loading of libSDL, or perhaps trick
it into loading a "null" implementation of libSDL that does nothing?Thanks!
-david