(08-16-2011, 07:52 PM)gregory Wrote: It froze because it segfault which is not normal except if you have the wxversion linked with sdl. Let's try to do thing 1 by 1. (note try both debug and release mode)
1/ SDL as a so + wxwidget sdl free + LD_LIBRARY_PATH
2/ SDL as a so + wxwidget sdl free + LD_PRELOAD (note unset LD_LIBRARY_PATH)
3/ SDL as a so + wxwidget + LD_PRELOAD (note unset LD_LIBRARY_PATH)
To use both debug and release I'll have to do this over the next few days. I've just tried option one in debug and it works, although I get an unfamiliar error on closing - I assume it's not significant?
Code:
dk-ERROR **: The program 'pcsx2-dbg' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadWindow (invalid Window parameter)'.
(Details: serial 2244 error_code 3 request_code 10 minor_code 0)
(Note to programmers: normally, X errors are reported asynchronously;
that is, you will receive the error a while after causing it.
To debug your program, run it with the --sync command line
option to change this behavior. You can then get a meaningful
backtrace from your debugger if you break on the gdk_x_error() function.)
aborting...
0mAborted (core dumped)
The first iso I tried produced a crash - this is the one I've used for all the previous tests, but I think it's got corrupted - so there's hope that preloading the library may still work
to proceed to step 2, what command do I use to unset the LD_LIBRARY_PATH?
EDIT: Step 2 works okay. LD_LIBRARY_PATH unset by default after powering off the computer overnight:
Code:
ldd ./pcsx2-read-only/bin/plugins/libGSdx-0.1.16.so linux-gate.so.1 => (0x00b91000)
libSM.so.6 => /usr/lib/libSM.so.6 (0x00c16000)
libICE.so.6 => /usr/lib/libICE.so.6 (0x00901000)
libX11.so.6 => /usr/lib/libX11.so.6 (0x0091a000)
libXext.so.6 => /usr/lib/libXext.so.6 (0x00a53000)
libpcsx2_SDL.so => not found
libdl.so.2 => /lib/libdl.so.2 (0x00a64000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00a69000)
libm.so.6 => /lib/libm.so.6 (0x00e41000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00b57000)
libpthread.so.0 => /lib/libpthread.so.0 (0x00b74000)
libc.so.6 => /lib/libc.so.6 (0x00c1e000)
libuuid.so.1 => /lib/libuuid.so.1 (0x00b92000)
libxcb.so.1 => /usr/lib/libxcb.so.1 (0x00f91000)
/lib/ld-linux.so.2 (0x45da9000)
libXau.so.6 => /usr/lib/libXau.so.6 (0x00e2a000)
$ LD_PRELOAD="/home/giles/pcsx2-read-only/3rdparty/SDL-1.3.0-5387/libpcsx2_SDL.so" ~/pcsx2-read-only/bin/pcsx2-dbg
Interface is initializing. Entering Pcsx2App::OnInit!
Applying operating system default language...
Command line parsing...
Command line parsed!
(UserMode) Found portable install ini @ /home/giles/pcsx2-read-only/bin/portable.ini
I'll recompile against fedora wxwidget tonight and test step 3.