Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Error #13

Open
MiLort opened this issue Nov 17, 2020 · 1 comment
Open

Make Error #13

MiLort opened this issue Nov 17, 2020 · 1 comment

Comments

@MiLort
Copy link

MiLort commented Nov 17, 2020

When I run make under build folder, this error poped up.

**[ 20%] Building NVCC (Device) object CMakeFiles/myplugins.dir/myplugins_generated_hardswish.cu.o
In file included from /home/inspur/experiment/deepstream_yolov5/Yolov5-in-Deepstream-5.0/hardswish.cu:2:0:
/home/inspur/experiment/deepstream_yolov5/Yolov5-in-Deepstream-5.0/hardswish.h:6:10: fatal error: NvInfer.h: 没有那个文件或目录
#include "NvInfer.h"
^~~~~~~~~~~
compilation terminated.
CMake Error at myplugins_generated_hardswish.cu.o.Debug.cmake:219 (message):
Error generating
/home/inspur/experiment/deepstream_yolov5/Yolov5-in-Deepstream-5.0/build/CMakeFiles/myplugins.dir//./myplugins_generated_hardswish.cu.o

CMakeFiles/myplugins.dir/build.make:70: recipe for target 'CMakeFiles/myplugins.dir/myplugins_generated_hardswish.cu.o' failed
make[2]: *** [CMakeFiles/myplugins.dir/myplugins_generated_hardswish.cu.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/myplugins.dir/all' failed
make[1]: *** [CMakeFiles/myplugins.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2**

when I copy a NvInfer.h(deepstream 5.0) into this project, this error poped up. May i ask the solution of it.

**error: not a class or struct name

/home/inspur/experiment/deepstream_yolov5/Yolov5-in-Deepstream-5.0/hardswish.h(17): error: member function declared with "override" does not override a base class member

/home/inspur/experiment/deepstream_yolov5/Yolov5-in-Deepstream-5.0/hardswish.h(22): error: member function declared with "override" does not override a base class member

/home/inspur/experiment/deepstream_yolov5/Yolov5-in-Deepstream-5.0/hardswish.h(23): error: member function declared with "override" does not override a base class member

/home/inspur/experiment/deepstream_yolov5/Yolov5-in-Deepstream-5.0/hardswish.h(24): error: member function declared with "override" does not override a base class member

/home/inspur/experiment/deepstream_yolov5/Yolov5-in-Deepstream-5.0/hardswish.h(25): error: member function declared with "override" does not override a base class member

/home/inspur/experiment/deepstream_yolov5/Yolov5-in-Deepstream-5.0/hardswish.h(26): error: member function declared with "override" does not override a base class member

/home/inspur/experiment/deepstream_yolov5/Yolov5-in-Deepstream-5.0/hardswish.h(27): error: member function declared with "override" does not override a base class member

/home/inspur/experiment/deepstream_yolov5/Yolov5-in-Deepstream-5.0/hardswish.h(28): error: member function declared with "override" does not override a base class member

/home/inspur/experiment/deepstream_yolov5/Yolov5-in-Deepstream-5.0/hardswish.h(30): error: identifier "PluginTensorDesc" is undefined

/home/inspur/experiment/deepstream_yolov5/Yolov5-in-Deepstream-5.0/hardswish.h(30): error: member function declared with "override" does not override a base class member

/home/inspur/experiment/deepstream_yolov5/Yolov5-in-Deepstream-5.0/hardswish.h(34): error: member function declared with "override" does not override a base class member

/home/inspur/experiment/deepstream_yolov5/Yolov5-in-Deepstream-5.0/hardswish.h(35): error: member function declared with "override" does not override a base class member

/home/inspur/experiment/deepstream_yolov5/Yolov5-in-Deepstream-5.0/hardswish.h(36): error: member function declared with "override" does not override a base class member

/home/inspur/experiment/deepstream_yolov5/Yolov5-in-Deepstream-5.0/hardswish.h(37): error: identifier "IPluginV2IOExt" is undefined

/home/inspur/experiment/deepstream_yolov5/Yolov5-in-Deepstream-5.0/hardswish.h(37): error: member function declared with "override" does not override a base class member

/home/inspur/experiment/deepstream_yolov5/Yolov5-in-Deepstream-5.0/hardswish.h(38): error: member function declared with "override" does not override a base class member

/home/inspur/experiment/deepstream_yolov5/Yolov5-in-Deepstream-5.0/hardswish.h(39): error: member function declared with "override" does not override a base class member

/home/inspur/experiment/deepstream_yolov5/Yolov5-in-Deepstream-5.0/hardswish.h(40): error: member function declared with "override" does not override a base class member

/home/inspur/experiment/deepstream_yolov5/Yolov5-in-Deepstream-5.0/hardswish.h(41): error: member function declared with "override" does not override a base class member

/home/inspur/experiment/deepstream_yolov5/Yolov5-in-Deepstream-5.0/hardswish.h(42): error: member function declared with "override" does not override a base class member

/home/inspur/experiment/deepstream_yolov5/Yolov5-in-Deepstream-5.0/hardswish.h(43): error: member function declared with "override" does not override a base class member

/home/inspur/experiment/deepstream_yolov5/Yolov5-in-Deepstream-5.0/hardswish.h(44): error: identifier "PluginTensorDesc" is undefined

/home/inspur/experiment/deepstream_yolov5/Yolov5-in-Deepstream-5.0/hardswish.h(44): error: identifier "PluginTensorDesc" is undefined

/home/inspur/experiment/deepstream_yolov5/Yolov5-in-Deepstream-5.0/hardswish.h(44): error: member function declared with "override" does not override a base class member

/home/inspur/experiment/deepstream_yolov5/Yolov5-in-Deepstream-5.0/hardswish.h(45): error: member function declared with "override" does not override a base class member

/home/inspur/experiment/deepstream_yolov5/Yolov5-in-Deepstream-5.0/hardswish.h(31): error: name followed by "::" must be a class or namespace name

/home/inspur/experiment/deepstream_yolov5/Yolov5-in-Deepstream-5.0/hardswish.h(66): error: identifier "IPluginV2IOExt" is undefined

/home/inspur/experiment/deepstream_yolov5/Yolov5-in-Deepstream-5.0/hardswish.h(66): error: return type is not identical to nor covariant with return type "nvinfer1::IPluginV2 *" of overridden virtual function "nvinfer1::IPluginCreator::createPlugin"

/home/inspur/experiment/deepstream_yolov5/Yolov5-in-Deepstream-5.0/hardswish.h(66): error: member function declared with "override" does not override a base class member

/home/inspur/experiment/deepstream_yolov5/Yolov5-in-Deepstream-5.0/hardswish.h(67): error: identifier "IPluginV2IOExt" is undefined

/home/inspur/experiment/deepstream_yolov5/Yolov5-in-Deepstream-5.0/hardswish.h(67): error: return type is not identical to nor covariant with return type "nvinfer1::IPluginV2 *" of overridden virtual function "nvinfer1::IPluginCreator::deserializePlugin"

/home/inspur/experiment/deepstream_yolov5/Yolov5-in-Deepstream-5.0/hardswish.h(67): error: member function declared with "override" does not override a base class member

/home/inspur/experiment/deepstream_yolov5/Yolov5-in-Deepstream-5.0/NvInfer.h(5935): error: object of abstract class type "nvinfer1::HardSwishPluginCreator" is not allowed:
pure virtual function "nvinfer1::IPluginCreator::createPlugin" has no overrider
pure virtual function "nvinfer1::IPluginCreator::deserializePlugin" has no overrider
detected during instantiation of class "nvinfer1::PluginRegistrar [with T=nvinfer1::HardSwishPluginCreator]"
/home/inspur/experiment/deepstream_yolov5/Yolov5-in-Deepstream-5.0/hardswish.h(84): here

/home/inspur/experiment/deepstream_yolov5/Yolov5-in-Deepstream-5.0/hardswish.cu(76): error: identifier "PluginTensorDesc" is undefined

/home/inspur/experiment/deepstream_yolov5/Yolov5-in-Deepstream-5.0/hardswish.cu(76): error: identifier "PluginTensorDesc" is undefined

/home/inspur/experiment/deepstream_yolov5/Yolov5-in-Deepstream-5.0/hardswish.cu(105): error: identifier "IPluginV2IOExt" is undefined

/home/inspur/experiment/deepstream_yolov5/Yolov5-in-Deepstream-5.0/hardswish.cu(166): error: identifier "IPluginV2IOExt" is undefined

/home/inspur/experiment/deepstream_yolov5/Yolov5-in-Deepstream-5.0/hardswish.cu(173): error: identifier "IPluginV2IOExt" is undefined

39 errors detected in the compilation of "/tmp/tmpxft_00009369_00000000-6_hardswish.cpp1.ii".
CMake Error at myplugins_generated_hardswish.cu.o.Debug.cmake:279 (message):
Error generating file
/home/inspur/experiment/deepstream_yolov5/Yolov5-in-Deepstream-5.0/build/CMakeFiles/myplugins.dir//./myplugins_generated_hardswish.cu.o

CMakeFiles/myplugins.dir/build.make:70: recipe for target 'CMakeFiles/myplugins.dir/myplugins_generated_hardswish.cu.o' failed
make[2]: *** [CMakeFiles/myplugins.dir/myplugins_generated_hardswish.cu.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/myplugins.dir/all' failed
make[1]: *** [CMakeFiles/myplugins.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2**

Cheers
Bob

@MiLort MiLort changed the title Build Error Make Error Nov 17, 2020
@Emirismail
Copy link

@MiLort Where did you find the "NvInfer.h" file please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants