erfg12 / clanmod-jka

Multiplayer mod for Jedi Academy.
https://erfg12.github.io/clanmod-jka
7 stars 4 forks source link

64bit linux support #5

Closed ghost closed 8 years ago

ghost commented 8 years ago

While running on 64bit linux machine (using openJK) it throws:

Sys_LoadGameDll(/home/than/.local/share/openjk/clanmod/jampgamex86_64.so) failed: "/home/than/.local/share/openjk/clanmod/jampgamex86_64.so: cannot open shared object file: No such file or directory"
Sys_LoadGameDll(./clanmod/jampgamex86_64.so) failed: "./clanmod/jampgamex86_64.so: cannot open shared object file: No such file or directory"
Sys_LoadGameDll(/home/than/.local/share/openjk/base/jampgamex86_64.so) failed: "/home/than/.local/share/openjk/base/jampgamex86_64.so: cannot open shared object file: No such file or directory"
VM_Create: jampgamex86_64.so succeeded

The mod provides only jampgamei386.so. Most things seems to work nevertheless, but every clanmod command throws unknown command.

erfg12 commented 8 years ago

Do you have GCC? Try compiling the code to x86_64. Currently I'm at work and I don't have a Linux OS handy.

You can try this, I pulled these notes from some compilation guide on the internet...

Linux/Mac OS X CMake notes

Building on Linux or Mac OS X requires SDL2. If you wish to build on 64-bit Linux, you should force it to build 32-bit for now, by adding the CMake flags -DCMAKE_CXX_FLAGS=-m32 -DCMAKE_C_FLAGS=-m32 -DCMAKE_SHARED_LINKER_FLAGS=-m32 -DCMAKE_SIZEOF_VOID_P=4

Basically changing the makefile to write 32/64 bit code instead of i386. No idea if it will work or not.

On Tue, October 6, 2015 9:21 am, Thandriel wrote:

While running on 64bit linux machine (using openJK) it throws:

Sys_LoadGameDll(/home/than/.local/share/openjk/clanmod/jampgamex86_64.so)
failed: "/home/than/.local/share/openjk/clanmod/jampgamex86_64.so: cannot
open shared object file: No such file or directory"
Sys_LoadGameDll(./clanmod/jampgamex86_64.so) failed:
"./clanmod/jampgamex86_64.so: cannot open shared object file: No such
file or directory"
Sys_LoadGameDll(/home/than/.local/share/openjk/base/jampgamex86_64.so)
failed: "/home/than/.local/share/openjk/base/jampgamex86_64.so: cannot
open shared object file: No such file or directory" VM_Create:
jampgamex86_64.so succeeded ```
The mod provides only jampgamei386.so.

---
Reply to this email directly or view it on GitHub:
https://github.com/erfg12/clanmod-jka/issues/5
ghost commented 8 years ago

It seems it was sort of pebkac problem :) Tried compiling myself even before I created this ticked and it didn't solve it. Tried again today and it works. Of course I had to rename the file from i386 to x86_64. FYI I succeeded compiling the library just with make command, no arguments needed and with provided gcc makefile. I'm on ubuntu 15.04 x86_64.

erfg12 commented 8 years ago

If you get a chance, give me a copy and I'll distribute it with the next build package.

ghost commented 8 years ago

Here you go. Sorry for delay :)

erfg12 commented 8 years ago

Ok, I requested access. Need approval.

ghost commented 8 years ago

Weird. Anyway access granted.

Edit: The file should be now accessible to anyone with it's link.