flightlessmango / MangoHud

A Vulkan and OpenGL overlay for monitoring FPS, temperatures, CPU/GPU load and more. Discord: https://discordapp.com/invite/Gj5YmBb
MIT License
6.52k stars 287 forks source link

doesn't work with wine #340

Closed Freeman310 closed 4 years ago

Freeman310 commented 4 years ago

when adding a command to run with wine, I get this terminal output:

ERROR: ld.so: object 'libMangoHud.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.

flightlessmango commented 4 years ago

The error doesn't affect anything, it's just saying that it's trying to load 64bit mangohud as well, but it doesn't apply in this specific case. In what way doesn't it work? doesn't show up? crashes the app?

Freeman310 commented 4 years ago

The error doesn't affect anything, it's just saying that it's trying to load 64bit mangohud as well, but it doesn't apply in this specific case. In what way doesn't it work? doesn't show up? crashes the app?

the application works. however, MANGOHUD does not work. how to defeat this?

flightlessmango commented 4 years ago

Is mangohud 32bit installed?

Freeman310 commented 4 years ago

Is mangohud 32bit installed?

mangohud is installed according to the instructions in the README.md file

flightlessmango commented 4 years ago

Which one exactly? There are multiple ways of installing

Freeman310 commented 4 years ago

installed in this way: ./build.sh build ./build.sh package ./build.sh install

flightlessmango commented 4 years ago

Does mangohud work with vkcube or glxgears?

Freeman310 commented 4 years ago

Does mangohud work with vkcube or glxgears?

its work Screenshot_20200908_223456 Screenshot_20200908_223426

flightlessmango commented 4 years ago

What game is it? If it's opengl or you're not using DXVK you may need to use dlsym. mangohud --dlsym

Freeman310 commented 4 years ago

What game is it? If it's opengl or you're not using DXVK you may need to use dlsym. mangohud --dlsym

Its FarCry 3. DXVK/Vulkan. previously everything worked fine. before reinstalling the system.

flightlessmango commented 4 years ago

What distribution are you using?

Freeman310 commented 4 years ago

OpenSUSE Tumbleweed

Freeman310 commented 4 years ago

mangohud 0.4.0 works. but the versions above do not work with wine.

flightlessmango commented 4 years ago

I'm fairly sure that it's not that it doesn't work with wine, the problem is that he can't find the 32bit mangohud libs. I'm gonna ping @jackun who understands this issue better

Freeman310 commented 4 years ago

because version 0.4.0 works. and it works fine. i compiled mangohud under amd and it worked. but versions above 0.4.0 do not work with wine specifically. vkcube, glxgears, steam and native games work with mangohud. only wine does not work

jackun commented 4 years ago

Just rename the far cry exe so it always loads 64bit :P

Freeman310 commented 4 years ago

Just rename the far cry exe so it always loads 64bit :P

it didn't work.

MR-Diamond commented 4 years ago

Same here on Manjaro and wine-staging 5.18. MangoHud works ok with vkcube and glxgears but not with wine (and DXVK 1.7.1):

mangohud wine gta_sa.exe results in

ERROR: ld.so: object 'libMangoHud.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object 'libMangoHud.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
jackun commented 4 years ago

@MR-Diamond Do you have lib32-mangohud[-git] installed? Otherwise run LD_DEBUG=libs mangohud wine gta_sa.exe 2>&1 | grep -i mangohud.so

MR-Diamond commented 4 years ago

@jackun Yeah: I installed it now (still from AUR) and works as expected! Thank you!

flightlessmango commented 4 years ago

Seems solved?