Jump to content

seb

Community Newbie
  • Posts

    2
  • Joined

  • Last visited

seb's Achievements

Tiro

Tiro (1/14)

0

Reputation

  1. Thanks espes, Ykkrosh As you say Ykkrosh, system-wide libraries are a nicer option if available. I'm not quite sure if the behaviour of the build system is quite right in this particular case. If it identifies the OS as Linux, and can't find an installed libdevil it should either fail early (hopefully the link errors would be obvious enough :-) ), or if it does decide to use the bundled version then this should work successfully - at the moment AtlasUI won't find the devil headers. I think a change is still required: either to prevent bundled libraries from being used on non-windows systems or to make sure they will work if selected. Though the fact that DevIL has been slightly branched does complicate matters a bit.
  2. Hello I thought I'd check out the game after seeing it on stumble upon :-) it looks promising so far I ran in to just a few problems building on Linux. First I hit the precompiled header/annonymous namespace GCC bug when building woth GCC 4.1.2 (I didn't notice the warning, and option to disable PCH, in the build wiki till later). Building with GCC 4.3.2 got around this but I then ran in to some compile errors in the bundled DevIL library headers. First of all AtlasUI could not find the DevIL headers. I fixed this by hacking the premake script Index: build/premake/premake.lua =================================================================== --- build/premake/premake.lua (revision 7024) +++ build/premake/premake.lua (working copy) @@ -746,7 +746,8 @@ { -- include "..", "CustomControls", - "Misc" + "Misc", + "../../../../libraries/devil/include" },{ -- extern_libs "boost", "devil", After this I hit a compile error in the bundled DevIL headers ColourTesterImageCtrl.cpp In file included from ../../../source/tools/atlas/AtlasUI/ColourTester/ColourTesterImageCtrl.cpp:34: ../../../source/tools/atlas/AtlasUI/../../../../libraries/devil/include/IL/il.h:491: error: ‘<anonymous>’ has incomplete type ../../../source/tools/atlas/AtlasUI/../../../../libraries/devil/include/IL/il.h:491: error: invalid use of ‘ILvoid’ This has been reported previously and fixed upstream. However until the upstream fix is bought in the following substitution should do the trick sed 's|(ILvoid)|()|g' -i libraries/devil/include/IL/il{,u}.h Subsequently I installed a newer DevIL (version 1.7.7) system wide - I see that the build system will choose the headers from this (and I presume link against the system wide library?) in preference to the bundled ones and doing this gets around having to hack the premake file and headers. Having sorted all that out I got a successful build! I couldn't see an option to raise a trac ticket for the premake patch but feel free to add it in if it's an appropriate fix. Cheers Seb.
×
×
  • Create New...