RealRTCW icon indicating copy to clipboard operation
RealRTCW copied to clipboard

workaround: disable steam to successfully build on GNU/Linux systems

Open M0Rf30 opened this issue 2 years ago • 3 comments

M0Rf30 avatar Aug 20 '22 15:08 M0Rf30

I've tried this and the game is crashing: Sys_LoadGameDll(.... source/morfrtcw/build/release-linux-x86_64/main/qagame.sp.x86_64.so) failed: That library expects functions

                 U steamAlive
                 U steamInit
                 U steamRun
                 U steamSetAchievement
                 U steamSetRichPresence

defined in steam.c

The right way to do this is conditional compilation imo.

Needless to say, this will break the steam integration feature for non-linux systems.

jjdredd avatar Aug 20 '22 18:08 jjdredd

Yeah I agree with you @jjdredd consider this not as fix but as a workaround. For now, at least on Arch Linux, is working (with no steam features of course). maybe another temporary workaround would be reverting all the commits related to steam shim, like:

  • 55a02acf63ea0b148b52dd3b538d4238ff32a5a0
  • a8f22d2d07e459b36f464f8378906dcfe25d2274
  • f99e86f9d55b497284418b919f304df6eadb8ecf Personally I don't give a f*ck about steam (the more is free from proprietary platforms the more I appreciate it)

Only one thing is not clear to me. @jjdredd how do you compile it without patching the wrong path of steam.h in g_main.c ? I mean, it's obviously a wrong path. Can you share some details on your environment or your way to compile this code?

M0Rf30 avatar Aug 20 '22 20:08 M0Rf30

I can launch the game and use the realrtcw aur package, which contains this patch (afaik), but when I start a level, it crashes with the following error:

Sys_LoadGameDll(./main/qagame.sp.x86_64.so) failed:
"Failed loading ./main/qagame.sp.x86_64.so: ./main/qagame.sp.x86_64.so: undefined symbol: steamSetRichPresence"
----- Client Shutdown (Client fatal crashed: VM_Create on game failed) -----

@M0Rf30 Can you take a look at this? also, sha256 checksum for realrtcw-4.0.zip is incorrect.

xeome avatar Sep 12 '22 12:09 xeome

Hi @M0Rf30, your patch here is not working for me, either using the AUR PKGBUILD (which I think it yours?) or manually patching the github 4.0 tag. I have the same issue as @xeome above. The build completes succesfully but I can't start a level, or load a save game, or load any mods. Console output below:

Sys_LoadGameDll(./main/qagame.sp.x86_64.so) failed:
"Failed loading ./main/qagame.sp.x86_64.so: ./main/qagame.sp.x86_64.so: undefined symbol: steamSetRichPresence"
----- Client Shutdown (Client fatal crashed: VM_Create on game failed) -----
RE_Shutdown( 1 )
OpenAL capture device closed.
-----------------------
----- Server Shutdown (Server fatal crashed: VM_Create on game failed) -----
---------------------------
VM_Create on game failed

Do you see this in your builds? Any ideas what might cause this?

benjmarshall avatar Jan 25 '23 22:01 benjmarshall