<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://pybullet.org/Bullet/phpBB3/app.php/feed/topic/9732" />

	<title>Real-Time Physics Simulation Forum</title>
	
	<link href="https://pybullet.org/Bullet/phpBB3/index.php" />
	<updated>2014-02-03T16:41:39+00:00</updated>

	<author><name><![CDATA[Real-Time Physics Simulation Forum]]></name></author>
	<id>https://pybullet.org/Bullet/phpBB3/app.php/feed/topic/9732</id>

		<entry>
		<author><name><![CDATA[rob_marc2003]]></name></author>
		<updated>2014-02-03T16:41:39+00:00</updated>

		<published>2014-02-03T16:41:39+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=32820#p32820</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=32820#p32820"/>
		<title type="html"><![CDATA[Compiling HelloWorld separately with MinGW -&gt; Crash]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=32820#p32820"><![CDATA[
Dear BP community,<br><br>I ran into some strange problem recently while trying to get BulletPhyisics working with MinGW.<br><br>Compiling the whole Bullet Library from scratch works with MinGW 64bit and cmake. I've replaced glut with freeglut though. Compiling, linking etc. works. The demos just work fine if I include some additional dynamic linking libraries (libgcc_s_sjlj-1.dll, libstdc++-6.dll) and freeglut.dll of course.<br><br>Now what I am trying to do is the following: just want to compile the HelloWorld.cpp with my own makefile. Compiling, linking etc. works.<br><br>Here is my makefile:<br><div class="codebox"><p>Code: </p><pre><code>include_directories("c:/bullet-2.82-r2704test/src/")link_directories ("h:/test/test/")set(SRC  ./HelloWorld.cpp)add_executable(Grc ${SRC} bullet.rc)target_link_libraries(GrcBulletDynamicsBulletCollisionLinearMath)</code></pre></div>Again, I include the dlls and I get a crash: <br>AppHelloWorld.exe has stopped working (I just renamed it to Grc.exe)<br>A problem caused the program to stop working correctly. Please close the program.<br><br>Where it brakes:<div class="codebox"><p>Code: </p><pre><code>btDiscreteDynamicsWorld* dynamicsWorld = new btDiscreteDynamicsWorld(dispatcher,overlappingPairCache,solver,collisionConfiguration);</code></pre></div>Any thoughts why is this happening?<br><br>Rob<dl class="file"><dt class="attach-image"><img src="https://pybullet.org/Bullet/phpBB3/download/file.php?id=1186" class="postimage" alt="cmake-gui setup and successful build" onclick="viewableArea(this);" /></dt></dl><br /><dl class="file"><dt class="attach-image"><img src="https://pybullet.org/Bullet/phpBB3/download/file.php?id=1185" class="postimage" alt="HelloWorld error" onclick="viewableArea(this);" /></dt></dl><p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=10541">rob_marc2003</a> — Mon Feb 03, 2014 4:41 pm</p><hr />
]]></content>
	</entry>
	</feed>
