Jump to content

Installing on Ubuntu 64bit


Tomadox

Recommended Posts

Posted

Sorry, a bit new to Ubuntu and compiling packages, so excuse me if I am completely wrong about anything.

I know there is a tutorial, and I have followed it to the letter. I have the assets folder, with all the necessary files.

My problem is, I simply cannot run openjk.x86_64. Through terminal nothing ahppens, and normal execution produces no result either.

Is there supposed to be an i386 file? I saw that mentioned at the bottom of the page on compilation guide.

 

On a side note, I can run the openjkded.x86_64 file THROUGH TERMINAL, but that is a server file as far as I know and is not what I want.

 

Is there any more detailed documentation, or should I blindly keep trying?

 

Thanks or any help you can provide.

 

Posted

You may be missing runtime dependencies. You can use ldd to see which libraries are being linked and which ones are missing.

 

 

$ ldd openjk.x86_64
  • 5 weeks later...
Posted

Hello! I'm running Ubuntu 14.04 (Trusty) 64bit also I have the 32bit binaries for openjk. 

 

Running openjkded.i386 with terminal works fine as it has all the depencies:

 

 

~/Bin/jka_linux/GameData$ ldd openjkded.i386

linux-gate.so.1 =>  (0xf77db000)
libz.so.1 => /lib/i386-linux-gnu/libz.so.1 (0xf77a1000)
libdl.so.2 => /lib/i386-linux-gnu/libdl.so.2 (0xf779c000)
libstdc++.so.6 => /usr/lib/i386-linux-gnu/libstdc++.so.6 (0xf76b2000)
libm.so.6 => /lib/i386-linux-gnu/libm.so.6 (0xf766c000)
libgcc_s.so.1 => /lib/i386-linux-gnu/libgcc_s.so.1 (0xf764f000)
libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xf74a0000)
/lib/ld-linux.so.2 (0xf77dc000)
 

 

Though I have problem with openjk.i386. It's missing libSDL2.so.0 and I can't find the proper library to install. 

 

 

~/Bin/jka_linux/GameData$ ldd openjk.i386

linux-gate.so.1 =>  (0xf7769000)
libz.so.1 => /lib/i386-linux-gnu/libz.so.1 (0xf772f000)
libGL.so.1 => /usr/lib32/nvidia-331/libGL.so.1 (0xf762b000)
libSM.so.6 => /usr/lib/i386-linux-gnu/libSM.so.6 (0xf7621000)
libICE.so.6 => /usr/lib/i386-linux-gnu/libICE.so.6 (0xf7607000)
libX11.so.6 => /usr/lib/i386-linux-gnu/libX11.so.6 (0xf74d3000)
libXext.so.6 => /usr/lib/i386-linux-gnu/libXext.so.6 (0xf74c0000)
libopenal.so.1 => /usr/lib/i386-linux-gnu/libopenal.so.1 (0xf746b000)
libSDL2.so.0 => not found
libpthread.so.0 => /lib/i386-linux-gnu/libpthread.so.0 (0xf744e000)
libstdc++.so.6 => /usr/lib/i386-linux-gnu/libstdc++.so.6 (0xf7365000)
libm.so.6 => /lib/i386-linux-gnu/libm.so.6 (0xf731f000)
libgcc_s.so.1 => /lib/i386-linux-gnu/libgcc_s.so.1 (0xf7302000)
libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xf7152000)
libnvidia-tls.so.331.38 => /usr/lib32/nvidia-331/tls/libnvidia-tls.so.331.38 (0xf714e000)
libnvidia-glcore.so.331.38 => /usr/lib32/nvidia-331/libnvidia-glcore.so.331.38 (0xf4f0a000)
libdl.so.2 => /lib/i386-linux-gnu/libdl.so.2 (0xf4f05000)
libuuid.so.1 => /lib/i386-linux-gnu/libuuid.so.1 (0xf4eff000)
libxcb.so.1 => /usr/lib/i386-linux-gnu/libxcb.so.1 (0xf4edc000)
librt.so.1 => /lib/i386-linux-gnu/librt.so.1 (0xf4ed3000)
/lib/ld-linux.so.2 (0xf776a000)
libXau.so.6 => /usr/lib/i386-linux-gnu/libXau.so.6 (0xf4ecf000)
libXdmcp.so.6 => /usr/lib/i386-linux-gnu/libXdmcp.so.6 (0xf4ec8000)
 

 

Can someone help me please?

Posted

If you're running the 32bit version of OpenJK, you'll also need SDL2 installed. Try something like, sudo apt-get install libsdl2:i386 in the terminal.

Posted

I did also installed the libsdl2-dev:i386. Now the problem is I have the libSDL2.so file  in /usr/lib/i386-linux-gnu/ but game still requires libSDL2.so.0. What is the difference? :S

Posted (edited)
lrwxrwxrwx 1 root root      20 márc  12 21:07 /usr/lib/i386-linux-gnu/libSDL2-2.0.so -> libSDL2-2.0.so.0.0.0

lrwxrwxrwx 1 root root      20 márc  12 21:07 /usr/lib/i386-linux-gnu/libSDL2-2.0.so.0 -> libSDL2-2.0.so.0.2.0

-rw-r--r-- 1 root root 1091364 márc  12 21:07 /usr/lib/i386-linux-gnu/libSDL2-2.0.so.0.2.0

-rw-r--r-- 1 root root 1485496 márc  12 21:07 /usr/lib/i386-linux-gnu/libSDL2.a

-rw-r--r-- 1 root root    1068 márc  12 21:07 /usr/lib/i386-linux-gnu/libSDL2main.a

lrwxrwxrwx 1 root root      20 márc  12 21:07 /usr/lib/i386-linux-gnu/libSDL2.so -> libSDL2-2.0.so.0.2.0

-rw-r--r-- 1 root root  224350 márc  12 21:07 /usr/lib/i386-linux-gnu/libSDL2_test.a

 

 

edit:

 

I also tried to rename libSDL2.so to libSDL2.so.0 and in this case the game started up in terminal but then it failed with an error belongs to rd-vanilla:

 


~/Bin/jka_linux/GameData$ ./openjk.i386

OpenJK-MP: v1.0.1.0 linux-i386 Dec 23 2013

----- FS_Startup -----

Current search path:

/home/csaky/.openjk/base

./base/assets3.pk3 (16 files)

./base/assets2.pk3 (62 files)

./base/assets1.pk3 (8320 files)

./base/assets0.pk3 (15346 files)

./base

 

----------------------

23744 files in pk3 files

execing mpdefault.cfg

couldn't exec openjk.cfg

couldn't exec autoexec.cfg

----- Initializing Renderer ----

Trying to load "rd-vanilla_i386.so" from "."...

Loading "rd-vanilla_i386.so" failed

 

I have the rd-vanilla_i386.so file in the GameData folder.

 

Edited by Morabis
Posted

Yeah some others too. With the 'ldd' command you check a file for it's dependencies like ' ldd openjk.i386'. If it says for a file that it wasn't found than you miss that dependency. Several posts above you can see what dependencies are listed.

Posted

You have a pretty old version of OpenJK. You should try a newer (read: the newest) version. I'm not at my pc atm but I can upload the latest 64-bit version for you when I get home from work.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...