Pages: [1]
Author Topic: Compiling on Ubuntu  (Read 5532 times)
Ok i've posted twice!

Cakes 1
Posts: 2

« 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!

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/
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

Cakes 35
Posts: 14520

« Reply #1 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)

asking when OA3 will be done won't get OA3 done.
Progress of OA3 currently occurs behind closed doors alone

I do not provide technical support either.

new code development on github
Posts a lot

Cakes 62
Posts: 1664

Open Arena Developer

« Reply #2 on: January 10, 2015, 01:27:05 AM »

The old package cannot compile on GCC-4.8+ without this change:

There are nothing offending in my posts.
Ok i've posted twice!

Cakes 1
Posts: 2

« Reply #3 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!)
grey matter

Cakes 8
Posts: 381


« Reply #4 on: January 10, 2015, 05:34:55 PM »

To install the compiled gamecode QVM as an OpenArena mod for your current user;
$ 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;
$ sudo make copyfiles
« Last Edit: January 10, 2015, 05:42:22 PM by grey matter » Logged

This space is for rent.
Pages: [1]
Jump to: