<?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/6029" />

	<title>Real-Time Physics Simulation Forum</title>
	
	<link href="https://pybullet.org/Bullet/phpBB3/index.php" />
	<updated>2010-11-30T05:33:55+00:00</updated>

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

		<entry>
		<author><name><![CDATA[simulacrum]]></name></author>
		<updated>2010-11-30T05:33:55+00:00</updated>

		<published>2010-11-30T05:33:55+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=21141#p21141</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=21141#p21141"/>
		<title type="html"><![CDATA[Re: Disable bullet serializer]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=21141#p21141"><![CDATA[
i created a new thread for the mingw-w64 patch which also has a patch to fix compilation issues on linux.<br><br><a href="http://bulletphysics.org/Bullet/phpBB3/viewtopic.php?f=9&amp;t=6045" class="postlink">http://bulletphysics.org/Bullet/phpBB3/ ... f=9&amp;t=6045</a><p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=7425">simulacrum</a> — Tue Nov 30, 2010 5:33 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simulacrum]]></name></author>
		<updated>2010-11-30T01:30:42+00:00</updated>

		<published>2010-11-30T01:30:42+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=21137#p21137</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=21137#p21137"/>
		<title type="html"><![CDATA[Re: Disable bullet serializer]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=21137#p21137"><![CDATA[
no problem.<br>its the same as the problem mentioned here: <a href="http://bulletphysics.org/Bullet/phpBB3/viewtopic.php?f=9&amp;t=5483&amp;hilit=loses+precision" class="postlink">http://bulletphysics.org/Bullet/phpBB3/ ... +precision</a><br><br>compiling under a 64bit platform works fine but when using mingw-w64 there are 'precision errors' due to line 69 of btAlignedAllocator.cpp:<div class="codebox"><p>Code: </p><pre><code>(alignment - (unsigned long)(real + sizeof(void *))) &amp; (alignment-1);</code></pre></div>and elsewhere in the code (such as btSerializer)<br><br>the problem is that the width of 'long' is 32bits under mingw-w64 whereas most of the time its 64bits which is why it compiles fine everywhere else. Since pointers are 64bits wide casting real + sizeof(void*) can easily go over the unsinged long width in mingw-w64, hence the error.<br><br>In short its easily fixed by replacing 'unsigned long' with 'uintptr_t' under systems that provide stdint.h which windows doesnt so win64 needs ULONG_PTR instead. I've already changed it with the necessary #ifdef's getting the system values from cmake and it compiles without problem on mingw-w64, vs2008, and gcc 4.4 under linux.<br><br>i should have a patch ready sometime today for the 2.77 release. i'll checkout the latest dev version too, though i dont know if this was fixed already.<br><br>hope this helps.<br>goran<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=7425">simulacrum</a> — Tue Nov 30, 2010 1:30 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Erwin Coumans]]></name></author>
		<updated>2010-11-29T21:56:37+00:00</updated>

		<published>2010-11-29T21:56:37+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=21133#p21133</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=21133#p21133"/>
		<title type="html"><![CDATA[Re: Disable bullet serializer]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=21133#p21133"><![CDATA[
It would be good to fix your compile problems. Can you provide the errors?<br><br>Thanks,<br>Erwin<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=2">Erwin Coumans</a> — Mon Nov 29, 2010 9:56 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simulacrum]]></name></author>
		<updated>2010-11-27T02:38:36+00:00</updated>

		<published>2010-11-27T02:38:36+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=21111#p21111</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=21111#p21111"/>
		<title type="html"><![CDATA[Disable bullet serializer]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=21111#p21111"><![CDATA[
Hello,<br><br>Im using bullet with my own cmakefiles derived from the original ones but the serializer wouldn't compile on win7 64, most likely due to my own fault. Since I wont be needing the embedded serializer i decided to #ifdef serialization and their data structures out.<br>Disabling the serializer doesn't really save much. Performance is the same and the compiled library files are only marginally smaller. But if anyone else wants to disable it, whether because they dont need it or provide their own physics format, then using the patch below on the released 2.77 sources should add an option in the cmake configuration to disable the serializer.<br><br>Patch tested on 64 bit linux without demos and extras enabled.<br><br>(since a cant attach .patch or .txt files i had to zip it up)<dl class="file"><dt><span class="imageset icon_topic_attach"></span> <a class="postlink" href="https://pybullet.org/Bullet/phpBB3/download/file.php?id=593">optional-serializer.patch.zip</a></dt></dl><p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=7425">simulacrum</a> — Sat Nov 27, 2010 2:38 am</p><hr />
]]></content>
	</entry>
	</feed>
