Skip to content
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

[LINUX] could not load library /home/.../ag/cl_dlls/client.so #181

Open
Lamborge opened this issue Nov 20, 2023 · 7 comments
Open

[LINUX] could not load library /home/.../ag/cl_dlls/client.so #181

Lamborge opened this issue Nov 20, 2023 · 7 comments

Comments

@Lamborge
Copy link

Lamborge commented Nov 20, 2023

just install agmod and it won't start
gdb output:
(gdb) call (void*) dlopen("ag/cl_dlls/client.so", 2) $1 = (void *) 0x0
(gdb) call (char*) dlerror() $2 = 0x8077690 "ag/cl_dlls/client.so: undefined symbol: SDL_SetRelativeMouseMode"

@YaLTeR
Copy link
Owner

YaLTeR commented Nov 21, 2023

Try with the "legacy" beta on Half-Life.

@SmileyAG
Copy link
Contributor

According to error, might be this has something to do that with the release of the 25th anniversary version, they removed the libSDL2 libs from the Half-Life folder for Linux depot: https://steamdb.info/depot/8/history/?changeid=M:2809540380682473923

Although the latest version of the engine is still dynamically linked to the libSDL2, it's just borrows version now from steam runtime (from info sharedlibrary in gdb):

0xf5c6cda0  0xf5d8d978  Yes (*)     /home/smileyag/.steam/debian-installation/ubuntu12_32/steam-runtime/i386/usr/lib/i386-linux-gnu/libSDL2-2.0.so.0

@Lamborge
Copy link
Author

I did run Half-Life with Native Runtime. So, as i understand, if just install libSDL2 or move .so file of libSDL2 to Half-Life folder, problem will solve?

@krangm
Copy link

krangm commented Nov 21, 2023

Can confirm Linux OpenAG launches fine with libSDL2-2.0.so.0 preloaded.

@Lamborge
Copy link
Author

adding LD_PRELOAD=/usr/lib32/libSDL2-2.0.so.0 %command% to launch parameters solve the problem

@SmileyAG
Copy link
Contributor

adding LD_PRELOAD=/usr/lib32/libSDL2-2.0.so.0 %command% to launch parameters solve the problem

Let me note that it is not necessary to use the system one libSDL2-2.0.so.0, you can also use it from steam runtime, the only important is that it must be preloaded:

LD_PRELOAD=$STEAM_RUNTIME/usr/lib/i386-linux-gnu/libSDL2-2.0.so.0 %command% -game ag

@krangm
Copy link

krangm commented Nov 24, 2023

adding LD_PRELOAD=/usr/lib32/libSDL2-2.0.so.0 %command% to launch parameters solve the problem

Let me note that it is not necessary to use the system one libSDL2-2.0.so.0, you can also use it from steam runtime, the only important is that it must be preloaded:

LD_PRELOAD=$STEAM_RUNTIME/usr/lib/i386-linux-gnu/libSDL2-2.0.so.0 %command% -game ag

Have not tested after 25th anniversary update, but historically HL was shipped with badly outdated libSDL2 so it is recommended to replace game-shipped lib with the one from the system. Otherwise mouse rawinput is wrong and acceleration exists despite of config values. Some other bugs may happen too.

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

No branches or pull requests

4 participants