<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Maratis forum - CMake build system]]></title>
		<link>http://forum.maratis3d.com/viewtopic.php?id=927</link>
		<description><![CDATA[The most recent posts in CMake build system.]]></description>
		<lastBuildDate>Wed, 09 Apr 2014 13:25:40 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: CMake build system]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=6695#p6695</link>
			<description><![CDATA[<p>ok it works by adding &quot;$ORIGIN/&quot; to CMAKE_INSTALL_RPATH : <br /></p><div class="codebox"><pre><code>SET(CMAKE_INSTALL_RPATH &quot;@loader_path/.;$ORIGIN/&quot;)&quot;</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (anael)]]></author>
			<pubDate>Wed, 09 Apr 2014 13:25:40 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=6695#p6695</guid>
		</item>
		<item>
			<title><![CDATA[Re: CMake build system]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=6694#p6694</link>
			<description><![CDATA[<p>Hi,</p><p>I managed to build your version on linux,<br />the file &quot;config_types.h&quot; was missing in libogg, but it was easy to correct manually.</p><p>But after calling make install the application is not finding libMCore.so, there is probably a problem with the rpaths.</p>]]></description>
			<author><![CDATA[dummy@example.com (anael)]]></author>
			<pubDate>Wed, 09 Apr 2014 10:27:25 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=6694#p6694</guid>
		</item>
		<item>
			<title><![CDATA[Re: CMake build system]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=6620#p6620</link>
			<description><![CDATA[<p>Hi,</p><p>I fixed some compilation errors related to CLANG and OSX Maverick : <a href="https://code.google.com/p/maratis/source/detail?r=223">https://code.google.com/p/maratis/source/detail?r=223</a><br />for the current Maratis svn version and for your cmake version.</p><p>Now with cmake/xcode, when compiling I just have some errors with DevIL,<br />first I found that the header search paths where apparently missing, but sill something is wrong.</p>]]></description>
			<author><![CDATA[dummy@example.com (anael)]]></author>
			<pubDate>Mon, 24 Mar 2014 17:12:12 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=6620#p6620</guid>
		</item>
		<item>
			<title><![CDATA[Re: CMake build system]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=6436#p6436</link>
			<description><![CDATA[<p>Actually, I checked the xcode again and the flag is there, so it&#039;s not that.</p><p>I checked the settings and tried different fixes but I don&#039;t understand what is the problem,<br />it might be an issue with the Clang compiler or with c++11 standard, but if I switch to gcc there is some different errors,<br />or it&#039;s a dependency problem.</p><p>Assimp code is not very attractive, specially to debug.</p><p>I will check deeper, but I need to go to Paris for some work, till Saturday,<br />so I&#039;ll come back to you later when I&#039;m back home.</p>]]></description>
			<author><![CDATA[dummy@example.com (anael)]]></author>
			<pubDate>Tue, 11 Feb 2014 19:51:41 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=6436#p6436</guid>
		</item>
		<item>
			<title><![CDATA[Re: CMake build system]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=6433#p6433</link>
			<description><![CDATA[<div class="quotebox"><cite>anael wrote:</cite><blockquote><p>I should look again to be sure, but I didn&#039;t find the flags &quot;ASSIMP_BUILD_BOOST_WORKAROUND ASSIMP_BUILD_NO_OWN_ZLIB&quot; anywhere in the xcode project, or I missed it or it didn&#039;t get generated ?</p></blockquote></div><p>Have you tried create a new build directory to run cmake completely fresh in? Yes, I know it&#039;s a solution similar to &quot;Have you tried to turn your computer on and off?&quot; <img src="http://forum.maratis3d.com/img/smilies/wink.png" width="15" height="15" alt="wink" /></p><p>If that doesn&#039;t work, can you try replacing<br /></p><div class="codebox"><pre><code>ADD_DEFINITIONS(
  -DASSIMP_BUILD_BOOST_WORKAROUND
  -DASSIMP_BUILD_NO_OWN_ZLIB
)</code></pre></div><p>with<br /></p><div class="codebox"><pre><code>SET(CMAKE_C_FLAGS &quot;${CMAKE_C_FLAGS} -DASSIMP_BUILD_BOOST_WORKAROUND -DASSIMP_BUILD_NO_OWN_ZLIB&quot;)
SET(CMAKE_CXX_FLAGS &quot;${CMAKE_CXX_FLAGS} -DASSIMP_BUILD_BOOST_WORKAROUND -DASSIMP_BUILD_NO_OWN_ZLIB&quot;)</code></pre></div><p>and see if the flags are picked up?</p>]]></description>
			<author><![CDATA[dummy@example.com (Dahnielson)]]></author>
			<pubDate>Tue, 11 Feb 2014 12:09:08 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=6433#p6433</guid>
		</item>
		<item>
			<title><![CDATA[Re: CMake build system]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=6432#p6432</link>
			<description><![CDATA[<p>Btw, I realized that I tried to include the CMake toolchain files the wrong way (when I played around with an Android build). Updated the instructions for iOS:</p><div class="quotebox"><blockquote><p>iOS<br />---</p><p>To generate an Xcode project for building Maratis for iOS, peform the following <br />steps to create a build directory outside of the source tree:</p><p>&nbsp; mkdir Build<br />&nbsp; cd Build<br />&nbsp; cmake -G XCode -DCMAKE_TOOLCHAIN_FILE=../Maratis/CMake/Toolchains/iOS.cmake \<br />&nbsp; &nbsp; &nbsp;../Maratis</p><p>Assuming the Maratis source directory resides in the same top directory. The <br />build require that the Xcode generator is used or it will protest with a fatal <br />error and quit</p></blockquote></div>]]></description>
			<author><![CDATA[dummy@example.com (Dahnielson)]]></author>
			<pubDate>Tue, 11 Feb 2014 11:54:06 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=6432#p6432</guid>
		</item>
		<item>
			<title><![CDATA[Re: CMake build system]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=6409#p6409</link>
			<description><![CDATA[<p>Hi !</p><p>I should look again to be sure, but I didn&#039;t find the flags &quot;ASSIMP_BUILD_BOOST_WORKAROUND ASSIMP_BUILD_NO_OWN_ZLIB&quot; anywhere in the xcode project, or I missed it or it didn&#039;t get generated ?</p>]]></description>
			<author><![CDATA[dummy@example.com (anael)]]></author>
			<pubDate>Mon, 10 Feb 2014 16:13:39 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=6409#p6409</guid>
		</item>
		<item>
			<title><![CDATA[Re: CMake build system]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=6404#p6404</link>
			<description><![CDATA[<div class="quotebox"><cite>Tutorial Doctor wrote:</cite><blockquote><p>I just went to the wiki just now, you changed that Dahnielson? If so, it looks nice! </p><p>I think all the pages need a bit of reformatting. I haven&#039;t added anything in a while, trying to get stuff to work first. </p><p>Good to have you here also.</p></blockquote></div><p>Yes, I reorganized and styled it a bit to make it clearer. I started to add some templates so that common stuff can be styled much easier at one place and making writing good looking wiki pages much simpler.</p>]]></description>
			<author><![CDATA[dummy@example.com (Dahnielson)]]></author>
			<pubDate>Mon, 10 Feb 2014 15:22:59 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=6404#p6404</guid>
		</item>
		<item>
			<title><![CDATA[Re: CMake build system]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=6403#p6403</link>
			<description><![CDATA[<div class="quotebox"><cite>anael wrote:</cite><blockquote><p>The Xcode for mac is generated.<br />But there is some error when compiling :<br /></p><div class="codebox"><pre><code>STEPFile.h &quot;STEPFile.h:198:64: Use &#039;template&#039; keyword to treat &#039;To&#039; as a dependent template name&quot;</code></pre></div></blockquote></div><p>That is weird. Can you post the verbose compile console output (gcc -I./ -L./ STEPFileReader.cpp -o STEPFileReader.o bla bla) that SCons and CMake use to compile STEPFileReader.cpp so we can compare them? It would make it easier to fix the error if I could understand what CMake do different from SCons.</p><div class="quotebox"><cite>anael wrote:</cite><blockquote><p>I don&#039;t have errors with Assimp when building with Scons, but maybe we don&#039;t use the same version, did you update the Assimp lib ?</p><p>Maybe missing the flags &quot;ASSIMP_BUILD_BOOST_WORKAROUND ASSIMP_BUILD_NO_OWN_ZLIB&quot; ?</p></blockquote></div><p>The code is identical to SVN revision 220, I haven&#039;t updated anything. The flags ASSIMP_BUILD_BOOST_WORKAROUND and ASSIMP_BUILD_NO_OWN_ZLIB is being defined in <a href="https://github.com/dahnielson/Maratis/blob/ios/3rdparty/assimp/CMakeLists.txt#L11">3rdparty/assimp/CMakeLists.txt</a>.</p><div class="quotebox"><cite>anael wrote:</cite><blockquote><p>Additionally (but not related to the previous error), I didn&#039;t see the flag :<br />&quot;M_PACKAGE_WRITABLE&quot; for maratisEditor (not needed for the player)</p></blockquote></div><p>Yup. That was an ommision by me. It is fixed now.</p><div class="quotebox"><cite>anael wrote:</cite><blockquote><p>I&#039;m also not sure the runpath search path is defined (depending on the dylib installation path) but should be &quot;@rpath&quot;<br />or &quot;@executable_path/../Frameworks @loader_path/../Frameworks&quot;</p></blockquote></div><p>I&#039;ve gone through and tried to fix all rpaths. Don&#039;t know if I did them right.</p><div class="quotebox"><cite>anael wrote:</cite><blockquote><p>With the ios option it stops before generating the xcode project :<br /></p><div class="codebox"><pre><code>CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
OPENGL_LIBRARY
    linked by target &quot;MaratisApp&quot; in directory /Users/anaelseghezzi/Desktop/Maratis-ios/M/Additional/iOS</code></pre></div></blockquote></div><p>Ok, that is the build system not finding OpenGLES, should probably add a separate OPENGLES_LIBRARY variable instead of reusing the OpenGL one so that the error become more obvious. I have now added better checks.</p><p>It&#039;s a bit frustrating for me not to have access to a Mac so I can catch all these stupid mistakes myself... <img src="http://forum.maratis3d.com/img/smilies/wink.png" width="15" height="15" alt="wink" /></p>]]></description>
			<author><![CDATA[dummy@example.com (Dahnielson)]]></author>
			<pubDate>Mon, 10 Feb 2014 15:18:47 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=6403#p6403</guid>
		</item>
		<item>
			<title><![CDATA[Re: CMake build system]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=6394#p6394</link>
			<description><![CDATA[<p>I just went to the wiki just now, you changed that Dahnielson? If so, it looks nice! </p><p>I think all the pages need a bit of reformatting. I haven&#039;t added anything in a while, trying to get stuff to work first. </p><p>Good to have you here also.</p>]]></description>
			<author><![CDATA[dummy@example.com (Tutorial Doctor)]]></author>
			<pubDate>Mon, 10 Feb 2014 05:47:40 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=6394#p6394</guid>
		</item>
		<item>
			<title><![CDATA[Re: CMake build system]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=6375#p6375</link>
			<description><![CDATA[<p>The Xcode for mac is generated.<br />But there is some error when compiling :<br /></p><div class="codebox"><pre><code>STEPFile.h &quot;STEPFile.h:198:64: Use &#039;template&#039; keyword to treat &#039;To&#039; as a dependent template name&quot;</code></pre></div><p>I don&#039;t have errors with Assimp when building with Scons, but maybe we don&#039;t use the same version, did you update the Assimp lib ?</p><p>Maybe missing the flags &quot;ASSIMP_BUILD_BOOST_WORKAROUND ASSIMP_BUILD_NO_OWN_ZLIB&quot; ?</p><p>Additionally (but not related to the previous error), I didn&#039;t see the flag :<br />&quot;M_PACKAGE_WRITABLE&quot; for maratisEditor (not needed for the player)</p><p>I&#039;m also not sure the runpath search path is defined (depending on the dylib installation path) but should be &quot;@rpath&quot;<br />or &quot;@executable_path/../Frameworks @loader_path/../Frameworks&quot;</p><br /><p>With the ios option it stops before generating the xcode project :<br /></p><div class="codebox"><pre><code>CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
OPENGL_LIBRARY
    linked by target &quot;MaratisApp&quot; in directory /Users/anaelseghezzi/Desktop/Maratis-ios/M/Additional/iOS</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (anael)]]></author>
			<pubDate>Sun, 09 Feb 2014 12:48:02 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=6375#p6375</guid>
		</item>
		<item>
			<title><![CDATA[Re: CMake build system]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=6374#p6374</link>
			<description><![CDATA[<div class="quotebox"><cite>Dahnielson wrote:</cite><blockquote><div class="quotebox"><cite>Dahnielson wrote:</cite><blockquote><p>Stupid mistake of me, will fix it. Think I was a bit tired when I tried to dechiper the project.pbxproj file.</p></blockquote></div><p>Think I&#039;ve pushed a fix to github. Hopefully. <img src="http://forum.maratis3d.com/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>Try again.</p></blockquote></div><p>Did my fix take you any further?</p><p>On another topic: I&#039;m thinking of trying to support CMakes companion <a href="http://www.cmake.org/cmake/help/v2.8.12/cpack.html">CPack</a> in the build system to generate <a href="http://www.cmake.org/Wiki/CMake:CPackPackageGenerators">RPM, deb and gzip distributions of both binaries and source code for Linux, NSIS files for Microsoft Windows and Mac OS X packages</a>.</p>]]></description>
			<author><![CDATA[dummy@example.com (Dahnielson)]]></author>
			<pubDate>Sun, 09 Feb 2014 11:25:34 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=6374#p6374</guid>
		</item>
		<item>
			<title><![CDATA[Re: CMake build system]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=6363#p6363</link>
			<description><![CDATA[<p>I used Allegro too ehehe nice piece of software.<br />But Game Maker is what I used more for 2D, despite all its disadvantages.</p>]]></description>
			<author><![CDATA[dummy@example.com (255)]]></author>
			<pubDate>Sat, 08 Feb 2014 20:10:49 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=6363#p6363</guid>
		</item>
		<item>
			<title><![CDATA[Re: CMake build system]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=6356#p6356</link>
			<description><![CDATA[<p>Thank you, I&#039;ll try again.</p><p>ps : your signature made me smile, I myself followed a very similar path :<br />Amstrad CPC BASIC, C/Allegro/DJGPP and C++<br />(it was just interlaced with learning drawing and 3d modeling/animation)</p><p>The first version of the engine that evolved into Maratis was using Allegro and it&#039;s software rendering <img src="http://forum.maratis3d.com/img/smilies/smile.png" width="15" height="15" alt="smile" /><br />I looved Allegro...</p>]]></description>
			<author><![CDATA[dummy@example.com (anael)]]></author>
			<pubDate>Thu, 06 Feb 2014 19:20:32 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=6356#p6356</guid>
		</item>
		<item>
			<title><![CDATA[Re: CMake build system]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=6355#p6355</link>
			<description><![CDATA[<div class="quotebox"><cite>Dahnielson wrote:</cite><blockquote><p>Stupid mistake of me, will fix it. Think I was a bit tired when I tried to dechiper the project.pbxproj file.</p></blockquote></div><p>Think I&#039;ve pushed a fix to github. Hopefully. <img src="http://forum.maratis3d.com/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>Try again.</p>]]></description>
			<author><![CDATA[dummy@example.com (Dahnielson)]]></author>
			<pubDate>Thu, 06 Feb 2014 18:04:11 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=6355#p6355</guid>
		</item>
	</channel>
</rss>
