Need help compiling single precision bullet on windowsphone8

somboon
Posts: 4
Joined: Thu May 30, 2013 3:43 am

Need help compiling single precision bullet on windowsphone8

Post by somboon »

I tried to compile bullet on windows phone 8 but failed

The compiler report

Code: Select all

Error	2	error C2719: '_B': formal parameter with __declspec(align('16')) won't be aligned	C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\WPSDK\WP80\include\xmmintrin.h	186	1	bullet
Error	4	error C2719: '_B': formal parameter with __declspec(align('16')) won't be aligned	C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\WPSDK\WP80\include\xmmintrin.h	187	1	bullet
Error	6	error C2719: '_B': formal parameter with __declspec(align('16')) won't be aligned	C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\WPSDK\WP80\include\xmmintrin.h	188	1	bullet
Error	8	error C2719: '_B': formal parameter with __declspec(align('16')) won't be aligned	C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\WPSDK\WP80\include\xmmintrin.h	189	1	bullet
Error	10	error C2719: '_B': formal parameter with __declspec(align('16')) won't be aligned	C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\WPSDK\WP80\include\xmmintrin.h	190	1	bullet
The only way to fix this is to force bullet to compile in double precision mode.

But it look like the compiled lib are not compatible with my mesh data.

My game that already using bullet and work on IOS ANDROID and BB10 are having error in btTriangleMesh::addTriangle method
(all my mesh data are in floating point).

are there anyway to compile single precision bullet on windows phone 8 (visual studio 2012)?

Thank in advanced
somboon
Posts: 4
Joined: Thu May 30, 2013 3:43 am

Re: Need help compiling single precision bullet on windowsph

Post by somboon »

*** Update ***

Now everything is working fine.
I have change the code to use btTriangleIndexVertexArray and adding the mesh using method addIndexedMesh.

But if someone know how to compile bullet in single precision mode on windows phone 8, please tell me.
Radik
Posts: 1
Joined: Mon Jan 27, 2014 9:31 am

Re: Need help compiling single precision bullet on windowsph

Post by Radik »

Hello,

I have the same problem.
Could you please describe how did you force bullet to compile in double precision mode ?
I played around with "Floating Point Model" settings, but the same error appears each time.

Thanks.

best regards,
Radik