Closed ShadowXeldron closed 2 years ago
same issue here!
For some reason, the Makefile variable STATIC is set to 1 while -shared
is provided as an LDFLAG.
Compile with make STATIC=0
, that worked for me.
Manjaro here, I'm a bit similar.
compiling SonicMania/Game.c...
done SonicMania/Game.c
compiling SonicMania/Objects/All.c...
done SonicMania/Objects/All.c
linking game...
/usr/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/12.1.1/crtbeginT.o: relocation R_X86_64_32 against hidden symbol `__TMC_END__' can not be used when making a shared object
/usr/bin/ld: failed to set dynamic section sizes: bad value
collect2: error: ld returned 1 exit status
make: *** [Makefile:128: bin/Linux/SonicMania.so] Error 1
RSDKv5 builds and runs though.
For some reason, the Makefile variable STATIC is set to 1 while
-shared
is provided as an LDFLAG.Compile with
make STATIC=0
, that worked for me.
It doesn't give me an error but it doesn't exactly build an executable either.
For some reason, the Makefile variable STATIC is set to 1 while
-shared
is provided as an LDFLAG.Compile with
make STATIC=0
, that worked for me.
thanks Matt! Great videos btw.
It doesn't give me an error but it doesn't exactly build an executable either.
You need to combine it with this: https://github.com/Rubberduckycooly/RSDKv5-Decompilation
Compile both, then place the library (renamed to Game.so if necessary) with the executable and asset pack
I believe you can also combine the Game.o generated by this repo with RSDK to produce a statically linked executable, but I haven't tried that myself yet.
Ah, thank you. I got confused (or maybe I still am) since compiling RSDKv5 gave me a Game.so with it.
I can confirm that I got a sucessful build with STATIC=0.
Attempting to run Make under Ubuntu 22.04 results in the following issues:
After running the build, a broken symbolic link labeled Game appears in the repository. I cannot tell whether or not this is an issue on my part however, since multiple users have also reported a similar issue on a Discord thread.