I'm trying to compile the code for sometime now and I'm having some trouble with it, maybe someone can help (Tyreth just gave me a hand by ICQ, I wasn't even being able to log in in the forums due to a inactive user status.)
I was having some trouble with the includes in some files being like this:
Code: Select all
#include "fastevents.h"
Code: Select all
#include <net/fastevents.h>
Code: Select all
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/SDL -D_REENTRANT -I/usr/include/SDL -D_REENTRANT -I/usr/include/SDL -D_REENTRANT -I/usr/include/freetype2 -DFREEORION_LINUX -I/usr/local/include/GG/ -g3 -Wall -MT ServerEmpireManager.o -MD -MP -MF ".deps/ServerEmpireManager.Tpo" \
-c -o ServerEmpireManager.o `test -f '../Empire/ServerEmpireManager.cpp' || echo './'`../Empire/ServerEmpireManager.cpp; \
then mv -f ".deps/ServerEmpireManager.Tpo" ".deps/ServerEmpireManager.Po"; \
else rm -f ".deps/ServerEmpireManager.Tpo"; exit 1; \
fi
In file included from ../server/ServerApp.h:14,
from ../Empire/ServerEmpireManager.cpp:4:
../network/ServerNetworkCore.h:1: syntax error before `<<' token
In file included from /usr/include/SDL/SDL.h:34,
from ../network/NetworkCore.h:9,
from ../network/ServerNetworkCore.h:7,
from ../server/ServerApp.h:14,
from ../Empire/ServerEmpireManager.cpp:4:
/usr/include/SDL/SDL_types.h:40: ISO C++ forbids declaration of `SDL_bool' with
no type
In file included from /usr/include/SDL/SDL.h:38,
from ../network/NetworkCore.h:9,
from ../network/ServerNetworkCore.h:7,
from ../server/ServerApp.h:14,
from ../Empire/ServerEmpireManager.cpp:4:
/usr/include/SDL/SDL_timer.h:110: syntax error before `(' token
In file included from /usr/include/SDL/SDL_mouse.h:34,
from /usr/include/SDL/SDL_events.h:36,
from /usr/include/SDL/SDL.h:42,
from ../network/NetworkCore.h:9,
from ../network/ServerNetworkCore.h:7,
from ../server/ServerApp.h:14,
from ../Empire/ServerEmpireManager.cpp:4:
/usr/include/SDL/SDL_video.h:602: syntax error before `(' token
In file included from ../network/ServerNetworkCore.h:7,
from ../server/ServerApp.h:14,
from ../Empire/ServerEmpireManager.cpp:4:
../network/NetworkCore.h:74: syntax error before `==' token
In file included from ../server/ServerApp.h:14,
from ../Empire/ServerEmpireManager.cpp:4:
../network/ServerNetworkCore.h:75: syntax error before `==' token
In file included from ../server/ServerApp.h:18,
from ../Empire/ServerEmpireManager.cpp:4:
../util/Process.h:36: ISO C++ forbids declaration of `Process' with no type
../util/Process.h:40: non-member function `bool Empty()' cannot have `const'
method qualifier
../util/Process.h: In function `bool Empty()':
../util/Process.h:40: `m_empty' undeclared (first use this function)
../util/Process.h:40: (Each undeclared identifier is reported only once for
each function it appears in.)
../util/Process.h: At global scope:
../util/Process.h:49: syntax error before `private'
../util/Process.h:54: destructors must be member functions
../util/Process.h:56: syntax error before `private'
../util/Process.h:65: type/value mismatch at argument 1 in template parameter
list for `template<class T> class boost::shared_ptr'
../util/Process.h:65: expected a type, got `ProcessImpl()'
../util/Process.h:65: ISO C++ forbids declaration of `m_impl' with no type
../util/Process.h:66: `bool m_empty' used prior to declaration
../util/Process.h:67: syntax error before `}' token
In file included from ../Empire/ServerEmpireManager.cpp:4:
../server/ServerApp.h:137: type/value mismatch at argument 1 in template
parameter list for `template<class _Tp, class _Alloc> class std::vector'
../server/ServerApp.h:137: expected a type, got `Process(const std::string&,
const std::vector<std::string, std::allocator<std::string> >&)'
../server/ServerApp.h:137: template argument 2 is invalid
../server/ServerApp.h:137: ISO C++ forbids declaration of `m_ai_clients' with
no type
make[2]: *** [ServerEmpireManager.o] Error 1
make[2]: Leaving directory `/home/gralves/freeorion/FreeOrion/Empire'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/gralves/freeorion/FreeOrion'
make: *** [all] Error 2
Thanks in advance for any hell,
Gustavo
[/code]