Compiling Bullet 2.8.1 with VS 2013

graffy76
Posts: 1
Joined: Tue Dec 03, 2013 12:50 pm

Compiling Bullet 2.8.1 with VS 2013

Post by graffy76 »

Ok,

I imagine this is an easy solution, but I can't seem to figure it out. I'm building 2.8.1 under VS2013 Pro and it won't build MiniCL because it sees the static float fMax / fMin as a redefinition of what's in math.h. (Error = redefinition; different linkage). Any thoughts?

Also, had these errors with HACD:

Code: Select all

3>e:\sheridan\builds\bullet\bullet-2.81-rev2613\bullet-2.81-rev2613\src\bulletmultithreaded\gpusoftbodysolvers\opencl\minicl\../OpenCLC10/UpdateNormals.cl(102): warning C4018: '<' : signed/unsigned mismatch
2>E:\sheridan\builds\bullet\bullet-2.81-rev2613\bullet-2.81-rev2613\Extras\HACD\hacdICHull.cpp(930): error C2039: 'max' : is not a member of 'std'
2>E:\sheridan\builds\bullet\bullet-2.81-rev2613\bullet-2.81-rev2613\Extras\HACD\hacdICHull.cpp(930): error C2065: 'max' : undeclared identifier
2>E:\sheridan\builds\bullet\bullet-2.81-rev2613\bullet-2.81-rev2613\Extras\HACD\hacdICHull.cpp(930): error C2062: type 'double' unexpected
Thanks...
User avatar
Erwin Coumans
Site Admin
Posts: 4221
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA

Re: Compiling Bullet 2.8.1 with VS 2013

Post by Erwin Coumans »

You should be able to remove the MiniCL project without issue. The min/max issue in HACD should be fixed (rename min/max in HACD).

If you fix the HACD issue, please consider filing a patch in the Bullet issue tracker at http://bullet.googlecode.com

Thanks!
Erwin
tiff2766
Posts: 1
Joined: Wed Dec 04, 2013 5:09 am

Re: Compiling Bullet 2.8.1 with VS 2013

Post by tiff2766 »

std::min, max moved to algorithm (header file) on vs2013

just include algorithm

Code: Select all

// hacdICHull.cpp
#include <algorithm>