Pages: [1]
  Print  
Author Topic: Compiling on Ubuntu  (Read 2661 times)
fish
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!

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
Logged
fromhell
Administrator
GET A LIFE!
**********

Cakes 31
Posts: 14471



WWW
« 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)

https://github.com/OpenArena/gamecode
Logged

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
sago007
Posts a lot
*

Cakes 61
Posts: 1639


Open Arena Developer


WWW
« Reply #2 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
Logged

There are nothing offending in my posts.
fish
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!)
Logged
grey matter
Member


Cakes 8
Posts: 381

>9k


« Reply #4 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
« Last Edit: January 10, 2015, 05:42:22 pm by grey matter » Logged

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