sharmajar
Posts: 3
Joined: Wed Dec 05, 2012 6:42 pm

Quake 3 Compiling

Wed Dec 05, 2012 6:53 pm

Hi Forum

Just starting out with my pi and am attempting compile quake 3 from the ioquake source code on git hub. After I follow the usual instructions of installing the dependant packages that are git, gcc, build-essential and libsdl1.2-dev as well as modifying the build.sh file in nano, I run sudo ./ build.sh and run into this error.

Code: Select all

CC code/es/es_glimp.c
CC code/es/etc1encode.c
In file included from /opt/vc/include/interface/vcos/vcos_assert.h:149:0,
                 from /opt/vc/include/interface/vcos/vcos.h:114,
                 from /opt/vc/include/interface/vmcs_host/vc_dispmanx.h:33,
                 from /opt/vc/include/bcm_host.h:46,
                 from /opt/vc/include/EGL/eglplatform.h:95,
                 from /opt/vc/include/EGL/egl.h:36,
                 from code/es/es_glimp.c:36:
/opt/vc/include/interface/vcos/vcos_types.h:38:33: fatal error: vcos_platform_types.h: No such file or directory
compilation terminated.
CGAME_CC code/cgame/cg_main.c
code/es/etc1encode.c:68:12: warning: ‘dsize’ defined but not used [-Wunused-variable]
code/es/etc1encode.c:72:18: warning: ‘ldropped’ defined but not used [-Wunused-variable]
code/es/etc1encode.c:72:28: warning: ‘ltested’ defined but not used [-Wunused-variable]
code/es/etc1encode.c:764:27: warning: ‘block_encode_search’ defined but not used [-Wunused-function]
make[2]: *** [build/release-linux-arm/client/es_glimp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
code/es/etc1encode.c: In function ‘etc1_compress_tex_image’:
code/es/etc1encode.c:1107:36: warning: ‘b’ may be used uninitialized in this function [-Wuninitialized]
code/es/etc1encode.c:1106:36: warning: ‘g’ may be used uninitialized in this function [-Wuninitialized]
code/es/etc1encode.c:1105:36: warning: ‘r’ may be used uninitialized in this function [-Wuninitialized]
make[2]: Leaving directory `/home/pi/quake3'
make[1]: *** [targets] Error 2
make[1]: Leaving directory `/home/pi/quake3'
make: *** [release] Error 2
I've checked the build.sh for any errors twice and there are none.
I just really don't know where to go from here.

Help

algotech
Posts: 1
Joined: Sun Jan 27, 2013 3:12 pm

Re: Quake 3 Compiling

Sun Jan 27, 2013 3:21 pm

Hi,
you may want to check the following post : https://github.com/OpenELEC/OpenELEC.tv/issues/1541
basically adding the actual path to that header in build.sh solves the problem

on my PI I have added this variable:

INCLUDE_DIR2="/opt/vc/include/interface/vcos/pthreads"

and then added it to the end of CFLAGS section :

CFLAGS="-DVCMODS_MISC -DVCMODS_OPENGLES -DVCMODS_DEPTH -DVCMODS_REPLACETRIG -I$INCLUDE_DIR -I$INCLUDE_DIR2" \

on your PI it could be different so just do "find / -name vcos_platform_types.h"

regards

sharmajar
Posts: 3
Joined: Wed Dec 05, 2012 6:42 pm

Re: Quake 3 Compiling

Sun Jan 27, 2013 6:28 pm

Thanks algotech
I actually figured that out myself after reading the build.sh file.
Thanks anyway though
But I also have another problem
My pi decides that around 45 mins into compiling it gives me the error

Code: Select all

"file example.so", file format not recognised, treating as linker script
And then stops compiling
My pi does not recognise the .so file extension
Help please!?

dextrus
Posts: 119
Joined: Tue Jan 24, 2012 10:10 pm
Location: Eastleigh, Hampshire
Contact: Website

Re: Quake 3 Compiling

Sun Jan 27, 2013 6:44 pm

Quite detailed instructions here (I don't think I could make them any more detailed?!):

http://www.pi-fun.com/index.php/projects/quake3-3dtv/

Assumption is of course, that you are using Raspbian. Later in this project we'll be exploring the code (when I get time).

/Dextrus
Have more FUN with your Pi. Visit www.pi-fun.com

Return to “Troubleshooting”