I am trying to run pcsx2 emulator on a 64 bit Lucid Kubuntu. So far I managed to install all 32 bit dependencies by using getlibs script, but I still have one problem - the search path for some shared libs is wrong, for example:
/usr/lib/gio/modules/libgiogconf.so
instead of /usr/lib32/gio/modules/libgiogconf.so
I have read, that there is LD_LIBRARY_PATH variable which can override that search path, but it does not work for me:
(which is exactly the same error, as using without env LD_LIBRARY_PATH)
How can I force an application to use custom path to shared libraries?
p.s. I do have /usr/lib32/gio/modules/* installed with the same file names inside as /usr/lib/gio/modules/*
The above means, that this is correct 32 bit ELF library, but pcsx2 ignore it for some reason.
/usr/lib/gio/modules/libgiogconf.so
instead of /usr/lib32/gio/modules/libgiogconf.so
I have read, that there is LD_LIBRARY_PATH variable which can override that search path, but it does not work for me:
Code:
evgenij@evg-dsk:/etc/ld.so.conf.d$ env LD_LIBRARY_PATH=/usr/lib32 ~/PS2/pcsx2/pcsx2 /usr/lib/gio/modules/libgiogconf.so: неправильный класс ELF: ELFCLASS64 Failed to load module: /usr/lib/gio/modules/libgiogconf.so /usr/lib/gio/modules/libgvfsdbus.so: неправильный класс ELF: ELFCLASS64 Failed to load module: /usr/lib/gio/modules/libgvfsdbus.so /usr/lib/gio/modules/libgioremote-volume-monitor.so: неправильный класс ELF: ELFCLASS64 Failed to load module: /usr/lib/gio/modules/libgioremote-volume-monitor.so /home/evgenij/PS2/pcsx2/pcsx2: relocation error: /home/evgenij/PS2/pcsx2/pcsx2: symbol _ZN12wxSizerFlags24ReserveSpaceEvenIfHiddenEv, version WXU_2.8.8 not defined in file libwx_gtk2u_core-2.8.so.0 with link time reference
How can I force an application to use custom path to shared libraries?
p.s. I do have /usr/lib32/gio/modules/* installed with the same file names inside as /usr/lib/gio/modules/*
Code:
evgenij@evg-dsk:/etc/ld.so.conf.d$ readelf -h /usr/lib32/gio/modules/libgiogconf.so ELF Header: Magic: 7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00 Class: ELF32 Data: 2's complement, little endian Version: 1 (current) OS/ABI: UNIX - System V ABI Version: 0 Type: DYN (Shared object file) Machine: Intel 80386 Version: 0x1 Entry point address: 0xa10 Start of program headers: 52 (bytes into file) Start of section headers: 8516 (bytes into file) Flags: 0x0 Size of this header: 52 (bytes) Size of program headers: 32 (bytes) Number of program headers: 6 Size of section headers: 40 (bytes) Number of section headers: 26 Section header string table index: 25