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

errors while build in ubuntu #29

Open
ranjith502 opened this issue Nov 9, 2023 · 0 comments
Open

errors while build in ubuntu #29

ranjith502 opened this issue Nov 9, 2023 · 0 comments

Comments

@ranjith502
Copy link

after cmake.. command i used make command to compile ,but iam getting below errors

[ 9%] Building CUDA object src/perception/common/onnx_models/onnx-tensorrt/CMakeFiles/nvonnxparser_plugin.dir/FancyActivation.cu.o
/home/chiplogic/adas_c++_github/open-adas/src/perception/common/onnx_models/onnx-tensorrt/plugin.hpp(40): error: incomplete type is not allowed
class Plugin : public nvinfer1::IPluginExt, public IOwnable {
^

/home/chiplogic/adas_c++_github/open-adas/src/perception/common/onnx_models/onnx-tensorrt/plugin.hpp(49): error: member function declared with "override" does not override a base class member
size_t getWorkspaceSize(int) const override { return 0; }
^

/home/chiplogic/adas_c++_github/open-adas/src/perception/common/onnx_models/onnx-tensorrt/plugin.hpp(51): error: member function declared with "override" does not override a base class member
int initialize() override { return 0;}
^

/home/chiplogic/adas_c++_github/open-adas/src/perception/common/onnx_models/onnx-tensorrt/plugin.hpp(52): error: member function declared with "override" does not override a base class member
void terminate() override {}
^

/home/chiplogic/adas_c++_github/open-adas/src/perception/common/onnx_models/onnx-tensorrt/plugin.hpp(54): error: member function declared with "override" does not override a base class member
bool supportsFormat(nvinfer1::DataType type,
^

/home/chiplogic/adas_c++_github/open-adas/src/perception/common/onnx_models/onnx-tensorrt/plugin.hpp(57): error: member function declared with "override" does not override a base class member
void configureWithFormat(const nvinfer1::Dims* inputDims, int nbInputs,
^

/home/chiplogic/adas_c++_github/open-adas/src/perception/common/onnx_models/onnx-tensorrt/plugin.hpp(82): error: member function declared with "override" does not override a base class member
virtual int getNbOutputs() const override;
^

/home/chiplogic/adas_c++_github/open-adas/src/perception/common/onnx_models/onnx-tensorrt/plugin.hpp(83): error: member function declared with "override" does not override a base class member
virtual nvinfer1::Dims getOutputDimensions(int index,
^

/home/chiplogic/adas_c++_github/open-adas/src/perception/common/onnx_models/onnx-tensorrt/plugin.hpp(86): error: member function declared with "override" does not override a base class member
virtual void serialize(void* buffer) override;
^

/home/chiplogic/adas_c++_github/open-adas/src/perception/common/onnx_models/onnx-tensorrt/plugin.hpp(87): error: member function declared with "override" does not override a base class member
virtual size_t getSerializationSize() override;
^

/home/chiplogic/adas_c++_github/open-adas/src/perception/common/onnx_models/onnx-tensorrt/plugin.hpp(89): error: member function declared with "override" does not override a base class member
virtual int initialize() override;
^

/home/chiplogic/adas_c++_github/open-adas/src/perception/common/onnx_models/onnx-tensorrt/plugin.hpp(90): error: member function declared with "override" does not override a base class member
virtual void terminate() override;
^

/home/chiplogic/adas_c++_github/open-adas/src/perception/common/onnx_models/onnx-tensorrt/plugin.hpp(92): error: member function declared with "override" does not override a base class member
virtual bool supportsFormat(nvinfer1::DataType type, nvinfer1::PluginFormat format) const override;
^

/home/chiplogic/adas_c++_github/open-adas/src/perception/common/onnx_models/onnx-tensorrt/plugin.hpp(98): error: member function declared with "override" does not override a base class member
virtual size_t getWorkspaceSize(int maxBatchSize) const override;
^

/home/chiplogic/adas_c++_github/open-adas/src/perception/common/onnx_models/onnx-tensorrt/plugin.hpp(99): error: member function declared with "override" does not override a base class member
virtual int enqueue(int batchSize,
^

/home/chiplogic/adas_c++_github/open-adas/src/perception/common/onnx_models/onnx-tensorrt/plugin.hpp(81): error: identifier "IPluginExt" is undefined
_plugin(plugin), _ext(dynamic_cast<IPluginExt*>(plugin)) {}
^

/home/chiplogic/adas_c++_github/open-adas/src/perception/common/onnx_models/onnx-tensorrt/plugin.hpp(81): error: the type in a dynamic_cast must be a pointer or reference to a complete class type, or void *
_plugin(plugin), _ext(dynamic_cast<IPluginExt*>(plugin)) {}
^

/home/chiplogic/adas_c++_github/open-adas/src/perception/common/onnx_models/onnx-tensorrt/plugin.hpp(111): error: no instance of constructor "onnx2trt::PluginAdapter::PluginAdapter" matches the argument list
argument types are: (onnx2trt::Plugin *)
: PluginAdapter(plugin), _owned_plugin(plugin), _plugin(plugin) {}
^

/home/chiplogic/adas_c++_github/open-adas/src/perception/common/onnx_models/onnx-tensorrt/plugin.hpp(116): error: class "onnx2trt::Plugin" has no member "serialize"
return _plugin->serialize(buffer);
^

/home/chiplogic/adas_c++_github/open-adas/src/perception/common/onnx_models/onnx-tensorrt/plugin.hpp(123): error: class "onnx2trt::Plugin" has no member "getSerializationSize"
_plugin->getSerializationSize());
^

/home/chiplogic/adas_c++_github/open-adas/src/perception/common/onnx_models/onnx-tensorrt/plugin.hpp(134): error: namespace "nvinfer1::plugin" has no member "INvPlugin"
nvinfer1::plugin::INvPlugin* _plugin;
^

/home/chiplogic/adas_c++_github/open-adas/src/perception/common/onnx_models/onnx-tensorrt/plugin.hpp(136): error: namespace "nvinfer1::plugin" has no member "INvPlugin"
NvPlugin(nvinfer1::plugin::INvPlugin* plugin)
^

/home/chiplogic/adas_c++_github/open-adas/src/perception/common/onnx_models/onnx-tensorrt/FancyActivation.hpp(61): error: member function declared with "override" does not override a base class member
size_t getSerializationSize() override {
^

/home/chiplogic/adas_c++_github/open-adas/src/perception/common/onnx_models/onnx-tensorrt/FancyActivation.hpp(66): error: member function declared with "override" does not override a base class member
void serialize(void *buffer) override {
^

/home/chiplogic/adas_c++_github/open-adas/src/perception/common/onnx_models/onnx-tensorrt/FancyActivation.hpp(79): error: member function declared with "override" does not override a base class member
virtual int getNbOutputs() const override { return 1; }
^

/home/chiplogic/adas_c++_github/open-adas/src/perception/common/onnx_models/onnx-tensorrt/FancyActivation.hpp(80): error: member function declared with "override" does not override a base class member
virtual nvinfer1::Dims getOutputDimensions(int index,
^

/home/chiplogic/adas_c++_github/open-adas/src/perception/common/onnx_models/onnx-tensorrt/FancyActivation.hpp(88): error: member function declared with "override" does not override a base class member
bool supportsFormat(nvinfer1::DataType type,
^

/home/chiplogic/adas_c++_github/open-adas/src/perception/common/onnx_models/onnx-tensorrt/FancyActivation.hpp(91): error: member function declared with "override" does not override a base class member
int enqueue(int batchSize,
^

28 errors detected in the compilation of "/home/chiplogic/adas_c++_github/open-adas/src/perception/common/onnx_models/onnx-tensorrt/FancyActivation.cu".
make[2]: *** [src/perception/common/onnx_models/onnx-tensorrt/CMakeFiles/nvonnxparser_plugin.dir/build.make:91: src/perception/common/onnx_models/onnx-tensorrt/CMakeFiles/nvonnxparser_plugin.dir/FancyActivation.cu.o] Error 2
make[1]: *** [CMakeFiles/Makefile2:717: src/perception/common/onnx_models/onnx-tensorrt/CMakeFiles/nvonnxparser_plugin.dir/all] Error 2
make: *** [Makefile:136: all] Error 2

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

1 participant