Skip to content
This repository has been archived by the owner on Apr 25, 2020. It is now read-only.

How do you use this on 64-bit? #21

Open
AaronBPaden opened this issue Sep 25, 2017 · 2 comments
Open

How do you use this on 64-bit? #21

AaronBPaden opened this issue Sep 25, 2017 · 2 comments

Comments

@AaronBPaden
Copy link

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.

@KoKuToru
Copy link
Owner

KoKuToru commented Nov 1, 2017

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

@aurimus
Copy link

aurimus commented Jun 1, 2018

@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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants