<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Maratis forum - CMake build system]]></title>
	<link rel="self" href="http://forum.maratis3d.com/extern.php?action=feed&amp;tid=927&amp;type=atom"/>
	<updated>2014-04-09T13:25:40Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.maratis3d.com/viewtopic.php?id=927</id>
		<entry>
			<title type="html"><![CDATA[Re: CMake build system]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=6695#p6695"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[anael]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2</uri>
			</author>
			<updated>2014-04-09T13:25:40Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=6695#p6695</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: CMake build system]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=6694#p6694"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[anael]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2</uri>
			</author>
			<updated>2014-04-09T10:27:25Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=6694#p6694</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: CMake build system]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=6620#p6620"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[anael]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2</uri>
			</author>
			<updated>2014-03-24T17:12:12Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=6620#p6620</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: CMake build system]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=6436#p6436"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[anael]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2</uri>
			</author>
			<updated>2014-02-11T19:51:41Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=6436#p6436</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: CMake build system]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=6433#p6433"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Dahnielson]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2744</uri>
			</author>
			<updated>2014-02-11T12:09:08Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=6433#p6433</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: CMake build system]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=6432#p6432"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Dahnielson]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2744</uri>
			</author>
			<updated>2014-02-11T11:54:06Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=6432#p6432</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: CMake build system]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=6409#p6409"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[anael]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2</uri>
			</author>
			<updated>2014-02-10T16:13:39Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=6409#p6409</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: CMake build system]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=6404#p6404"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Dahnielson]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2744</uri>
			</author>
			<updated>2014-02-10T15:22:59Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=6404#p6404</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: CMake build system]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=6403#p6403"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Dahnielson]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2744</uri>
			</author>
			<updated>2014-02-10T15:18:47Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=6403#p6403</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: CMake build system]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=6394#p6394"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Tutorial Doctor]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2493</uri>
			</author>
			<updated>2014-02-10T05:47:40Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=6394#p6394</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: CMake build system]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=6375#p6375"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[anael]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2</uri>
			</author>
			<updated>2014-02-09T12:48:02Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=6375#p6375</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: CMake build system]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=6374#p6374"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Dahnielson]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2744</uri>
			</author>
			<updated>2014-02-09T11:25:34Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=6374#p6374</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: CMake build system]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=6363#p6363"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[255]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2540</uri>
			</author>
			<updated>2014-02-08T20:10:49Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=6363#p6363</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: CMake build system]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=6356#p6356"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[anael]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2</uri>
			</author>
			<updated>2014-02-06T19:20:32Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=6356#p6356</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: CMake build system]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=6355#p6355"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Dahnielson]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2744</uri>
			</author>
			<updated>2014-02-06T18:04:11Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=6355#p6355</id>
		</entry>
</feed>
