OpenArena Message Boards

OpenArena Contributions => Development => Topic started by: fish on January 09, 2015, 02:30:47 PM



Title: Compiling on Ubuntu
Post by: fish on January 09, 2015, 02:30:47 PM
I'm trying to build OpenArena from scratch on an Ubuntu machine.

I downloaded oa-0.8.8 and openarena-engine-source-0.8.8

So far I've only managed to get openarena-engine-source-0.8.8 to compile successfully.


I copy and pasted the last few lines of the unsuccessful compile output for oa-0.8.8 below.
I haven't made any changes to any of the files, so I'm pretty sure I'm just doing something stupid.

Thanks so much!

Code:
UI_CC_MISSIONPACK code/ui/ui_gameinfo.c
UI_CC_MISSIONPACK code/ui/ui_players.c
UI_CC_MISSIONPACK code/game/bg_misc.c
UI_CC_MISSIONPACK code/game/bg_lib.c
LD build/release-linux-x86_64/missionpack/uix86_64.so
CGAME_Q3LCC code/cgame/cg_main.c
build/release-linux-x86_64/tools/q3lcc: fatal error in build/release-linux-x86_64/tools/q3cpp
make[2]: *** [build/release-linux-x86_64/baseq3/cgame/cg_main.asm] Error 1
make[2]: Leaving directory `/home/reimu/Desktop/OpenArena/oa-0.8.8'
make[1]: *** [targets] Error 2
make[1]: Leaving directory `/home/reimu/Desktop/OpenArena/oa-0.8.8'
make: *** [release] Error 2


Title: Re: Compiling on Ubuntu
Post by: fromhell on January 09, 2015, 05:22:41 PM
cgame is part of the gamecode which is a separate module from the engine. Same goes for game and (q3_)ui.  These are separately maintained, and also compiling them won't be effective unless you make a new pk3 (because checksum/purity protections) or have a mod directory.  Also since the included media PK3s have a compiled qvm of the cgame/game/ui code, compiling them again shouldn't be necessary (unless you want to fix something in them)

https://github.com/OpenArena/gamecode


Title: Re: Compiling on Ubuntu
Post by: sago007 on January 10, 2015, 01:27:05 AM
The old package cannot compile on GCC-4.8+ without this change: https://github.com/OpenArena/gamecode/commit/1006052f780ca42db9ae17ea9226e2455952fbe5


Title: Re: Compiling on Ubuntu
Post by: fish on January 10, 2015, 02:38:25 PM
Awesome. sago's tip got it to compile.

I'm still confused how I get these parts to run once they're built. I'm guessing that is what fromhell's post was addressing, but I'm still a little confused.

Can you direct me to the file I should run from terminal to launch everything? Or is there a step I'm just missing.

(Sorry for being so bad at this!)


Title: Re: Compiling on Ubuntu
Post by: grey matter on January 10, 2015, 05:34:55 PM
To install the compiled gamecode QVM as an OpenArena mod for your current user;
Code:
$ mkdir -p ~/.openarena/mymod/
$ cp -r /home/reimu/Desktop/OpenArena/oa-0.8.8/build/release-linux-x86_64/baseq3/vm/ ~/.openarena/mymod/
$ openarena +set sv_pure 0 +set fs_game mymod

To install the compiled engine, this should suffice;
Code:
$ sudo make copyfiles