-
Notifications
You must be signed in to change notification settings - Fork 693
Open
Description
The following compilation issue occurs:
[ 57%] Building CXX object CMakeFiles/torch2trt_plugins_test.dir/plugins/src/tests.cpp.o
/home/..../dev/torch2trt/plugins/src/tests.cpp:2:10: fatal error: catch2/catch_all.hpp: No such file or directory
2 | #include <catch2/catch_all.hpp>
| ^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
gmake[2]: *** [CMakeFiles/torch2trt_plugins_test.dir/build.make:76: CMakeFiles/torch2trt_plugins_test.dir/plugins/src/tests.cpp.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:867: CMakeFiles/torch2trt_plugins_test.dir/all] Error 2
gmake: *** [Makefile:166: all] Error 2
The problem seems to be that the catch2 version installed on Ubuntu 22.04 is 2.13.8-1
whereas trt2pose expects version 3 instead. However, no version check is performed.
Easiest way to fix the issue is by disabling the tests. The only way to disable running the tests is editing torch2trt/CMakeLists.txt
and commenting out the tests by, e.g. commenting out the following line:
...
# BUILD TESTS
find_package(Catch2 QUIET)
...
Metadata
Metadata
Assignees
Labels
No labels