theAsmodai / metamod-r

Metamod is a plugin/DLL manager that sits between the Half-Life Engine and an HL Game mod, allowing the dynamic loading/unloading of mod-like DLL plugins to add functionality to the HL server or game mod. Metamod-r is improved version of metamod.
GNU General Public License v3.0
139 stars 35 forks source link

Compile on Debian 12 #63

Open crywolfy opened 7 months ago

crywolfy commented 7 months ago

Hi there im using this for compiling ./build.sh --compiler=gcc

Everything ok, but at the end when server is starting

LoadLibrary failed on /home/container/./cstrike/addons/metamod/dlls/metamod_i386.so: ./libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /home/container/./cstrike/addons/metamod/dlls/metamod_i386.so) Host_Error: Couldn't get DLL API from /home/container/./cstrike/addons/metamod/dlls/metamod_i386.so! FATAL ERROR (shutting down): Host_Error: Couldn't get DLL API from /home/container/./cstrike/addons/metamod/dlls/metamod_i386.so!

Server is runing inside Pterodactyl container Tryed: ./build.sh --compiler=gcc --jobs=10 -D=USE_STATIC_LIBSTDC=OFF / ON no one works, how are you compiling it, cuz your version works fine :)

Thanks

stamepicmorg commented 7 months ago

Hello, look at this file, Linux section.

Try this steps?


update:

try to set USE_STATIC_LIBSTDC option via

-DUSE_STATIC_LIBSTDC=OFF

instead

-D=USE_STATIC_LIBSTDC=OFF

this option add -static-libgcc -static-libstdc++ gcc flags. Alternatively, you could add it manually. Maybe also with -static flag too.