grimoire / amirstan_plugin

Useful tensorrt plugin. For pytorch and mmdetection model conversion.
MIT License
155 stars 38 forks source link

Error meshGridPlugin.h and nvdsinfer_custom_impl.h: No such file or directory #32

Closed asrafulashiq closed 2 years ago

asrafulashiq commented 2 years ago

Hi, I faced the following error during compilation:

[ 98%] Building CXX object src/plugin/CMakeFiles/amirstan_plugin.dir/NvDsInferParseMmdet.cpp.o
/home/aislam/repo/amirstan_plugin/src/plugin/NvDsInferParseMmdet.cpp:4:10: fatal error: nvdsinfer_custom_impl.h: No such file or directory
    4 | #include "nvdsinfer_custom_impl.h"
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [src/plugin/CMakeFiles/amirstan_plugin.dir/build.make:76: src/plugin/CMakeFiles/amirstan_plugin.dir/NvDsInferParseMmdet.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/home/aislam/repo/amirstan_plugin/src/plugin/InferPlugin.cpp:12:10: fatal error: meshGridPlugin/meshGridPlugin.h: No such file or directory
   12 | #include "meshGridPlugin/meshGridPlugin.h"
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [src/plugin/CMakeFiles/amirstan_plugin.dir/build.make:63: src/plugin/CMakeFiles/amirstan_plugin.dir/InferPlugin.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:529: src/plugin/CMakeFiles/amirstan_plugin.dir/all] Error 2
make: *** [Makefile:84: all] Error 2

Can you please take a look? I am using TensorRT 8.2.4.2. Thanks.

grimoire commented 2 years ago

Oh, sorry meshGridPlugin is no longer needed and I do forget to remove the include. You can just remove that include from InferPlugin.cpp. As for nvdsinfer_custom_impl.h, that is a head from deepstream. You can build the plugins without it. Or if you do need deepstream, please set the deepstream path -DDeepStream_DIR=${path_to_deepstream}.

asrafulashiq commented 2 years ago

Thanks. It is working now.