Topic: Raspberry Pi client compile problem - Debian Linux (Wheezy)
Hi
I am currently tring to build Teeworlds on the Raspberry Pi. It has Debian Wheezy running with around 192MB of ram for apps.
The server is running fine and it's able to support at least 6 players.
My problem is trying to get the client to compile. I think I am getting errors relating to SDL / OpenGL libs not being found. See error messages below:
../bam-0.4.0/bam release
[1/4] #1 c++ src/engine/client/sound.cpp
src/engine/client/sound.cpp:8:17: fatal error: SDL.h: No such file or directory
compilation terminated.
bam: 'objs/engine/client/sound.o' error 256
[2/4] #1 c++ src/engine/client/graphics.cpp
src/engine/client/graphics.cpp:7:17: fatal error: SDL.h: No such file or directory
compilation terminated.
bam: 'objs/engine/client/graphics.o' error 256
[3/4] #1 c++ src/engine/client/input.cpp
src/engine/client/input.cpp:3:17: fatal error: SDL.h: No such file or directory
compilation terminated.
bam: 'objs/engine/client/input.o' error 256
bam: error: a build step failed
I've done a locate on "sound.o" but nothing is found on my system.
locate for graphics.cpp gives:
/home/pi/games/teeworlds/teeworlds/src/engine/client/graphics.cpp
...and locate for input.o gives /home/pi/games/teeworlds/teeworlds/objs/game/client/lineinput.o
which looks to me like its not on my system.
if I do a locate for SDL.h I get:
/home/pi/games/teeworlds/SDL-1.2.15/include/SDL.h
/home/pi/games/teeworlds/teeworlds/other/sdl/include/SDL.h
/usr/local/include/SDL/SDL.h
...doing a locate for something like gl.h gives the follwing:
/home/pi/games/teeworlds/SDL-1.2.15/docs/html/guidevideoopengl.html
/home/pi/games/teeworlds/SDL-1.2.15/include/SDL_opengl.h
/home/pi/games/teeworlds/SDL-1.2.15/src/video/photon/SDL_ph_gl.h
/home/pi/games/teeworlds/teeworlds/other/sdl/include/SDL_opengl.h
/opt/vc/include/EGL/egl.h
/opt/vc/include/GLES/gl.h
/usr/include/GL/gl.h
/usr/include/python2.6/pygame/pgopengl.h
/usr/include/python2.7/pygame/pgopengl.h
/usr/local/include/SDL/GL/gl.h (as a kludge, I think I copied this here to help it build)
/usr/local/include/SDL/SDL_opengl.h
My questions are:
1) How do I include the correct paths for OpenGL and SDL in the build process because I had to kludge this part and copy files?
2) How can I fix the problem listed above where the three errors are being kicked up?
I would be really great to get Teeworlds working on the Raspberry Pi so any help is appreciated.
All the best
Richard