aramil248 Posted February 16, 2016 Share Posted February 16, 2016 I was wondering how i could get ja/openjk running on my raspberry pi? Smoo likes this Link to comment
ensiform Posted February 16, 2016 Share Posted February 16, 2016 Compile it from source and see if it works? I think there is basic arm support but I don't know if there will be issues or not. You may only be able to get a server running. Link to comment
aramil248 Posted February 16, 2016 Author Share Posted February 16, 2016 How would I compile it? I'm not compiling it on the pi that would take forever Link to comment
Futuza Posted February 16, 2016 Share Posted February 16, 2016 @@jakub742 just did this a while ago, he could probably help you out and I know @@capturesteve has as well. You'll want to cross compile it (the official raspberry pi website recommends following this tutorial to install a vm ubuntu and compile there), Raspberian is a Debian based linux so it should be basically the same as compiling on a debian based distribution of linux. BruceJohnJenner likes this Link to comment
Xycaleth Posted February 16, 2016 Share Posted February 16, 2016 You won't be able to run it as far as I know, even if you can get it to compile. The rpi only supports OpenGL ES and not OpenGL. Ziggurat likes this Link to comment
Raz0r Posted February 16, 2016 Share Posted February 16, 2016 I've compiled the whole MP codebase on an RPi before, but only successfully ran the dedicated server with jampgame and confirmed it working online. Link to comment
aramil248 Posted February 16, 2016 Author Share Posted February 16, 2016 what i was going to try to do was compile it on my desktop then ftp it to the pi then try to run it on the pi Link to comment
Ziggurat Posted February 17, 2016 Share Posted February 17, 2016 You won't be able to run it as far as I know, even if you can get it to compile. The rpi only supports OpenGL ES and not OpenGL.According to the raspberry pi foundation the Raspberry Pi 2 supports OpenGL as of the latest Raspbian release https://www.raspberrypi.org/blog/another-new-raspbian-release/ BruceJohnJenner likes this Link to comment
Xycaleth Posted February 17, 2016 Share Posted February 17, 2016 Ah ok. Good to see it's finally supported! in that case as long as the client code can be compiled, then it should just run. Provided OP has an rpi2. Link to comment
ensiform Posted February 17, 2016 Share Posted February 17, 2016 That page says its experimental an disabled by default. Ziggurat likes this Link to comment
Ziggurat Posted February 17, 2016 Share Posted February 17, 2016 That page says its experimental an disabled by default.Yes, and how to enable it, and some known problems. Link to comment
aramil248 Posted February 18, 2016 Author Share Posted February 18, 2016 So how will I compile openjk for arm on ubuntu 64bit? Link to comment
Raz0r Posted February 18, 2016 Share Posted February 18, 2016 I don't have exact steps for cross-compiling, but the gist of it is: You need a CMake toolchain file for Raspberry Pi. There should be some good examples around the interwebs. Link to comment
aramil248 Posted February 18, 2016 Author Share Posted February 18, 2016 I don't have exact steps for cross-compiling, but the gist of it is: You need a CMake toolchain file for Raspberry Pi. There should be some good examples around the interwebs.i dont get what you said but ok I will Google about it Link to comment
Ziggurat Posted February 18, 2016 Share Posted February 18, 2016 i dont get what you said but ok I will Google about ithttp://elinux.org/Raspberry_Pi_Kernel_Compilation#Ubuntu_Linux I think this might be a good place to start, I have not inspected the steps Link to comment
Boothand Posted February 18, 2016 Share Posted February 18, 2016 Ouned did this with JK2. As for me, I haven't even figured out what a raspberry pi is yet, other than a.. chip Source ent likes this Link to comment
BruceJohnJenner Posted February 28, 2016 Share Posted February 28, 2016 I've compiled the whole MP codebase on an RPi before, but only successfully ran the dedicated server with jampgame and confirmed it working online.So you were able to get around the issue that @@capturesteve ran into with the server not being visible on the network? https://jkhub.org/topic/5549-running-dedicated-server-on-raspberry-pi/ OP, if you change your mind on cross compiling, the instructions to build OpenJK on the pi are in the link above. Link to comment
aramil248 Posted March 1, 2016 Author Share Posted March 1, 2016 ok so far i got it all to compile by just using the steps for compiling it on pc right now im ftping the pk3s from the disk to the pi will post what happens Link to comment
aramil248 Posted March 1, 2016 Author Share Posted March 1, 2016 pi@raspberrypi:~ $ cd jediacademy/pi@raspberrypi:~/jediacademy $ ./openjk.arm OpenJK-MP: v1.0.1.0 linux-arm Mar 1 2016----- FS_Startup -----Current search path:/home/pi/.local/share/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 filesexecing mpdefault.cfgcouldn't exec openjk.cfgcouldn't exec autoexec.cfg----- Initializing Renderer ----Trying to load "rd-vanilla_arm.so" from "."...QKEY found.SDL using driver "x11"Initializing displayDisplay aspect: 1.771...setting mode 4: 800 600^3WARNING: Couldn't get window display index, no resolutions detected: Invalid window...ERROR: no display modes could be found.GL_RENDERER: (null)tty]Segmentation faultpi@raspberrypi:~/jediacademy $ Link to comment
Xycaleth Posted March 1, 2016 Share Posted March 1, 2016 Do you have OpenGL drivers installed? BruceJohnJenner likes this Link to comment
aramil248 Posted March 1, 2016 Author Share Posted March 1, 2016 I did install them but did not reboot after maybe I should of Link to comment
Futuza Posted March 1, 2016 Share Posted March 1, 2016 You can test if OpenGL is installed with this: glxgears Install with this: sudo apt-get install mesa-utils BruceJohnJenner likes this Link to comment
aramil248 Posted March 2, 2016 Author Share Posted March 2, 2016 so i got it to load to the main menu but then when loading up a solo game the pi froze up on loading ffa1 Link to comment
Xycaleth Posted March 2, 2016 Share Posted March 2, 2016 What did you change to get further? Do you get any errors in the terminal or console when it froze up? Link to comment
SomaZ Posted March 2, 2016 Share Posted March 2, 2016 Maybe you can ask this youtuber. https://www.youtube.com/watch?v=P-1EHdHxEk8 Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now