[ODE] ODE on MSVC8

Graham Fyffe gfyffe at gmail.com
Wed Dec 28 16:15:05 MST 2005


ODE builds nicely in MSVC8.  I did need to make the following change
to get it to stop whining:


--- Z:\INSTALL\SWAYdriverDEV\ode-0.5\ode\src bk
original\collision_quadtreespace.cpp	Fri Nov 14 22:09:26 2003 UTC
+++ Z:\INSTALL\SWAYdriverDEV\ode-0.5\ode\src\collision_quadtreespace.cpp	Wed
Dec 28 19:17:55 2005 UTC
@@ -351,7 +351,7 @@

 	int BlockCount = 0;
 	for (int i = 0; i <= Depth; i++){
-		BlockCount += (int)pow(SPLITS, i);
+		BlockCount += (int)pow((dReal)SPLITS, i);
 	}

 	Blocks = (Block*)dAlloc(BlockCount * sizeof(Block));
@@ -384,7 +384,7 @@

 	int BlockCount = 0;
 	for (int i = 0; i < Depth; i++){
-		BlockCount += (int)pow(SPLITS, i);
+		BlockCount += (int)pow((dReal)SPLITS, i);
 	}

 	dFree(Blocks, BlockCount * sizeof(Block));

So you could download the source, and rebuild it.

- Graham



On 12/24/05, Anders Olofsson <anders.olofsson at biologigrand.ac> wrote:
> I downloaded the prebuilt library
> (ode-bin-0.5-msvc-SINGLE-release-trimesh.zip) and having problems with
> trimeshes on MSVC8. No trimesh<->sphere collisions are detected!,
> plane<->sphere and sphere<->sphere works fine though. My project worked
> fine on MSVC7 (using the same prebuilt ODE). Autodisable seems strange too,
> after a sphere has come to rest and I put it up in "midair", gravity
> doesn't pull it down (still disabled).
>
> I'm probably doing something wrong, not sure what though. Going to try
> msvc7 again later.
>
> Merry christmas and that stuff everyone!
>
> _______________________________________________
> ODE mailing list
> ODE at q12.org
> http://q12.org/mailman/listinfo/ode
>



More information about the ODE mailing list