Page 1 of 1

SForge: Can't Compile svn source for demo-1.1

PostPosted: 14 Sep 2010, 16:22
by Michael
Copied from SF:

While trying to compile the source, I had to make quite a few changes to the #include statements. These are the changes I made:
In file zeroballistics/branches/demo-1.1/libs/toolbox/src/RegisteredFpGroup.h
#include <string>

In file zeroballistics/branches/demo-1.1/libs/toolbox/src/Bitmap.h and zeroballistics/branches/demo-1.1/libs/toolbox/src/Frustum.h
#include <cstring>

In file zeroballistics/branches/demo-1.1/bluebeard/src/GameState.h
#include <memory>

Also, I had to change #include <raknet/(whatever)> to #include <RakNet/(whatever)> After those changes I get this error, and I can not seem to fix it:
Code: Select all
[ 17%] Building CXX object bluebeard/CMakeFiles/bluebeard.dir/src/SdlApp.o In file included from /usr/include/CEGUI/CEGUI.h:67:0, from /home/patrick/zeroballistics/branches/demo-1.1/bluebeard/src/Gui.h:7, from /home/patrick/zeroballistics/branches/demo-1.1/bluebeard/src/SdlApp.cpp:17: /usr/include/CEGUI/falagard/CEGUIFalWidgetLookManager.h:31:28: fatal error: CEGUISingleton.h: No such file or directory compilation terminated. make[2]: *** [bluebeard/CMakeFiles/bluebeard.dir/src/SdlApp.o] Error 1 make[1]: *** [bluebeard/CMakeFiles/bluebeard.dir/all] Error 2 make: *** [all] Error 2

Hi Patrick, first of all, thanks for the feedback. I compiled the demo-1.1 branch now and fixed any issues I encountered.

Did you install all the dependency debs? It seems like you are missing the CEGUI library. Check out ... structions as well as (external dependencies/deb) for download of pre-compiled debs.
regards christian

I just noticed the demo-1.1 branch probably isn't is what you want. I removed it to avoid future confusion.
To compile the version as used in the downloadable beta demo, you have to check out https://zeroballistics.svn.sourceforge. ... ches/v1.10.

In that case, you also have to install a different flavour of the RakNet library. I uploaded a precompiled deb ( ... b/download) and updated the build instructions ( ... structions).

regards christian

Re: SForge: Can't Compile svn source for demo-1.1

PostPosted: 05 Apr 2011, 18:31
by markusj
The real cause for this error is g++'s policy to ignore system include dirs. If a CEGUI dev package is installed, the (hardcoded) include path points to exactly such an dir and is therefore ignored. Creating a symlink into the source-folder and changing the cmake configuration solves this problem.


Edit: This needs to be done with bluebeard/CMakeLists.txt and games/tank/CMakeLists.txt
Edit2: And tools/{model|particle]viewer/CMakeLists.txt