<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Maratis forum - Custom game plugin on LINUX?]]></title>
	<link rel="self" href="http://forum.maratis3d.com/extern.php?action=feed&amp;tid=753&amp;type=atom"/>
	<updated>2013-08-29T21:21:16Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.maratis3d.com/viewtopic.php?id=753</id>
		<entry>
			<title type="html"><![CDATA[Re: Custom game plugin on LINUX?]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=4876#p4876"/>
			<content type="html"><![CDATA[<p>Finally got it working! Makefile did it. Thanks a lot for your help guys</p><p>Had to change LDFLAGS= -shared -Wl to LDFLAGS= -shared -Wall. makefile reported error and put &lt;tab&gt; before all @</p>]]></content>
			<author>
				<name><![CDATA[Skywriter]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2629</uri>
			</author>
			<updated>2013-08-29T21:21:16Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=4876#p4876</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Custom game plugin on LINUX?]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=4874#p4874"/>
			<content type="html"><![CDATA[<p>Using Make &amp; GCC</p><p>Create a &quot;makefile&quot; containing this code: <br /></p><div class="codebox"><pre><code>SRCS = $(wildcard *.cpp)
OBJS = $(SRCS:.cpp=.o) 
CFLAGS= -O2 -fPIC
LDFLAGS= -s -shared

#Set path to MSDK (MCore &amp; MEngine from ../trunk/dev/)
INCLUDES = -I../SDK/MCore/Includes/ -I../SDK/MEngine/Includes/

all: $(OBJS)
    @g++ $(LDFLAGS) $(OBJS) -o ../Game.so

.cpp.o:
    @echo &quot;( Compiling $^ )&quot; # debug output
    @g++ $(CFLAGS) $(INCLUDES) -c -o $@ $^</code></pre></div><p>NB: &quot;@&quot; lines are indented by a tabulation, not spaces</p><p>Instructions:<br />In your project folder (containg the .mproj file):<br />&nbsp; &nbsp; - put a copy of the SDK folder (or use a symlink)<br />&nbsp; &nbsp; - put the plugin sources+includes and the makefile into a new folder</p><p>Run the makefile using make.<br />The plugin is created in your project folder</p>]]></content>
			<author>
				<name><![CDATA[com3D]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=1488</uri>
			</author>
			<updated>2013-08-29T20:54:30Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=4874#p4874</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Custom game plugin on LINUX?]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=4867#p4867"/>
			<content type="html"><![CDATA[<p>Just thinking, maybe someone knows a proven way to compile it under Ubuntu linux using gcc without CodeBlocks. Can you post a command line to compile this project.</p>]]></content>
			<author>
				<name><![CDATA[Skywriter]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2629</uri>
			</author>
			<updated>2013-08-29T19:20:42Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=4867#p4867</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Custom game plugin on LINUX?]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=4866#p4866"/>
			<content type="html"><![CDATA[<p>Did everything just as you said. Compiled WaterGameDemo with Game.so name, im using 32 bit OS Ubuntu linux, Maratis version is 3.21 also 32 bit, libraries and includes i used are from Maratis SDK folder, i did not compiled Maratis(just downloaded), used Codeblocks for compiler, compiled in Relese mode. Code is used from tutorial, nothing added - nothing removed, dll is in the same directory as .mproj. But still the same. Maybe i&#039;m missing something...</p>]]></content>
			<author>
				<name><![CDATA[Skywriter]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2629</uri>
			</author>
			<updated>2013-08-29T17:35:42Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=4866#p4866</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Custom game plugin on LINUX?]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=4865#p4865"/>
			<content type="html"><![CDATA[<p>Try to use the codeblocks project from this example : <a href="http://www.maratis3d.org/download/WaterGameDemo.zip">http://www.maratis3d.org/download/WaterGameDemo.zip</a><br />I don&#039;t have access to linux right now to test your file.</p><p>Some infos in case :<br />- don&#039;t use maratis source code from svn, just link to the headers of MCore and MEngine present with the release of Maratis you downloaded.<br />- don&#039;t compile MCore and MEngine, just link to it.<br />- compile in release<br />- name the plugin &quot;Game.so&quot; (not libGame.so)</p>]]></content>
			<author>
				<name><![CDATA[anael]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2</uri>
			</author>
			<updated>2013-08-29T17:09:54Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=4865#p4865</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Custom game plugin on LINUX?]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=4864#p4864"/>
			<content type="html"><![CDATA[<p>Compiled in both versions debug/release, named it Game.so and tried libGame.so, but its still the same... Thanks for correcting the link com3D. I took out the dot. It works now</p>]]></content>
			<author>
				<name><![CDATA[Skywriter]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2629</uri>
			</author>
			<updated>2013-08-29T15:48:56Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=4864#p4864</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Custom game plugin on LINUX?]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=4861#p4861"/>
			<content type="html"><![CDATA[<p>did you build it in &quot;release&quot; mode ? (&quot;debug&quot; mode won&#039;t work)</p>]]></content>
			<author>
				<name><![CDATA[anael]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2</uri>
			</author>
			<updated>2013-08-29T08:21:26Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=4861#p4861</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Custom game plugin on LINUX?]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=4860#p4860"/>
			<content type="html"><![CDATA[<p>Tried renaming libGame.so to Game.so and plugin is in the project directory with the .mproj file, but still nothing. Size of plugin is 238.3kb<br />I have uploaded the project here <a href="http://skywriter.freeoda.com/SimpleGamePlugin.zip">http://skywriter.freeoda.com/SimpleGamePlugin.zip</a> If someone could check it, i would be gratelly thankfull.</p>]]></content>
			<author>
				<name><![CDATA[Skywriter]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2629</uri>
			</author>
			<updated>2013-08-29T07:40:44Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=4860#p4860</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Custom game plugin on LINUX?]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=4855#p4855"/>
			<content type="html"><![CDATA[<p>the plugin needs to be named &quot;Game.so&quot;.</p><p>Be also sure it&#039;s in your maratis project directory.</p>]]></content>
			<author>
				<name><![CDATA[anael]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2</uri>
			</author>
			<updated>2013-08-28T18:16:46Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=4855#p4855</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Custom game plugin on LINUX?]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=4849#p4849"/>
			<content type="html"><![CDATA[<p>Hi Sponk. My OS is 32 bit Ubuntu 13.04. I&#039;m new to codeblocks and c++ programming. What this flag does and how can i set it? I checked codeblocks under build options/compiler flags, but didnt find such flag</p>]]></content>
			<author>
				<name><![CDATA[Skywriter]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2629</uri>
			</author>
			<updated>2013-08-28T12:59:30Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=4849#p4849</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Custom game plugin on LINUX?]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=4846#p4846"/>
			<content type="html"><![CDATA[<p>Hey Skywriter!</p><p>What Linux kernel are you using? A 32bit or 64bit kernel?</p><p>The precompiled Maratis version from the download page is 32bit afaik so you would have to recompile Maratis for 64bit and use the 64bit SDK. You could also compile your plugin with the -m32 flag.</p><p>Sponk</p>]]></content>
			<author>
				<name><![CDATA[Sponk]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=1316</uri>
			</author>
			<updated>2013-08-28T09:15:43Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=4846#p4846</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Custom game plugin on LINUX?]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=4845#p4845"/>
			<content type="html"><![CDATA[<p>Hi everyone . I have compiled a dll of SimpleGamePlugin under linux ubuntu using codeblocks. The name&nbsp; of dll was libGame.so. I followed the tutorial of creating simple game plugin, but when i lounched the editor behavior was not visible. Actually it is not visible for any plugin(tried SimpleWaterDemo). Anyboady knows why? Is it working at linux at all?</p>]]></content>
			<author>
				<name><![CDATA[Skywriter]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2629</uri>
			</author>
			<updated>2013-08-28T08:34:57Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=4845#p4845</id>
		</entry>
</feed>
