QuantiCode games

Zero Ballistics, Full Metal Soccer

Skip to content

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

Post any problems related to the beta version of Zero Ballistics

Moderators: Michael, Bernhard, Christian

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

Postby Michael on 14 Sep 2010, 16:22

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 https://sourceforge.net/apps/mediawiki/ ... structions as well as https://sourceforge.net/projects/zeroballistics/files/ (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 (https://sourceforge.net/projects/zeroba ... b/download) and updated the build instructions (https://sourceforge.net/apps/mediawiki/ ... structions).

regards christian
Posts: 204
Joined: 29 Mar 2008, 17:19

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

Postby markusj on 05 Apr 2011, 18:31

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
Posts: 1
Joined: 05 Apr 2011, 18:26
Location: Germany

Return to Support

Who is online

Users browsing this forum: No registered users and 2 guests