AIpakchoi / yolov5_tensorrt

This is the implementation that supports yolov5s, yolov5m, yolov5l, yolov5x.
34 stars 6 forks source link

关于yolov5s编译的问题 #6

Open BarryKCL opened 4 years ago

BarryKCL commented 4 years ago

[ 25%] Building NVCC (Device) object CMakeFiles/yololayer.dir/yololayer_generated_yololayer.cu.o /home/yolov5_tensorrt/yolov5s/yololayer.h(103): warning: function "nvinfer1::IPluginV2Ext::configurePlugin(const nvinfer1::Dims , int, const nvinfer1::Dims , int, const nvinfer1::DataType , const nvinfer1::DataType , const __nv_bool , const __nv_bool , nvinfer1::PluginFormat, int)" is hidden by "nvinfer1::YoloLayerPlugin::configurePlugin" -- virtual function override intended?

/home/yolov5_tensorrt/yolov5s/yololayer.h(103): warning: function "nvinfer1::IPluginV2Ext::configurePlugin(const nvinfer1::Dims , int, const nvinfer1::Dims , int, const nvinfer1::DataType , const nvinfer1::DataType , const bool , const bool , nvinfer1::PluginFormat, int)" is hidden by "nvinfer1::YoloLayerPlugin::configurePlugin" -- virtual function override intended?

Scanning dependencies of target yololayer [ 50%] Linking CXX shared library libyololayer.so [ 50%] Built target yololayer Scanning dependencies of target yolov5s [ 75%] Building CXX object CMakeFiles/yolov5s.dir/yolov5s.cpp.o In file included from /usr/include/c++/4.8.2/algorithm:62:0, from /usr/local/include/opencv2/core/base.hpp:55, from /usr/local/include/opencv2/core.hpp:54, from /usr/local/include/opencv2/opencv.hpp:52, from /home/yolov5_tensorrt/yolov5s/common.hpp:8, from /home/yolov5_tensorrt/yolov5s/yolov5s.cpp:5: /usr/include/c++/4.8.2/bits/stl_algo.h: In instantiation of '_RandomAccessIterator std::unguarded_partition(_RandomAccessIterator, _RandomAccessIterator, const _Tp&, _Compare) [with _RandomAccessIterator = gnu_cxx::normal_iterator<Yolo::Detection, std::vector >; _Tp = Yolo::Detection; _Compare = bool ()(Yolo::Detection&, Yolo::Detection&)]': /usr/include/c++/4.8.2/bits/stl_algo.h:2296:78: required from '_RandomAccessIterator std::unguarded_partition_pivot(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = gnu_cxx::normal_iterator<Yolo::Detection, std::vector >; _Compare = bool ()(Yolo::Detection&, Yolo::Detection&)]' /usr/include/c++/4.8.2/bits/stl_algo.h:2337:62: required from 'void std::introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size, _Compare) [with _RandomAccessIterator = gnu_cxx::normal_iterator<Yolo::Detection, std::vector >; _Size = long int; _Compare = bool ()(Yolo::Detection&, Yolo::Detection&)]' /usr/include/c++/4.8.2/bits/stl_algo.h:5499:44: required from 'void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = gnu_cxx::normal_iterator<Yolo::Detection, std::vector >; _Compare = bool ()(Yolo::Detection&, Yolo::Detection&)]' /home/yolov5_tensorrt/yolov5s/common.hpp:106:48: required from here /usr/include/c++/4.8.2/bits/stl_algo.h:2263:35: error: invalid initialization of reference of type 'Yolo::Detection&' from expression of type 'const Yolo::Detection' while (comp(*first, pivot)) ^ compilation terminated due to -Wfatal-errors. make[2]: [CMakeFiles/yolov5s.dir/yolov5s.cpp.o] Error 1 make[1]: [CMakeFiles/yolov5s.dir/all] Error 2 make: *** [all] Error 2