Jump to content

New svn release ... new errors ;)


Recommended Posts

Updated today my 0ad directory.

Can't get it to compile on Mac OsX. Collada compiles OK and update-workspace gives no error.

Note that libdevIL is 1.7.8 and enet is 1.2, both compiled from sources (enet is in /usr/local/include/enet/). I previously managed to get 0ad compiled at revision 7000 or something near, with gcc 4.3 (modifying /System/Libraries/Framework/OpenAL.framework/alc.h).

Errors occur in game build itself.

With gcc-4.0.1 (and alc.h not modified) :


ordinateur-de-arnaud:~/Desktop/0ad/build/workspaces/gcc arnaud$ make -j3
==== Building network ====
==== Building graphics ====
==== Building engine ====
precompiled.cpp
precompiled.cpp
precompiled.cpp
cc1plus: error: unrecognized command line option "-fstack-protector-all"
cc1plus: error: unrecognized command line option "-fstack-protector-all"
cc1plus: error: unrecognized command line option "-fstack-protector-all"
make[1]: *** [obj/network_Debug/precompiled.h.gch] Error 1
make: *** [network] Error 2
make: *** Waiting for unfinished jobs....
make[1]: *** [obj/graphics_Debug/precompiled.h.gch] Error 1make[1]: *** [obj/engine_Debug/precompiled.h.gch] Error 1

make: *** [engine] Error 2
make: *** [graphics] Error 2

With gcc-4.3 (running once again update-workspace.sh and with alc.h modified or not) :


ordinateur-de-arnaud:~/Desktop/0ad/build/workspaces/gcc arnaud$ make -j3
==== Building engine ====
==== Building network ====
==== Building graphics ====
precompiled.cpp
precompiled.cpp
precompiled.cpp
fsm.cpp
CConsole.cpp
In file included from ../../../source/network/NetClient.h:30,
from ../../../source/ps/CConsole.cpp:31:
../../../source/network/NetSession.h:35:23: error: enet/enet.h: No such file or directory
Camera.cpp
NetClient.cpp
In file included from ../../../source/network/NetClient.h:30,
from ../../../source/ps/CConsole.cpp:31:
../../../source/network/NetSession.h:48: error: ISO C++ forbids declaration of 'ENetPeer' with no type
../../../source/network/NetSession.h:48: error: expected ';' before '*' token
../../../source/network/NetSession.h:189: error: ISO C++ forbids declaration of 'ENetHost' with no type
../../../source/network/NetSession.h:189: error: expected ';' before '*' token
../../../source/network/NetSession.h:290: error: 'ENetPeer' has not been declared
../../../source/network/NetSession.h:298: error: ISO C++ forbids declaration of 'ENetPeer' with no type
../../../source/network/NetSession.h:298: error: expected ';' before '*' token
In file included from ../../../source/network/NetClient.h:30,
from ../../../source/network/NetClient.cpp:28:
../../../source/network/NetSession.h:35:23: error: enet/enet.h: No such file or directory
In file included from ../../../source/network/NetClient.h:30,
from ../../../source/network/NetClient.cpp:28:
../../../source/network/NetSession.h:48: error: ISO C++ forbids declaration of 'ENetPeer' with no type
../../../source/network/NetSession.h:48: error: expected ';' before '*' token
../../../source/network/NetSession.h:189: error: ISO C++ forbids declaration of 'ENetHost' with no type
../../../source/network/NetSession.h:189: error: expected ';' before '*' token
../../../source/network/NetSession.h:290: error: 'ENetPeer' has not been declared
../../../source/network/NetSession.h:298: error: ISO C++ forbids declaration of 'ENetPeer' with no type
../../../source/network/NetSession.h:298: error: expected ';' before '*' token
CinemaTrack.cpp
make[1]: *** [obj/engine_Debug/CConsole.o] Error 1
make: *** [engine] Error 2
make: *** Waiting for unfinished jobs....
NetLog.cpp
make[1]: *** [obj/network_Debug/NetClient.o] Error 1
make[1]: *** Waiting for unfinished jobs....
ColladaManager.cpp
Color.cpp
DefaultEmitter.cpp
make: *** [network] Error 2
Frustum.cpp
GameView.cpp
HFTracer.cpp
LightEnv.cpp
MapReader.cpp
MapWriter.cpp
Material.cpp
MaterialManager.cpp
MeshManager.cpp
MiniPatch.cpp
Model.cpp
ModelDef.cpp
ObjectBase.cpp
ObjectEntry.cpp
ObjectManager.cpp
ParticleEmitter.cpp
ParticleEngine.cpp
Patch.cpp
SkeletonAnimDef.cpp
SkeletonAnimManager.cpp
Sprite.cpp
Terrain.cpp
TerrainProperties.cpp
TextureEntry.cpp
TextureManager.cpp
Unit.cpp
UnitAnimation.cpp
UnitManager.cpp
JSInterface_Camera.cpp
../../../source/graphics/scripting/JSInterface_Camera.cpp: In function 'JSBool JSI_Camera::construct(JSContext*, JSObject*, uintN, jsval*, jsval*)':
../../../source/graphics/scripting/JSInterface_Camera.cpp:280: warning: comparison of unsigned expression >= 0 is always true
JSInterface_LightEnv.cpp
AlphaMapCalculator.cpp
FixedFunctionModelRenderer.cpp
HWLightingModelRenderer.cpp
InstancingModelRenderer.cpp
ModelRenderer.cpp
PatchRData.cpp
PlayerRenderer.cpp
Renderer.cpp
RenderModifiers.cpp
RenderPathVertexShader.cpp
Scene.cpp
ShadowMap.cpp
SkyManager.cpp
TerrainOverlay.cpp
TerrainRenderer.cpp
TransparencyRenderer.cpp
VertexArray.cpp
VertexBuffer.cpp
VertexBufferManager.cpp
WaterManager.cpp
Linking graphics

Any idea ?

Edited by arn34
Link to comment
Share on other sites

About -fstack-protector-all: Hmm, I tested with GCC 4.1 but not with 4.0, and it seems like it's not supported in 4.0. I think it's a worthwhile flag to have (it found one stack corruption bug recently), so I guess we either need to update premake.lua to detect whether you're using GCC >= 4.1 and enable the flag, or else just state that we require GCC >= 4.1.

About "enet/enet.h: No such file or directory": You need to install the ENet library. (This might be relevant). Edit: Oops, just saw you said you had it installed already. In that case, it's still not being found by the compiler, so you need to do something but I have no idea what :) (I'm not aware of our code / build system having changed recently in a way that would affect that...)

Link to comment
Share on other sites

What I don't understand is that previous svn release compiled fine (except one Atlas error now that I remember). Don't know why enet is not detected anymore ...

I tried reinstalling enet, but there's still the problem. Hmmm, how does include path work in c++ ? I've seen there are relative path (include "blabla/blibli") and some magically resolved (include <enet/enet.h>).

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...