flexible-collision-library / fcl

Flexible Collision Library
https://flexible-collision-library.github.io/
Other
1.39k stars 417 forks source link

Tests fail to compile: use of undeclared identifier 'ASSERT_DEATH' #549

Closed yurivict closed 3 years ago

yurivict commented 3 years ago
/disk-samsung/freebsd-ports/math/fcl/work/fcl-0.7.0/test/narrowphase/detail/convexity_based_algorithm/test_gjk_libccd-inl_gjk_doSimplex2.cpp:289:3: error: use of undeclared identifier 'ASSERT_DEATH'
  ASSERT_DEATH(doSimplex2(&line_, &dir_),
  ^
/disk-samsung/freebsd-ports/math/fcl/work/fcl-0.7.0/test/narrowphase/detail/convexity_based_algorithm/test_gjk_libccd-inl_gjk_doSimplex2.cpp:303:3: error: use of undeclared identifier 'ASSERT_DEATH'
  ASSERT_DEATH(doSimplex2(&line_, &dir_),
  ^
/disk-samsung/freebsd-ports/math/fcl/work/fcl-0.7.0/test/narrowphase/detail/convexity_based_algorithm/test_gjk_libccd-inl_gjk_doSimplex2.cpp:317:3: error: use of undeclared identifier 'ASSERT_DEATH'
  ASSERT_DEATH(doSimplex2(&line_, &dir_),
  ^

Version: 0.7.0 clang-11 OS: FreeBSD 13

sherm1 commented 3 years ago

I think that's a GTEST version issue. Maybe FreeBSD has an old version?

jwnimmer-tri commented 3 years ago

See #443 / #396 / #358 / #354 / etc.

yurivict commented 3 years ago

The currently used googletest is googletest-1.11.0.

sherm1 commented 3 years ago

Oh, per #443 fcl has its own out-of-date copy of gtest :(. If you can get it to use the FreeBSD one instead it would be fine. I'll close this as a duplicate of #443 and others (thanks, @jwnimmer-tri). Not clear to me why we don't have this problem in other builds though.