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

build error error: ‘CV_BGR2RGB’ was not declared in this scope #89

Open
stiv-yakovenko opened this issue May 17, 2020 · 1 comment

Comments

@stiv-yakovenko
Copy link

I'm following build instruction and I get this build error:

stiv@nano:~/TensorRT-Yolov3/build$ git submodule update --init --recursive
Submodule 'tensorRTWrapper' (https://github.com/lewes6369/tensorRTWrapper.git) registered for path '../tensorRTWrapper'
Cloning into '/home/stiv/TensorRT-Yolov3/tensorRTWrapper'...
Submodule path '../tensorRTWrapper': checked out '0aaab5110d0794c7c374c7f46fbde2050b459556'
stiv@nano:~/TensorRT-Yolov3/build$ cmake ..
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Found CUDA: /usr/local/cuda (found version "10.0") 
-- Found TensorRT headers at /usr/include/aarch64-linux-gnu
-- Find TensorRT libs at /usr/lib/aarch64-linux-gnu/libnvinfer.so;/usr/lib/aarch64-linux-gnu/libnvinfer_plugin.so;/usr/lib/aarch64-linux-gnu/libnvparsers.so
-- Found TENSORRT: /usr/include/aarch64-linux-gnu  
-- Configuring done
-- Generating done
-- Build files have been written to: /home/stiv/TensorRT-Yolov3/build
stiv@nano:~/TensorRT-Yolov3/build$ make    
[ 10%] Building NVCC (Device) object tensorRTWrapper/code/CMakeFiles/TrtNet.dir/src/TrtNet_generated_YoloLayer.cu.o
-- Removing /home/stiv/TensorRT-Yolov3/build/tensorRTWrapper/code/CMakeFiles/TrtNet.dir/src/./TrtNet_generated_YoloLayer.cu.o
/usr/bin/cmake -E remove /home/stiv/TensorRT-Yolov3/build/tensorRTWrapper/code/CMakeFiles/TrtNet.dir/src/./TrtNet_generated_YoloLayer.cu.o
-- Generating dependency file: /home/stiv/TensorRT-Yolov3/build/tensorRTWrapper/code/CMakeFiles/TrtNet.dir/src/TrtNet_generated_YoloLayer.cu.o.NVCC-depend
/usr/local/cuda/bin/nvcc -M -D__CUDACC__ /home/stiv/TensorRT-Yolov3/tensorRTWrapper/code/src/YoloLayer.cu -o /home/stiv/TensorRT-Yolov3/build/tensorRTWrapper/code/CMakeFiles/TrtNet.dir/src/TrtNet_generated_YoloLayer.cu.o.NVCC-depend -ccbin /usr/bin/c++ -m64 --std c++11 -Xcompiler ,\"-Wall\",\"-Ofast\",\"-Wfatal-errors\",\"-Wall\",\"-Ofast\",\"-Wfatal-errors\",\"-D_MWAITXINTRIN_H_INCLUDED\",\"-O3\",\"-DNDEBUG\" -D_FORCE_INLINES -Xcompiler -fPIC -DNVCC -I/usr/include/aarch64-linux-gnu -I/usr/local/cuda/include -I/home/stiv/TensorRT-Yolov3/tensorRTWrapper/code/include
-- Generating temporary cmake readable file: /home/stiv/TensorRT-Yolov3/build/tensorRTWrapper/code/CMakeFiles/TrtNet.dir/src/TrtNet_generated_YoloLayer.cu.o.depend.tmp
/usr/bin/cmake -D input_file:FILEPATH=/home/stiv/TensorRT-Yolov3/build/tensorRTWrapper/code/CMakeFiles/TrtNet.dir/src/TrtNet_generated_YoloLayer.cu.o.NVCC-depend -D output_file:FILEPATH=/home/stiv/TensorRT-Yolov3/build/tensorRTWrapper/code/CMakeFiles/TrtNet.dir/src/TrtNet_generated_YoloLayer.cu.o.depend.tmp -D verbose=ON -P /usr/share/cmake-3.10/Modules/FindCUDA/make2cmake.cmake
-- Copy if different /home/stiv/TensorRT-Yolov3/build/tensorRTWrapper/code/CMakeFiles/TrtNet.dir/src/TrtNet_generated_YoloLayer.cu.o.depend.tmp to /home/stiv/TensorRT-Yolov3/build/tensorRTWrapper/code/CMakeFiles/TrtNet.dir/src/TrtNet_generated_YoloLayer.cu.o.depend
/usr/bin/cmake -E copy_if_different /home/stiv/TensorRT-Yolov3/build/tensorRTWrapper/code/CMakeFiles/TrtNet.dir/src/TrtNet_generated_YoloLayer.cu.o.depend.tmp /home/stiv/TensorRT-Yolov3/build/tensorRTWrapper/code/CMakeFiles/TrtNet.dir/src/TrtNet_generated_YoloLayer.cu.o.depend
-- Removing /home/stiv/TensorRT-Yolov3/build/tensorRTWrapper/code/CMakeFiles/TrtNet.dir/src/TrtNet_generated_YoloLayer.cu.o.depend.tmp and /home/stiv/TensorRT-Yolov3/build/tensorRTWrapper/code/CMakeFiles/TrtNet.dir/src/TrtNet_generated_YoloLayer.cu.o.NVCC-depend
/usr/bin/cmake -E remove /home/stiv/TensorRT-Yolov3/build/tensorRTWrapper/code/CMakeFiles/TrtNet.dir/src/TrtNet_generated_YoloLayer.cu.o.depend.tmp /home/stiv/TensorRT-Yolov3/build/tensorRTWrapper/code/CMakeFiles/TrtNet.dir/src/TrtNet_generated_YoloLayer.cu.o.NVCC-depend
-- Generating /home/stiv/TensorRT-Yolov3/build/tensorRTWrapper/code/CMakeFiles/TrtNet.dir/src/./TrtNet_generated_YoloLayer.cu.o
/usr/local/cuda/bin/nvcc /home/stiv/TensorRT-Yolov3/tensorRTWrapper/code/src/YoloLayer.cu -c -o /home/stiv/TensorRT-Yolov3/build/tensorRTWrapper/code/CMakeFiles/TrtNet.dir/src/./TrtNet_generated_YoloLayer.cu.o -ccbin /usr/bin/c++ -m64 --std c++11 -Xcompiler ,\"-Wall\",\"-Ofast\",\"-Wfatal-errors\",\"-Wall\",\"-Ofast\",\"-Wfatal-errors\",\"-D_MWAITXINTRIN_H_INCLUDED\",\"-O3\",\"-DNDEBUG\" -D_FORCE_INLINES -Xcompiler -fPIC -DNVCC -I/usr/include/aarch64-linux-gnu -I/usr/local/cuda/include -I/home/stiv/TensorRT-Yolov3/tensorRTWrapper/code/include
/home/stiv/TensorRT-Yolov3/tensorRTWrapper/code/src/YoloLayer.cu(32): warning: variable "a" was declared but never referenced

/home/stiv/TensorRT-Yolov3/tensorRTWrapper/code/src/YoloLayer.cu(47): warning: variable "a" was declared but never referenced

Generated /home/stiv/TensorRT-Yolov3/build/tensorRTWrapper/code/CMakeFiles/TrtNet.dir/src/./TrtNet_generated_YoloLayer.cu.o successfully.
[ 20%] Building NVCC (Device) object tensorRTWrapper/code/CMakeFiles/TrtNet.dir/src/TrtNet_generated_UpsampleLayer.cu.o
-- Removing /home/stiv/TensorRT-Yolov3/build/tensorRTWrapper/code/CMakeFiles/TrtNet.dir/src/./TrtNet_generated_UpsampleLayer.cu.o
/usr/bin/cmake -E remove /home/stiv/TensorRT-Yolov3/build/tensorRTWrapper/code/CMakeFiles/TrtNet.dir/src/./TrtNet_generated_UpsampleLayer.cu.o
-- Generating dependency file: /home/stiv/TensorRT-Yolov3/build/tensorRTWrapper/code/CMakeFiles/TrtNet.dir/src/TrtNet_generated_UpsampleLayer.cu.o.NVCC-depend
/usr/local/cuda/bin/nvcc -M -D__CUDACC__ /home/stiv/TensorRT-Yolov3/tensorRTWrapper/code/src/UpsampleLayer.cu -o /home/stiv/TensorRT-Yolov3/build/tensorRTWrapper/code/CMakeFiles/TrtNet.dir/src/TrtNet_generated_UpsampleLayer.cu.o.NVCC-depend -ccbin /usr/bin/c++ -m64 --std c++11 -Xcompiler ,\"-Wall\",\"-Ofast\",\"-Wfatal-errors\",\"-Wall\",\"-Ofast\",\"-Wfatal-errors\",\"-D_MWAITXINTRIN_H_INCLUDED\",\"-O3\",\"-DNDEBUG\" -D_FORCE_INLINES -Xcompiler -fPIC -DNVCC -I/usr/include/aarch64-linux-gnu -I/usr/local/cuda/include -I/home/stiv/TensorRT-Yolov3/tensorRTWrapper/code/include
-- Generating temporary cmake readable file: /home/stiv/TensorRT-Yolov3/build/tensorRTWrapper/code/CMakeFiles/TrtNet.dir/src/TrtNet_generated_UpsampleLayer.cu.o.depend.tmp
/usr/bin/cmake -D input_file:FILEPATH=/home/stiv/TensorRT-Yolov3/build/tensorRTWrapper/code/CMakeFiles/TrtNet.dir/src/TrtNet_generated_UpsampleLayer.cu.o.NVCC-depend -D output_file:FILEPATH=/home/stiv/TensorRT-Yolov3/build/tensorRTWrapper/code/CMakeFiles/TrtNet.dir/src/TrtNet_generated_UpsampleLayer.cu.o.depend.tmp -D verbose=ON -P /usr/share/cmake-3.10/Modules/FindCUDA/make2cmake.cmake
-- Copy if different /home/stiv/TensorRT-Yolov3/build/tensorRTWrapper/code/CMakeFiles/TrtNet.dir/src/TrtNet_generated_UpsampleLayer.cu.o.depend.tmp to /home/stiv/TensorRT-Yolov3/build/tensorRTWrapper/code/CMakeFiles/TrtNet.dir/src/TrtNet_generated_UpsampleLayer.cu.o.depend
/usr/bin/cmake -E copy_if_different /home/stiv/TensorRT-Yolov3/build/tensorRTWrapper/code/CMakeFiles/TrtNet.dir/src/TrtNet_generated_UpsampleLayer.cu.o.depend.tmp /home/stiv/TensorRT-Yolov3/build/tensorRTWrapper/code/CMakeFiles/TrtNet.dir/src/TrtNet_generated_UpsampleLayer.cu.o.depend
-- Removing /home/stiv/TensorRT-Yolov3/build/tensorRTWrapper/code/CMakeFiles/TrtNet.dir/src/TrtNet_generated_UpsampleLayer.cu.o.depend.tmp and /home/stiv/TensorRT-Yolov3/build/tensorRTWrapper/code/CMakeFiles/TrtNet.dir/src/TrtNet_generated_UpsampleLayer.cu.o.NVCC-depend
/usr/bin/cmake -E remove /home/stiv/TensorRT-Yolov3/build/tensorRTWrapper/code/CMakeFiles/TrtNet.dir/src/TrtNet_generated_UpsampleLayer.cu.o.depend.tmp /home/stiv/TensorRT-Yolov3/build/tensorRTWrapper/code/CMakeFiles/TrtNet.dir/src/TrtNet_generated_UpsampleLayer.cu.o.NVCC-depend
-- Generating /home/stiv/TensorRT-Yolov3/build/tensorRTWrapper/code/CMakeFiles/TrtNet.dir/src/./TrtNet_generated_UpsampleLayer.cu.o
/usr/local/cuda/bin/nvcc /home/stiv/TensorRT-Yolov3/tensorRTWrapper/code/src/UpsampleLayer.cu -c -o /home/stiv/TensorRT-Yolov3/build/tensorRTWrapper/code/CMakeFiles/TrtNet.dir/src/./TrtNet_generated_UpsampleLayer.cu.o -ccbin /usr/bin/c++ -m64 --std c++11 -Xcompiler ,\"-Wall\",\"-Ofast\",\"-Wfatal-errors\",\"-Wall\",\"-Ofast\",\"-Wfatal-errors\",\"-D_MWAITXINTRIN_H_INCLUDED\",\"-O3\",\"-DNDEBUG\" -D_FORCE_INLINES -Xcompiler -fPIC -DNVCC -I/usr/include/aarch64-linux-gnu -I/usr/local/cuda/include -I/home/stiv/TensorRT-Yolov3/tensorRTWrapper/code/include
Generated /home/stiv/TensorRT-Yolov3/build/tensorRTWrapper/code/CMakeFiles/TrtNet.dir/src/./TrtNet_generated_UpsampleLayer.cu.o successfully.
Scanning dependencies of target TrtNet
[ 30%] Building CXX object tensorRTWrapper/code/CMakeFiles/TrtNet.dir/src/EntroyCalibrator.cpp.o
[ 40%] Building CXX object tensorRTWrapper/code/CMakeFiles/TrtNet.dir/src/UpsampleLayer.cpp.o
/home/stiv/TensorRT-Yolov3/tensorRTWrapper/code/src/UpsampleLayer.cpp: In constructor ‘nvinfer1::UpsampleLayerPlugin::UpsampleLayerPlugin(const void*, size_t)’:
/home/stiv/TensorRT-Yolov3/tensorRTWrapper/code/src/UpsampleLayer.cpp:19:62: warning: unused variable ‘a’ [-Wunused-variable]
       const char *d = reinterpret_cast<const char *>(data), *a = d;
                                                              ^
/home/stiv/TensorRT-Yolov3/tensorRTWrapper/code/src/UpsampleLayer.cpp: In member function ‘virtual void nvinfer1::UpsampleLayerPlugin::serialize(void*)’:
/home/stiv/TensorRT-Yolov3/tensorRTWrapper/code/src/UpsampleLayer.cpp:34:46: warning: unused variable ‘a’ [-Wunused-variable]
       char* d = static_cast<char*>(buffer), *a = d;
                                              ^
[ 50%] Building CXX object tensorRTWrapper/code/CMakeFiles/TrtNet.dir/src/TrtNet.cpp.o
In file included from /home/stiv/TensorRT-Yolov3/tensorRTWrapper/code/include/TrtNet.h:11:0,
                 from /home/stiv/TensorRT-Yolov3/tensorRTWrapper/code/src/TrtNet.cpp:1:
/home/stiv/TensorRT-Yolov3/tensorRTWrapper/code/include/PluginFactory.h: In member function ‘virtual nvinfer1::IPlugin* Tn::PluginFactory::createPlugin(const char*, const nvinfer1::Weights*, int)’:
/home/stiv/TensorRT-Yolov3/tensorRTWrapper/code/include/PluginFactory.h:48:126: warning: ‘nvinfer1::plugin::INvPlugin* nvinfer1::plugin::createPReLUPlugin(float)’ is deprecated [-Wdeprecated-declarations]
        mPluginLeakyRelu.emplace_back(std::unique_ptr<INvPlugin, void(*)(INvPlugin*)>(createPReLUPlugin(NEG_SLOPE), nvPluginDeleter));
                                                                                                                 ^
In file included from /home/stiv/TensorRT-Yolov3/tensorRTWrapper/code/include/TrtNet.h:9:0,
                 from /home/stiv/TensorRT-Yolov3/tensorRTWrapper/code/src/TrtNet.cpp:1:
/usr/include/aarch64-linux-gnu/NvInferPlugin.h:190:31: note: declared here
 TRT_DEPRECATED_API INvPlugin* createPReLUPlugin(float negSlope);
                               ^~~~~~~~~~~~~~~~~
In file included from /home/stiv/TensorRT-Yolov3/tensorRTWrapper/code/include/TrtNet.h:11:0,
                 from /home/stiv/TensorRT-Yolov3/tensorRTWrapper/code/src/TrtNet.cpp:1:
/home/stiv/TensorRT-Yolov3/tensorRTWrapper/code/include/PluginFactory.h: In member function ‘virtual nvinfer1::IPlugin* Tn::PluginFactory::createPlugin(const char*, const void*, size_t)’:
/home/stiv/TensorRT-Yolov3/tensorRTWrapper/code/include/PluginFactory.h:76:138: warning: ‘nvinfer1::plugin::INvPlugin* nvinfer1::plugin::createPReLUPlugin(const void*, size_t)’ is deprecated [-Wdeprecated-declarations]
 akyRelu.emplace_back(std::unique_ptr<INvPlugin, void (*)(INvPlugin*)>(createPReLUPlugin(serialData, serialLength), nvPluginDeleter));
                                                                                                                 ^
In file included from /home/stiv/TensorRT-Yolov3/tensorRTWrapper/code/include/TrtNet.h:9:0,
                 from /home/stiv/TensorRT-Yolov3/tensorRTWrapper/code/src/TrtNet.cpp:1:
/usr/include/aarch64-linux-gnu/NvInferPlugin.h:191:31: note: declared here
 TRT_DEPRECATED_API INvPlugin* createPReLUPlugin(const void* data, size_t length);
                               ^~~~~~~~~~~~~~~~~
/home/stiv/TensorRT-Yolov3/tensorRTWrapper/code/src/TrtNet.cpp: In member function ‘nvinfer1::ICudaEngine* Tn::trtNet::loadModelAndCreateEngine(const char*, const char*, int, nvcaffeparser1::ICaffeParser*, nvcaffeparser1::IPluginFactory*, nvinfer1::IInt8Calibrator*, nvinfer1::IHostMemory*&, const std::vector<std::__cxx11::basic_string<char> >&)’:
/home/stiv/TensorRT-Yolov3/tensorRTWrapper/code/src/TrtNet.cpp:162:62: warning: ‘virtual nvinfer1::INetworkDefinition* nvinfer1::IBuilder::createNetwork()’ is deprecated [-Wdeprecated-declarations]
         INetworkDefinition* network = builder->createNetwork();
                                                              ^
In file included from /usr/include/aarch64-linux-gnu/NvInferPlugin.h:53:0,
                 from /home/stiv/TensorRT-Yolov3/tensorRTWrapper/code/include/TrtNet.h:9,
                 from /home/stiv/TensorRT-Yolov3/tensorRTWrapper/code/src/TrtNet.cpp:1:
/usr/include/aarch64-linux-gnu/NvInfer.h:5431:58: note: declared here
     TRT_DEPRECATED virtual nvinfer1::INetworkDefinition* createNetwork() TRTNOEXCEPT = 0;
                                                          ^~~~~~~~~~~~~
/home/stiv/TensorRT-Yolov3/tensorRTWrapper/code/src/TrtNet.cpp:184:45: warning: ‘virtual void nvinfer1::IBuilder::setMaxWorkspaceSize(std::size_t)’ is deprecated [-Wdeprecated-declarations]
         builder->setMaxWorkspaceSize(1 << 30);// 1G
                                             ^
In file included from /usr/include/aarch64-linux-gnu/NvInferPlugin.h:53:0,
                 from /home/stiv/TensorRT-Yolov3/tensorRTWrapper/code/include/TrtNet.h:9,
                 from /home/stiv/TensorRT-Yolov3/tensorRTWrapper/code/src/TrtNet.cpp:1:
/usr/include/aarch64-linux-gnu/NvInfer.h:5462:33: note: declared here
     TRT_DEPRECATED virtual void setMaxWorkspaceSize(std::size_t workspaceSize) TRTNOEXCEPT = 0;
                                 ^~~~~~~~~~~~~~~~~~~
/home/stiv/TensorRT-Yolov3/tensorRTWrapper/code/src/TrtNet.cpp:190:38: warning: ‘virtual void nvinfer1::IBuilder::setInt8Mode(bool)’ is deprecated [-Wdeprecated-declarations]
             builder->setInt8Mode(true);
                                      ^
In file included from /usr/include/aarch64-linux-gnu/NvInferPlugin.h:53:0,
                 from /home/stiv/TensorRT-Yolov3/tensorRTWrapper/code/include/TrtNet.h:9,
                 from /home/stiv/TensorRT-Yolov3/tensorRTWrapper/code/src/TrtNet.cpp:1:
/usr/include/aarch64-linux-gnu/NvInfer.h:5595:33: note: declared here
     TRT_DEPRECATED virtual void setInt8Mode(bool mode) TRTNOEXCEPT = 0;
                                 ^~~~~~~~~~~
/home/stiv/TensorRT-Yolov3/tensorRTWrapper/code/src/TrtNet.cpp:191:50: warning: ‘virtual void nvinfer1::IBuilder::setInt8Calibrator(nvinfer1::IInt8Calibrator*)’ is deprecated [-Wdeprecated-declarations]
             builder->setInt8Calibrator(calibrator);
                                                  ^
In file included from /usr/include/aarch64-linux-gnu/NvInferPlugin.h:53:0,
                 from /home/stiv/TensorRT-Yolov3/tensorRTWrapper/code/include/TrtNet.h:9,
                 from /home/stiv/TensorRT-Yolov3/tensorRTWrapper/code/src/TrtNet.cpp:1:
/usr/include/aarch64-linux-gnu/NvInfer.h:5611:33: note: declared here
     TRT_DEPRECATED virtual void setInt8Calibrator(IInt8Calibrator* calibrator) TRTNOEXCEPT = 0;
                                 ^~~~~~~~~~~~~~~~~
/home/stiv/TensorRT-Yolov3/tensorRTWrapper/code/src/TrtNet.cpp:198:38: warning: ‘virtual void nvinfer1::IBuilder::setFp16Mode(bool)’ is deprecated [-Wdeprecated-declarations]
             builder->setFp16Mode(true);
                                      ^
In file included from /usr/include/aarch64-linux-gnu/NvInferPlugin.h:53:0,
                 from /home/stiv/TensorRT-Yolov3/tensorRTWrapper/code/include/TrtNet.h:9,
                 from /home/stiv/TensorRT-Yolov3/tensorRTWrapper/code/src/TrtNet.cpp:1:
/usr/include/aarch64-linux-gnu/NvInfer.h:5757:33: note: declared here
     TRT_DEPRECATED virtual void setFp16Mode(bool mode) TRTNOEXCEPT = 0;
                                 ^~~~~~~~~~~
/home/stiv/TensorRT-Yolov3/tensorRTWrapper/code/src/TrtNet.cpp:202:64: warning: ‘virtual nvinfer1::ICudaEngine* nvinfer1::IBuilder::buildCudaEngine(nvinfer1::INetworkDefinition&)’ is deprecated [-Wdeprecated-declarations]
         ICudaEngine* engine = builder->buildCudaEngine(*network);
                                                                ^
In file included from /usr/include/aarch64-linux-gnu/NvInferPlugin.h:53:0,
                 from /home/stiv/TensorRT-Yolov3/tensorRTWrapper/code/include/TrtNet.h:9,
                 from /home/stiv/TensorRT-Yolov3/tensorRTWrapper/code/src/TrtNet.cpp:1:
/usr/include/aarch64-linux-gnu/NvInfer.h:5566:51: note: declared here
     TRT_DEPRECATED virtual nvinfer1::ICudaEngine* buildCudaEngine(
                                                   ^~~~~~~~~~~~~~~
[ 60%] Linking CXX static library libTrtNet.a
[ 60%] Built target TrtNet
Scanning dependencies of target runYolov3
[ 70%] Building CXX object CMakeFiles/runYolov3.dir/main.cpp.o
In file included from /home/stiv/TensorRT-Yolov3/tensorRTWrapper/code/include/TrtNet.h:11:0,
                 from /home/stiv/TensorRT-Yolov3/main.cpp:2:
/home/stiv/TensorRT-Yolov3/tensorRTWrapper/code/include/PluginFactory.h: In member function ‘virtual nvinfer1::IPlugin* Tn::PluginFactory::createPlugin(const char*, const nvinfer1::Weights*, int)’:
/home/stiv/TensorRT-Yolov3/tensorRTWrapper/code/include/PluginFactory.h:48:126: warning: ‘nvinfer1::plugin::INvPlugin* nvinfer1::plugin::createPReLUPlugin(float)’ is deprecated [-Wdeprecated-declarations]
        mPluginLeakyRelu.emplace_back(std::unique_ptr<INvPlugin, void(*)(INvPlugin*)>(createPReLUPlugin(NEG_SLOPE), nvPluginDeleter));
                                                                                                                 ^
In file included from /home/stiv/TensorRT-Yolov3/tensorRTWrapper/code/include/TrtNet.h:9:0,
                 from /home/stiv/TensorRT-Yolov3/main.cpp:2:
/usr/include/aarch64-linux-gnu/NvInferPlugin.h:190:31: note: declared here
 TRT_DEPRECATED_API INvPlugin* createPReLUPlugin(float negSlope);
                               ^~~~~~~~~~~~~~~~~
In file included from /home/stiv/TensorRT-Yolov3/tensorRTWrapper/code/include/TrtNet.h:11:0,
                 from /home/stiv/TensorRT-Yolov3/main.cpp:2:
/home/stiv/TensorRT-Yolov3/tensorRTWrapper/code/include/PluginFactory.h: In member function ‘virtual nvinfer1::IPlugin* Tn::PluginFactory::createPlugin(const char*, const void*, size_t)’:
/home/stiv/TensorRT-Yolov3/tensorRTWrapper/code/include/PluginFactory.h:76:138: warning: ‘nvinfer1::plugin::INvPlugin* nvinfer1::plugin::createPReLUPlugin(const void*, size_t)’ is deprecated [-Wdeprecated-declarations]
 akyRelu.emplace_back(std::unique_ptr<INvPlugin, void (*)(INvPlugin*)>(createPReLUPlugin(serialData, serialLength), nvPluginDeleter));
                                                                                                                 ^
In file included from /home/stiv/TensorRT-Yolov3/tensorRTWrapper/code/include/TrtNet.h:9:0,
                 from /home/stiv/TensorRT-Yolov3/main.cpp:2:
/usr/include/aarch64-linux-gnu/NvInferPlugin.h:191:31: note: declared here
 TRT_DEPRECATED_API INvPlugin* createPReLUPlugin(const void* data, size_t length);
                               ^~~~~~~~~~~~~~~~~
/home/stiv/TensorRT-Yolov3/main.cpp: In function ‘std::vector<float> prepareImage(cv::Mat&)’:
/home/stiv/TensorRT-Yolov3/main.cpp:27:28: error: ‘CV_BGR2RGB’ was not declared in this scope
     cv::cvtColor(img, rgb, CV_BGR2RGB);
                            ^~~~~~~~~~
compilation terminated due to -Wfatal-errors.
CMakeFiles/runYolov3.dir/build.make:62: recipe for target 'CMakeFiles/runYolov3.dir/main.cpp.o' failed
make[2]: *** [CMakeFiles/runYolov3.dir/main.cpp.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/runYolov3.dir/all' failed
make[1]: *** [CMakeFiles/runYolov3.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2

@xudh1991
Copy link

add #include <opencv2/imgproc/types_c.h>

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