arn34 Posted August 1, 2009 Report Share Posted August 1, 2009 (edited) 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.cppprecompiled.cppprecompiled.cppcc1plus: 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 1make: *** [network] Error 2make: *** Waiting for unfinished jobs....make[1]: *** [obj/graphics_Debug/precompiled.h.gch] Error 1make[1]: *** [obj/engine_Debug/precompiled.h.gch] Error 1make: *** [engine] Error 2make: *** [graphics] Error 2With 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.cppprecompiled.cppprecompiled.cppfsm.cppCConsole.cppIn 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 directoryCamera.cppNetClient.cppIn 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 '*' tokenIn 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 directoryIn 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 '*' tokenCinemaTrack.cppmake[1]: *** [obj/engine_Debug/CConsole.o] Error 1make: *** [engine] Error 2make: *** Waiting for unfinished jobs....NetLog.cppmake[1]: *** [obj/network_Debug/NetClient.o] Error 1make[1]: *** Waiting for unfinished jobs....ColladaManager.cppColor.cppDefaultEmitter.cppmake: *** [network] Error 2Frustum.cppGameView.cppHFTracer.cppLightEnv.cppMapReader.cppMapWriter.cppMaterial.cppMaterialManager.cppMeshManager.cppMiniPatch.cppModel.cppModelDef.cppObjectBase.cppObjectEntry.cppObjectManager.cppParticleEmitter.cppParticleEngine.cppPatch.cppSkeletonAnimDef.cppSkeletonAnimManager.cppSprite.cppTerrain.cppTerrainProperties.cppTextureEntry.cppTextureManager.cppUnit.cppUnitAnimation.cppUnitManager.cppJSInterface_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 trueJSInterface_LightEnv.cppAlphaMapCalculator.cppFixedFunctionModelRenderer.cppHWLightingModelRenderer.cppInstancingModelRenderer.cppModelRenderer.cppPatchRData.cppPlayerRenderer.cppRenderer.cppRenderModifiers.cppRenderPathVertexShader.cppScene.cppShadowMap.cppSkyManager.cppTerrainOverlay.cppTerrainRenderer.cppTransparencyRenderer.cppVertexArray.cppVertexBuffer.cppVertexBufferManager.cppWaterManager.cppLinking graphicsAny idea ? Edited August 1, 2009 by arn34 Quote Link to comment Share on other sites More sharing options...
Ykkrosh Posted August 1, 2009 Report Share Posted August 1, 2009 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...) Quote Link to comment Share on other sites More sharing options...
arn34 Posted August 1, 2009 Author Report Share Posted August 1, 2009 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>). Quote Link to comment Share on other sites More sharing options...
arn34 Posted August 1, 2009 Author Report Share Posted August 1, 2009 Well, I installed libenet from macports and it is OK. Strange, but my computer seems strange anyway ...Now I've got the 'vswprintf_s' was not declared in this scope error, see http://www.wildfiregames.com/forum/index.p...23entry200723 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.