-
Notifications
You must be signed in to change notification settings - Fork 193
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PlayOnLinux: wrong ELF class: ELFCLASS64 #92
Comments
I just tested it with a steam game from CLI and got the same error
|
That's not how you are supposed to preload it, go to the game launcher in POL, click Configure, add export LD_PRELOAD=/usr/$LIB/libgamemodeauto.so to "Command to exec before running this program", close this, not an issue |
@Vthyarilops First of all, thx for pointing out where to place it. tommy@cracknutte:~$ playonlinux --run 'League of Legends'
Looking for python... 2.7.15rc1 - wxversion(s): 3.0-gtk3
selected
1
[main] Message: PlayOnLinux (4.3.4) is starting
[clean_tmp] Message: Cleaning temp directory
Script started /home/tommy/.PlayOnLinux/shortcuts/League of Legends
[POL_System_CheckFS] Message: Checking filesystem for LeagueClient.exe
[POL_Wine] Message: Running wine-3.21-staging LeagueClient.exe (Working directory : /home/tommy/.PlayOnLinux/wineprefix/LeagueOfLegends/drive_c/Riot Games/League of Legends)
[POL_Wine] Message: Notice: PlayOnLinux deliberately disables winemenubuilder. See http://www.playonlinux.com/fr/page-26-Winemenubuilder.html
ERROR: ld.so: object '/usr/lib/x86_64-linux-gnu/libgamemodeauto.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
ERROR: ld.so: object '/usr/lib/x86_64-linux-gnu/libgamemodeauto.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
ERROR: ld.so: object '/usr/lib/x86_64-linux-gnu/libgamemodeauto.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
LeagueClient.exe(0000007E): ALWAYS| Application Version:8.24.256.9476 - CL:2569476 - Build Date:Dec 10 2018 - Build Time:12:01:22
[POL_Wine] Message: Wine return: 0 And third point is that $LIB doesn't exist on Linux Mint and I had to write the path directly, which is as I think not the problem. |
Sorry I jumped on this to quickly, I just tested a 32 bit prefix on Mint 18.1 and it had the same error. I guess gamemode is 64 bit only, honestly not sure. |
You'd need it built for 32-bit and 64-bit, and make use of the |
Ok I'll search how to do this and try it :) |
@ikeyd I successfully built the gamemode on my 64bit Linux Mint with 32bit but that result in almost the same error. Using
Using library built for 32bit with static path
Using library built for 64bit with static path
|
Same problem here. Did you got it working @fragsalat ? I tried everything and it still says Wrong ELF: Class no matter what |
I'm unsure exactly how PlayOnLinux works, but it may be that it ends up running a mix of 32-bit and 64-bit processes. Setting LD_PRELOAD will attempt to load that library into any process, and it will only succeed for processes that match the bit-ness of the library set in LD_PRELOAD. Any others will error. Using this (note the slash before $LIB is needed): If that doesn't work, as long as the library path you're using for preload is the right one for whether the game itself is 32- or 64-bit, things should still work. You can check that GameMode is active while you have the game running with: |
That would explain the errors. So apparently is working as intended and the errors are from 32bit processes other than the main ones. It would be good to know what processes get gamemoded then |
|
I'm trying to use with Lutris, same error
|
@mmiat that log appears to show things working, mostly. The error you're seeing is likely benign |
Pretty much the same issue here, with Linux Mint 21.1 Cinnamon (based on Ubuntu 22.04). The games won't start because of the following:
|
I am also on Linux Mint 21.1 Cinnamon. Can not start Magicka.
|
any fixes yet? |
Describe the bug
My goal was to run League of Legends on Linux Mint 19.1 Cinnamon via PlayOnLinux + Wine 3.21-staging. The default install script of play on linux uses winxp + x86 arch as wine base but I also tried amd64 as the error (in my eyes) sais it needs x32 lib.
During startup the following error happens
To Reproduce
LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libgamemodeauto.so.0 playonlinux
Expected behavior
I would not see any error and game mode would work properly.
System Info (please complete the following information):
Additional context
If using gimp instead of playonlinux it works.
The text was updated successfully, but these errors were encountered: