ConvexDecomp lib and linux

rogerdv

22-07-2010 15:37:29

Im having a big trouble to link convex decomposition library under linux. I uccesfully compile it, copy libconvexdecomposition.a to /usr/lib, run ldconfig, but when linking I always get this:

/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lConvexDecomposition

I have tried in all possible forms, even passing the whole name and path, but the result is the same. Has somebody found a similar problem? Any solution?

dermont

22-07-2010 17:33:48

Im having a big trouble to link convex decomposition library under linux. I uccesfully compile it, copy libconvexdecomposition.a to /usr/lib, run ldconfig, but when linking I always get this:

/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lConvexDecomposition


What version of of bullet are you using? Are you building bullet using CMake.? AFAIK the default lib name is libConvexDecomposition.a.

For your case you copied "libconvexdecomposition.a" to /usr/lib then you should be linking against -lconvexdecomposition.

areay

23-07-2010 10:07:54

I had the same problem.

Go into you Bullet source dir and then go into /Extras/ConvexDecomposition and do a `make`. This should create libConvexDecomposition.a (notice the CamelCase). Then you can copy it to /usr/lib or whatever.

I remember I was doing something wrong where it would make the file as libconvexdecomposition.a (not CamelCase) and it was causing me weird problems.

rogerdv

23-07-2010 13:36:42

Found the problem. In my case, the names is lowercase, so, the lib isnt named ConvecDecomp, but convexdec... A detail that most references fail to clear.

dermont

24-07-2010 12:52:57

Found the problem. In my case, the names is lowercase, so, the lib isnt named ConvecDecomp, but convexdec... A detail that most references fail to clear.

The only time I've encountered the bullet lib names being lowercase is using the autotools build. You should read INSTALL for instructions on building with CMake. Don't know why there is this difference between builds.

rogerdv

24-07-2010 15:08:15

There is no INSTALL file in my copy (got it from Ogre addons svn) and neither CMake files.