How do you use this on 64-bit?
AaronBPaden opened this issue · 2 comments
On 64-bit Linux, wine is probably going to be compiled as a 64-bit binary. If WINEARCH is win32, then wine will create a 32-bit prefix, and if WINEARCH is win64, it will create a 64-bit prefix. Either way, the actual wine application is a 64-bit executable.
If I use LD_PRELOAD with a 32-bit .so, of course ld.so errors out. However, it still seems to fail in the obvious case of using a 64-bit .so in a 64-bit wine prefix.
ERROR: ld.so: object '/home/aaron/Documents/progs/koku-xinput-wine/build/koku-xinput-wine.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
ERROR: ld.so: object '/home/aaron/Documents/progs/koku-xinput-wine/build/koku-xinput-wine.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
So I'm not sure how this is supposed to actually be used.
The README.md got updated
https://github.com/KoKuToru/koku-xinput-wine#troubleshooting
Getting the LD_PRELOAD errors is normal..
Here is how I "think" it works..:
EXE |
wine |
WINEARCH=win32 |
WINEARCH=win64 |
---|---|---|---|
32bit | 32bit | use 32bit version | no idea |
32bit | 64bit | use 32bit version (will show LD_PRELOAD error) | no idea |
64bit | 32bit | wont work | wont work |
64bit | 64bit | wont work | use 64bit version |
@KoKuToru can't get it IL-2 1946 to work, I got both libs in preload and I get both errors, so you must be wrong(?)
wine /home/aurimus/.wine/drive_c/GOG\ Games/IL-2\ Sturmovik\ 1946/il2fb.exe
ERROR: ld.so: object '/home/aurimus/koku-xinput-wine/koku-xinput-wine64.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
ERROR: ld.so: object '/home/aurimus/koku-xinput-wine/koku-xinput-wine64.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
ERROR: ld.so: object '/home/aurimus/koku-xinput-wine/koku-xinput-wine.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/aurimus/koku-xinput-wine/koku-xinput-wine.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/aurimus/koku-xinput-wine/koku-xinput-wine.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/aurimus/koku-xinput-wine/koku-xinput-wine.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/aurimus/koku-xinput-wine/koku-xinput-wine.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/aurimus/koku-xinput-wine/koku-xinput-wine.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/aurimus/koku-xinput-wine/koku-xinput-wine.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/aurimus/koku-xinput-wine/koku-xinput-wine.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
0029:fixme:plugplay:build_report_descriptor Clamping joystick to 6 axis