build error in Extras/ConvexDecomposition with cmake + patch

slackydeb
Posts: 14
Joined: Sat Aug 09, 2008 7:15 pm

build error in Extras/ConvexDecomposition with cmake + patch

Post by slackydeb »

Hi.


Building Bullet svn1433 on Debian GNU/Linux testing "Lenny" x86-32bit using cmake/make/gcc I found a build error.

How to reproduce this bug.

Obtain Bullet svn1433.
Enter in Bullet root directory and type
cmake -G "Unix Makefiles"
Then type
make
You will get errors; the first will be
In file included from /home/user/bullet_root_dir/Extras/ConvexDecomposition/ConvexBuilder.h:39,
from /home/user/bullet_root_dir/Extras/ConvexDecomposition/ConvexBuilder.cpp:2:
/home/user/bullet_root_dir/Extras/ConvexDecomposition/ConvexDecomposition.h:45:45: error: LinearMath/btAlignedObjectArray.h: No such file or directory

How to solve this bug.

In Extras/ConvexDecomposition/CMakeLists.txt, modify line 2 from

Code: Select all

 ${BULLET_PHYSICS_SOURCE_DIR}/Extras/ConvexDecomposition
to

Code: Select all

 ${BULLET_PHYSICS_SOURCE_DIR}/Extras/ConvexDecomposition ${BULLET_PHYSICS_SOURCE_DIR}/src

Thanks,
Luca Favatella
User avatar
Erwin Coumans
Site Admin
Posts: 4221
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA

Re: build error in Extras/ConvexDecomposition with cmake + patch

Post by Erwin Coumans »

It has been fixed, thanks for the report,

Erwin