danfis / libccd

Library for collision detection between two convex shapes
Other
478 stars 108 forks source link

Can't build latest commit on Ubuntu 12.04 #28

Closed EdsterG closed 7 years ago

EdsterG commented 7 years ago

Get the following error:

[ 22%] Built target ccd [ 29%] Built target cu [ 33%] Linking C executable bench2 cu/libcu.a(cu.c.o): In function cuTimerStop': cu.c:(.text+0x73f): undefined reference toclock_gettime' cu/libcu.a(cu.c.o): In function cuTimerStart': cu.c:(.text+0x72b): undefined reference toclock_gettime' collect2: ld returned 1 exit status

EdsterG commented 7 years ago

@jamiesnape The cmake refactor causes this error. I can compile from any commit before the cmake refactor.

jamiesnape commented 7 years ago

Before that commit the test suite was not built. As a work around, you can disable the test suite with with cmake -DBUILD_TESTING=OFF. Which version of CMake are you using and does compilation with Autotools work?