dongfangduoshou123 / YoloV3-TensorRT

Run YoloV3 with the newest TensorRT6.0 at 37 fps on NVIIDIA 1060.
MIT License
86 stars 30 forks source link

there is something wrong #4

Closed JensenHJS closed 4 years ago

JensenHJS commented 5 years ago

CMakeFiles/TensorRTYOLOV3.dir/build.make:69: recipe for target 'CMakeFiles/TensorRTYOLOV3.dir/sampleYoloV3.cpp.o' failed make[2]: [CMakeFiles/TensorRTYOLOV3.dir/sampleYoloV3.cpp.o] Error 1 make[2]: 正在等待未完成的任务.... CMakeFiles/Makefile2:104: recipe for target 'CMakeFiles/TensorRTYOLOV3.dir/all' failed make[1]: [CMakeFiles/TensorRTYOLOV3.dir/all] Error 2 Makefile:83: recipe for target 'all' failed make: [all] Error 2 how to solve this problem? I need your help

dongfangduoshou123 commented 5 years ago

I cannot find any helpful message to solve the problem, please give more detailed error messages.

JensenHJS commented 5 years ago

when I run make -j8, it denotes the following things

-- Build type not set -- defaulting to Release -- CUDA detected: 10.0 -- Added CUDA NVCC flags for: sm_30 sm_35 sm_50 sm_52 sm_60 sm_61 sm_70 -- Found libcuda: /usr/lib/x86_64-linux-gnu/libcuda.so -- Found libnvrtc: /home/hjs/cuda-10.0/lib64/libnvrtc.so -- Configuring done -- Generating done -- Build files have been written to: /home/hjs/YoloV3-TensorRT/build [ 8%] Building CXX object CMakeFiles/TensorRTYOLOV3.dir/sampleYoloV3.cpp.o [ 16%] Linking CXX shared library libyoloPlugin.so /usr/bin/ld: 找不到 -lOFF/lib/libopencv_core.so /usr/bin/ld: 找不到 -lOFF/lib/libopencv_imgproc.so /usr/bin/ld: 找不到 -lOFF/lib/libopencv_imgcodecs.so /usr/bin/ld: 找不到 -lOFF/lib/libopencv_videoio.so /usr/bin/ld: 找不到 -lOFF/lib/libopencv_highgui.so /usr/bin/ld: 找不到 -lOFF/lib/libopencv_video.so /usr/bin/ld: 找不到 -lOFF/lib/libopencv_videostab.so /usr/bin/ld: 找不到 -lOFF/lib/libopencv_optflow.so /usr/bin/ld: 找不到 -lOFF/lib/libopencv_aruco.so /usr/bin/ld: 找不到 -lOFF/lib/libopencv_phase_unwrapping.so /usr/bin/ld: 找不到 -lOFF/lib/libopencv_bgsegm.so /usr/bin/ld: 找不到 -lOFF/lib/libopencv_photo.so /usr/bin/ld: 找不到 -lOFF/lib/libopencv_bioinspired.so /usr/bin/ld: 找不到 -lOFF/lib/libopencv_plot.so /usr/bin/ld: 找不到 -lOFF/lib/libopencv_calib3d.so /usr/bin/ld: 找不到 -lOFF/lib/libopencv_ximgproc.so /usr/bin/ld: 找不到 -lOFF/lib/libopencv_quality.so /usr/bin/ld: 找不到 -lOFF/lib/libopencv_ccalib.so /usr/bin/ld: 找不到 -lOFF/lib/libopencv_reg.so /usr/bin/ld: 找不到 -lOFF/lib/libopencv_rgbd.so /usr/bin/ld: 找不到 -lOFF/lib/libopencv_datasets.so /usr/bin/ld: 找不到 -lOFF/lib/libopencv_saliency.so /usr/bin/ld: 找不到 -lOFF/lib/libopencv_dnn_objdetect.so /usr/bin/ld: 找不到 -lOFF/lib/libopencv_shape.so /usr/bin/ld: 找不到 -lOFF/lib/libopencv_dnn.so /usr/bin/ld: 找不到 -lOFF/lib/libopencv_stereo.so /usr/bin/ld: 找不到 -lOFF/lib/libopencv_dpm.so /usr/bin/ld: 找不到 -lOFF/lib/libopencv_stitching.so /usr/bin/ld: 找不到 -lOFF/lib/libopencv_face.so /usr/bin/ld: 找不到 -lOFF/lib/libopencv_structured_light.so /usr/bin/ld: 找不到 -lOFF/lib/libopencv_features2d.so /usr/bin/ld: 找不到 -lOFF/lib/libopencv_superres.so /usr/bin/ld: 找不到 -lOFF/lib/libopencv_flann.so /usr/bin/ld: 找不到 -lOFF/lib/libopencv_surface_matching.so /usr/bin/ld: 找不到 -lOFF/lib/libopencv_fuzzy.so /usr/bin/ld: 找不到 -lOFF/lib/libopencv_text.so /usr/bin/ld: 找不到 -lOFF/lib/libopencv_gapi.so /usr/bin/ld: 找不到 -lOFF/lib/libopencv_tracking.so /usr/bin/ld: 找不到 -lOFF/lib/libopencv_hfs.so /usr/bin/ld: 找不到 -lOFF/lib/libopencv_img_hash.so /usr/bin/ld: 找不到 -lOFF/lib/libopencv_xfeatures2d.so /usr/bin/ld: 找不到 -lOFF/lib/libopencv_line_descriptor.so /usr/bin/ld: 找不到 -lOFF/lib/libopencv_xobjdetect.so /usr/bin/ld: 找不到 -lOFF/lib/libopencv_ml.so /usr/bin/ld: 找不到 -lOFF/lib/libopencv_xphoto.so /usr/bin/ld: 找不到 -lOFF/lib/libopencv_objdetect.so collect2: 错误:ld 返回 1 CMakeFiles/yoloPlugin.dir/build.make:584: recipe for target 'libyoloPlugin.so' failed make[2]: [libyoloPlugin.so] Error 1 CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/yoloPlugin.dir/all' failed make[1]: [CMakeFiles/yoloPlugin.dir/all] Error 2 make[1]: *** 正在等待未完成的任务.... In file included from /home/hjs/TensorRT-6.0.1.5/samples/common/buffers.h:53:0, from /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:2: /home/hjs/TensorRT-6.0.1.5/include/NvInfer.h: 在构造函数‘nvinfer1::DimsHW::DimsHW()’中: /home/hjs/TensorRT-6.0.1.5/include/NvInfer.h:124:9: 警告:‘nvinfer1::Dims::type’ is deprecated [-Wdeprecated-declarations] type[0] = type[1] = DimensionType::kSPATIAL; ^~~~ In file included from /home/hjs/TensorRT-6.0.1.5/include/NvInferRuntime.h:59:0, from /home/hjs/TensorRT-6.0.1.5/include/NvInfer.h:53, from /home/hjs/TensorRT-6.0.1.5/samples/common/buffers.h:53, from /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:2: /home/hjs/TensorRT-6.0.1.5/include/NvInferRuntimeCommon.h:211:47: 附注:在此声明 TRT_DEPRECATED DimensionType type[MAX_DIMS]; //!< The type of each dimension. ^ In file included from /home/hjs/TensorRT-6.0.1.5/samples/common/buffers.h:53:0, from /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:2: /home/hjs/TensorRT-6.0.1.5/include/NvInfer.h:124:9: 警告:‘nvinfer1::Dims::type’ is deprecated [-Wdeprecated-declarations] type[0] = type[1] = DimensionType::kSPATIAL; ^~~~ In file included from /home/hjs/TensorRT-6.0.1.5/include/NvInferRuntime.h:59:0, from /home/hjs/TensorRT-6.0.1.5/include/NvInfer.h:53, from /home/hjs/TensorRT-6.0.1.5/samples/common/buffers.h:53, from /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:2: /home/hjs/TensorRT-6.0.1.5/include/NvInferRuntimeCommon.h:211:47: 附注:在此声明 TRT_DEPRECATED DimensionType type[MAX_DIMS]; //!< The type of each dimension. ^ In file included from /home/hjs/TensorRT-6.0.1.5/samples/common/buffers.h:53:0, from /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:2: /home/hjs/TensorRT-6.0.1.5/include/NvInfer.h:124:19: 警告:‘nvinfer1::Dims::type’ is deprecated [-Wdeprecated-declarations] type[0] = type[1] = DimensionType::kSPATIAL; ^~~~ In file included from /home/hjs/TensorRT-6.0.1.5/include/NvInferRuntime.h:59:0, from /home/hjs/TensorRT-6.0.1.5/include/NvInfer.h:53, from /home/hjs/TensorRT-6.0.1.5/samples/common/buffers.h:53, from /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:2: /home/hjs/TensorRT-6.0.1.5/include/NvInferRuntimeCommon.h:211:47: 附注:在此声明 TRT_DEPRECATED DimensionType type[MAX_DIMS]; //!< The type of each dimension. ^ In file included from /home/hjs/TensorRT-6.0.1.5/samples/common/buffers.h:53:0, from /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:2: /home/hjs/TensorRT-6.0.1.5/include/NvInfer.h:124:19: 警告:‘nvinfer1::Dims::type’ is deprecated [-Wdeprecated-declarations] type[0] = type[1] = DimensionType::kSPATIAL; ^~~~ In file included from /home/hjs/TensorRT-6.0.1.5/include/NvInferRuntime.h:59:0, from /home/hjs/TensorRT-6.0.1.5/include/NvInfer.h:53, from /home/hjs/TensorRT-6.0.1.5/samples/common/buffers.h:53, from /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:2: /home/hjs/TensorRT-6.0.1.5/include/NvInferRuntimeCommon.h:211:47: 附注:在此声明 TRT_DEPRECATED DimensionType type[MAX_DIMS]; //!< The type of each dimension. ^ In file included from /home/hjs/TensorRT-6.0.1.5/samples/common/buffers.h:53:0, from /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:2: /home/hjs/TensorRT-6.0.1.5/include/NvInfer.h: 在构造函数‘nvinfer1::DimsHW::DimsHW(int, int)’中: /home/hjs/TensorRT-6.0.1.5/include/NvInfer.h:136:9: 警告:‘nvinfer1::Dims::type’ is deprecated [-Wdeprecated-declarations] type[0] = type[1] = DimensionType::kSPATIAL; ^~~~ In file included from /home/hjs/TensorRT-6.0.1.5/include/NvInferRuntime.h:59:0, from /home/hjs/TensorRT-6.0.1.5/include/NvInfer.h:53, from /home/hjs/TensorRT-6.0.1.5/samples/common/buffers.h:53, from /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:2: /home/hjs/TensorRT-6.0.1.5/include/NvInferRuntimeCommon.h:211:47: 附注:在此声明 TRT_DEPRECATED DimensionType type[MAX_DIMS]; //!< The type of each dimension. ^ In file included from /home/hjs/TensorRT-6.0.1.5/samples/common/buffers.h:53:0, from /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:2: /home/hjs/TensorRT-6.0.1.5/include/NvInfer.h:136:9: 警告:‘nvinfer1::Dims::type’ is deprecated [-Wdeprecated-declarations] type[0] = type[1] = DimensionType::kSPATIAL; ^~~~ In file included from /home/hjs/TensorRT-6.0.1.5/include/NvInferRuntime.h:59:0, from /home/hjs/TensorRT-6.0.1.5/include/NvInfer.h:53, from /home/hjs/TensorRT-6.0.1.5/samples/common/buffers.h:53, from /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:2: /home/hjs/TensorRT-6.0.1.5/include/NvInferRuntimeCommon.h:211:47: 附注:在此声明 TRT_DEPRECATED DimensionType type[MAX_DIMS]; //!< The type of each dimension. ^ In file included from /home/hjs/TensorRT-6.0.1.5/samples/common/buffers.h:53:0, from /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:2: /home/hjs/TensorRT-6.0.1.5/include/NvInfer.h:136:19: 警告:‘nvinfer1::Dims::type’ is deprecated [-Wdeprecated-declarations] type[0] = type[1] = DimensionType::kSPATIAL; ^~~~ In file included from /home/hjs/TensorRT-6.0.1.5/include/NvInferRuntime.h:59:0, from /home/hjs/TensorRT-6.0.1.5/include/NvInfer.h:53, from /home/hjs/TensorRT-6.0.1.5/samples/common/buffers.h:53, from /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:2: /home/hjs/TensorRT-6.0.1.5/include/NvInferRuntimeCommon.h:211:47: 附注:在此声明 TRT_DEPRECATED DimensionType type[MAX_DIMS]; //!< The type of each dimension. ^ In file included from /home/hjs/TensorRT-6.0.1.5/samples/common/buffers.h:53:0, from /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:2: /home/hjs/TensorRT-6.0.1.5/include/NvInfer.h:136:19: 警告:‘nvinfer1::Dims::type’ is deprecated [-Wdeprecated-declarations] type[0] = type[1] = DimensionType::kSPATIAL; ^~~~ In file included from /home/hjs/TensorRT-6.0.1.5/include/NvInferRuntime.h:59:0, from /home/hjs/TensorRT-6.0.1.5/include/NvInfer.h:53, from /home/hjs/TensorRT-6.0.1.5/samples/common/buffers.h:53, from /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:2: /home/hjs/TensorRT-6.0.1.5/include/NvInferRuntimeCommon.h:211:47: 附注:在此声明 TRT_DEPRECATED DimensionType type[MAX_DIMS]; //!< The type of each dimension. ^ In file included from /home/hjs/TensorRT-6.0.1.5/samples/common/buffers.h:53:0, from /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:2: /home/hjs/TensorRT-6.0.1.5/include/NvInfer.h: 在构造函数‘nvinfer1::DimsCHW::DimsCHW()’中: /home/hjs/TensorRT-6.0.1.5/include/NvInfer.h:215:9: 警告:‘nvinfer1::Dims::type’ is deprecated [-Wdeprecated-declarations] type[0] = DimensionType::kCHANNEL; ^~~~ In file included from /home/hjs/TensorRT-6.0.1.5/include/NvInferRuntime.h:59:0, from /home/hjs/TensorRT-6.0.1.5/include/NvInfer.h:53, from /home/hjs/TensorRT-6.0.1.5/samples/common/buffers.h:53, from /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:2: /home/hjs/TensorRT-6.0.1.5/include/NvInferRuntimeCommon.h:211:47: 附注:在此声明 TRT_DEPRECATED DimensionType type[MAX_DIMS]; //!< The type of each dimension. ^ In file included from /home/hjs/TensorRT-6.0.1.5/samples/common/buffers.h:53:0, from /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:2: /home/hjs/TensorRT-6.0.1.5/include/NvInfer.h:215:9: 警告:‘nvinfer1::Dims::type’ is deprecated [-Wdeprecated-declarations] type[0] = DimensionType::kCHANNEL; ^~~~ In file included from /home/hjs/TensorRT-6.0.1.5/include/NvInferRuntime.h:59:0, from /home/hjs/TensorRT-6.0.1.5/include/NvInfer.h:53, from /home/hjs/TensorRT-6.0.1.5/samples/common/buffers.h:53, from /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:2: /home/hjs/TensorRT-6.0.1.5/include/NvInferRuntimeCommon.h:211:47: 附注:在此声明 TRT_DEPRECATED DimensionType type[MAX_DIMS]; //!< The type of each dimension. ^ In file included from /home/hjs/TensorRT-6.0.1.5/samples/common/buffers.h:53:0, from /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:2: /home/hjs/TensorRT-6.0.1.5/include/NvInfer.h:216:9: 警告:‘nvinfer1::Dims::type’ is deprecated [-Wdeprecated-declarations] type[1] = type[2] = DimensionType::kSPATIAL; ^~~~ In file included from /home/hjs/TensorRT-6.0.1.5/include/NvInferRuntime.h:59:0, from /home/hjs/TensorRT-6.0.1.5/include/NvInfer.h:53, from /home/hjs/TensorRT-6.0.1.5/samples/common/buffers.h:53, from /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:2: /home/hjs/TensorRT-6.0.1.5/include/NvInferRuntimeCommon.h:211:47: 附注:在此声明 TRT_DEPRECATED DimensionType type[MAX_DIMS]; //!< The type of each dimension. ^ In file included from /home/hjs/TensorRT-6.0.1.5/samples/common/buffers.h:53:0, from /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:2: /home/hjs/TensorRT-6.0.1.5/include/NvInfer.h:216:9: 警告:‘nvinfer1::Dims::type’ is deprecated [-Wdeprecated-declarations] type[1] = type[2] = DimensionType::kSPATIAL; ^~~~ In file included from /home/hjs/TensorRT-6.0.1.5/include/NvInferRuntime.h:59:0, from /home/hjs/TensorRT-6.0.1.5/include/NvInfer.h:53, from /home/hjs/TensorRT-6.0.1.5/samples/common/buffers.h:53, from /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:2: /home/hjs/TensorRT-6.0.1.5/include/NvInferRuntimeCommon.h:211:47: 附注:在此声明 TRT_DEPRECATED DimensionType type[MAX_DIMS]; //!< The type of each dimension. ^ In file included from /home/hjs/TensorRT-6.0.1.5/samples/common/buffers.h:53:0, from /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:2: /home/hjs/TensorRT-6.0.1.5/include/NvInfer.h:216:19: 警告:‘nvinfer1::Dims::type’ is deprecated [-Wdeprecated-declarations] type[1] = type[2] = DimensionType::kSPATIAL; ^~~~ In file included from /home/hjs/TensorRT-6.0.1.5/include/NvInferRuntime.h:59:0, from /home/hjs/TensorRT-6.0.1.5/include/NvInfer.h:53, from /home/hjs/TensorRT-6.0.1.5/samples/common/buffers.h:53, from /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:2: /home/hjs/TensorRT-6.0.1.5/include/NvInferRuntimeCommon.h:211:47: 附注:在此声明 TRT_DEPRECATED DimensionType type[MAX_DIMS]; //!< The type of each dimension. ^ In file included from /home/hjs/TensorRT-6.0.1.5/samples/common/buffers.h:53:0, from /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:2: /home/hjs/TensorRT-6.0.1.5/include/NvInfer.h:216:19: 警告:‘nvinfer1::Dims::type’ is deprecated [-Wdeprecated-declarations] type[1] = type[2] = DimensionType::kSPATIAL; ^~~~ In file included from /home/hjs/TensorRT-6.0.1.5/include/NvInferRuntime.h:59:0, from /home/hjs/TensorRT-6.0.1.5/include/NvInfer.h:53, from /home/hjs/TensorRT-6.0.1.5/samples/common/buffers.h:53, from /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:2: /home/hjs/TensorRT-6.0.1.5/include/NvInferRuntimeCommon.h:211:47: 附注:在此声明 TRT_DEPRECATED DimensionType type[MAX_DIMS]; //!< The type of each dimension. ^ In file included from /home/hjs/TensorRT-6.0.1.5/samples/common/buffers.h:53:0, from /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:2: /home/hjs/TensorRT-6.0.1.5/include/NvInfer.h: 在构造函数‘nvinfer1::DimsCHW::DimsCHW(int, int, int)’中: /home/hjs/TensorRT-6.0.1.5/include/NvInfer.h:229:9: 警告:‘nvinfer1::Dims::type’ is deprecated [-Wdeprecated-declarations] type[0] = DimensionType::kCHANNEL; ^~~~ In file included from /home/hjs/TensorRT-6.0.1.5/include/NvInferRuntime.h:59:0, from /home/hjs/TensorRT-6.0.1.5/include/NvInfer.h:53, from /home/hjs/TensorRT-6.0.1.5/samples/common/buffers.h:53, from /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:2: /home/hjs/TensorRT-6.0.1.5/include/NvInferRuntimeCommon.h:211:47: 附注:在此声明 TRT_DEPRECATED DimensionType type[MAX_DIMS]; //!< The type of each dimension. ^ In file included from /home/hjs/TensorRT-6.0.1.5/samples/common/buffers.h:53:0, from /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:2: /home/hjs/TensorRT-6.0.1.5/include/NvInfer.h:229:9: 警告:‘nvinfer1::Dims::type’ is deprecated [-Wdeprecated-declarations] type[0] = DimensionType::kCHANNEL; ^~~~ In file included from /home/hjs/TensorRT-6.0.1.5/include/NvInferRuntime.h:59:0, from /home/hjs/TensorRT-6.0.1.5/include/NvInfer.h:53, from /home/hjs/TensorRT-6.0.1.5/samples/common/buffers.h:53, from /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:2: /home/hjs/TensorRT-6.0.1.5/include/NvInferRuntimeCommon.h:211:47: 附注:在此声明 TRT_DEPRECATED DimensionType type[MAX_DIMS]; //!< The type of each dimension. ^ In file included from /home/hjs/TensorRT-6.0.1.5/samples/common/buffers.h:53:0, from /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:2: /home/hjs/TensorRT-6.0.1.5/include/NvInfer.h:230:9: 警告:‘nvinfer1::Dims::type’ is deprecated [-Wdeprecated-declarations] type[1] = type[2] = DimensionType::kSPATIAL; ^~~~ In file included from /home/hjs/TensorRT-6.0.1.5/include/NvInferRuntime.h:59:0, from /home/hjs/TensorRT-6.0.1.5/include/NvInfer.h:53, from /home/hjs/TensorRT-6.0.1.5/samples/common/buffers.h:53, from /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:2: /home/hjs/TensorRT-6.0.1.5/include/NvInferRuntimeCommon.h:211:47: 附注:在此声明 TRT_DEPRECATED DimensionType type[MAX_DIMS]; //!< The type of each dimension. ^ In file included from /home/hjs/TensorRT-6.0.1.5/samples/common/buffers.h:53:0, from /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:2: /home/hjs/TensorRT-6.0.1.5/include/NvInfer.h:230:9: 警告:‘nvinfer1::Dims::type’ is deprecated [-Wdeprecated-declarations] type[1] = type[2] = DimensionType::kSPATIAL; ^~~~ In file included from /home/hjs/TensorRT-6.0.1.5/include/NvInferRuntime.h:59:0, from /home/hjs/TensorRT-6.0.1.5/include/NvInfer.h:53, from /home/hjs/TensorRT-6.0.1.5/samples/common/buffers.h:53, from /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:2: /home/hjs/TensorRT-6.0.1.5/include/NvInferRuntimeCommon.h:211:47: 附注:在此声明 TRT_DEPRECATED DimensionType type[MAX_DIMS]; //!< The type of each dimension. ^ In file included from /home/hjs/TensorRT-6.0.1.5/samples/common/buffers.h:53:0, from /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:2: /home/hjs/TensorRT-6.0.1.5/include/NvInfer.h:230:19: 警告:‘nvinfer1::Dims::type’ is deprecated [-Wdeprecated-declarations] type[1] = type[2] = DimensionType::kSPATIAL; ^~~~ In file included from /home/hjs/TensorRT-6.0.1.5/include/NvInferRuntime.h:59:0, from /home/hjs/TensorRT-6.0.1.5/include/NvInfer.h:53, from /home/hjs/TensorRT-6.0.1.5/samples/common/buffers.h:53, from /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:2: /home/hjs/TensorRT-6.0.1.5/include/NvInferRuntimeCommon.h:211:47: 附注:在此声明 TRT_DEPRECATED DimensionType type[MAX_DIMS]; //!< The type of each dimension. ^ In file included from /home/hjs/TensorRT-6.0.1.5/samples/common/buffers.h:53:0, from /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:2: /home/hjs/TensorRT-6.0.1.5/include/NvInfer.h:230:19: 警告:‘nvinfer1::Dims::type’ is deprecated [-Wdeprecated-declarations] type[1] = type[2] = DimensionType::kSPATIAL; ^~~~ In file included from /home/hjs/TensorRT-6.0.1.5/include/NvInferRuntime.h:59:0, from /home/hjs/TensorRT-6.0.1.5/include/NvInfer.h:53, from /home/hjs/TensorRT-6.0.1.5/samples/common/buffers.h:53, from /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:2: /home/hjs/TensorRT-6.0.1.5/include/NvInferRuntimeCommon.h:211:47: 附注:在此声明 TRT_DEPRECATED DimensionType type[MAX_DIMS]; //!< The type of each dimension. ^ In file included from /home/hjs/TensorRT-6.0.1.5/samples/common/buffers.h:53:0, from /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:2: /home/hjs/TensorRT-6.0.1.5/include/NvInfer.h: 在构造函数‘nvinfer1::DimsNCHW::DimsNCHW()’中: /home/hjs/TensorRT-6.0.1.5/include/NvInfer.h:325:9: 警告:‘nvinfer1::Dims::type’ is deprecated [-Wdeprecated-declarations] type[0] = DimensionType::kINDEX; ^~~~ In file included from /home/hjs/TensorRT-6.0.1.5/include/NvInferRuntime.h:59:0, from /home/hjs/TensorRT-6.0.1.5/include/NvInfer.h:53, from /home/hjs/TensorRT-6.0.1.5/samples/common/buffers.h:53, from /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:2: /home/hjs/TensorRT-6.0.1.5/include/NvInferRuntimeCommon.h:211:47: 附注:在此声明 TRT_DEPRECATED DimensionType type[MAX_DIMS]; //!< The type of each dimension. ^ In file included from /home/hjs/TensorRT-6.0.1.5/samples/common/buffers.h:53:0, from /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:2: /home/hjs/TensorRT-6.0.1.5/include/NvInfer.h:325:9: 警告:‘nvinfer1::Dims::type’ is deprecated [-Wdeprecated-declarations] type[0] = DimensionType::kINDEX; ^~~~ In file included from /home/hjs/TensorRT-6.0.1.5/include/NvInferRuntime.h:59:0, from /home/hjs/TensorRT-6.0.1.5/include/NvInfer.h:53, from /home/hjs/TensorRT-6.0.1.5/samples/common/buffers.h:53, from /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:2: /home/hjs/TensorRT-6.0.1.5/include/NvInferRuntimeCommon.h:211:47: 附注:在此声明 TRT_DEPRECATED DimensionType type[MAX_DIMS]; //!< The type of each dimension. ^ In file included from /home/hjs/TensorRT-6.0.1.5/samples/common/buffers.h:53:0, from /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:2: /home/hjs/TensorRT-6.0.1.5/include/NvInfer.h:326:9: 警告:‘nvinfer1::Dims::type’ is deprecated [-Wdeprecated-declarations] type[1] = DimensionType::kCHANNEL; ^~~~ In file included from /home/hjs/TensorRT-6.0.1.5/include/NvInferRuntime.h:59:0, from /home/hjs/TensorRT-6.0.1.5/include/NvInfer.h:53, from /home/hjs/TensorRT-6.0.1.5/samples/common/buffers.h:53, from /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:2: /home/hjs/TensorRT-6.0.1.5/include/NvInferRuntimeCommon.h:211:47: 附注:在此声明 TRT_DEPRECATED DimensionType type[MAX_DIMS]; //!< The type of each dimension. ^ In file included from /home/hjs/TensorRT-6.0.1.5/samples/common/buffers.h:53:0, from /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:2: /home/hjs/TensorRT-6.0.1.5/include/NvInfer.h:326:9: 警告:‘nvinfer1::Dims::type’ is deprecated [-Wdeprecated-declarations] type[1] = DimensionType::kCHANNEL; ^~~~ In file included from /home/hjs/TensorRT-6.0.1.5/include/NvInferRuntime.h:59:0, from /home/hjs/TensorRT-6.0.1.5/include/NvInfer.h:53, from /home/hjs/TensorRT-6.0.1.5/samples/common/buffers.h:53, from /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:2: /home/hjs/TensorRT-6.0.1.5/include/NvInferRuntimeCommon.h:211:47: 附注:在此声明 TRT_DEPRECATED DimensionType type[MAX_DIMS]; //!< The type of each dimension. ^ In file included from /home/hjs/TensorRT-6.0.1.5/samples/common/buffers.h:53:0, from /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:2: /home/hjs/TensorRT-6.0.1.5/include/NvInfer.h:327:9: 警告:‘nvinfer1::Dims::type’ is deprecated [-Wdeprecated-declarations] type[2] = type[3] = DimensionType::kSPATIAL; ^~~~ In file included from /home/hjs/TensorRT-6.0.1.5/include/NvInferRuntime.h:59:0, from /home/hjs/TensorRT-6.0.1.5/include/NvInfer.h:53, from /home/hjs/TensorRT-6.0.1.5/samples/common/buffers.h:53, from /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:2: /home/hjs/TensorRT-6.0.1.5/include/NvInferRuntimeCommon.h:211:47: 附注:在此声明 TRT_DEPRECATED DimensionType type[MAX_DIMS]; //!< The type of each dimension. ^ In file included from /home/hjs/TensorRT-6.0.1.5/samples/common/buffers.h:53:0, from /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:2: /home/hjs/TensorRT-6.0.1.5/include/NvInfer.h:327:9: 警告:‘nvinfer1::Dims::type’ is deprecated [-Wdeprecated-declarations] type[2] = type[3] = DimensionType::kSPATIAL; ^~~~ In file included from /home/hjs/TensorRT-6.0.1.5/include/NvInferRuntime.h:59:0, from /home/hjs/TensorRT-6.0.1.5/include/NvInfer.h:53, from /home/hjs/TensorRT-6.0.1.5/samples/common/buffers.h:53, from /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:2: /home/hjs/TensorRT-6.0.1.5/include/NvInferRuntimeCommon.h:211:47: 附注:在此声明 TRT_DEPRECATED DimensionType type[MAX_DIMS]; //!< The type of each dimension. ^ In file included from /home/hjs/TensorRT-6.0.1.5/samples/common/buffers.h:53:0, from /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:2: /home/hjs/TensorRT-6.0.1.5/include/NvInfer.h:327:19: 警告:‘nvinfer1::Dims::type’ is deprecated [-Wdeprecated-declarations] type[2] = type[3] = DimensionType::kSPATIAL; ^~~~ In file included from /home/hjs/TensorRT-6.0.1.5/include/NvInferRuntime.h:59:0, from /home/hjs/TensorRT-6.0.1.5/include/NvInfer.h:53, from /home/hjs/TensorRT-6.0.1.5/samples/common/buffers.h:53, from /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:2: /home/hjs/TensorRT-6.0.1.5/include/NvInferRuntimeCommon.h:211:47: 附注:在此声明 TRT_DEPRECATED DimensionType type[MAX_DIMS]; //!< The type of each dimension. ^ In file included from /home/hjs/TensorRT-6.0.1.5/samples/common/buffers.h:53:0, from /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:2: /home/hjs/TensorRT-6.0.1.5/include/NvInfer.h:327:19: 警告:‘nvinfer1::Dims::type’ is deprecated [-Wdeprecated-declarations] type[2] = type[3] = DimensionType::kSPATIAL; ^~~~ In file included from /home/hjs/TensorRT-6.0.1.5/include/NvInferRuntime.h:59:0, from /home/hjs/TensorRT-6.0.1.5/include/NvInfer.h:53, from /home/hjs/TensorRT-6.0.1.5/samples/common/buffers.h:53, from /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:2: /home/hjs/TensorRT-6.0.1.5/include/NvInferRuntimeCommon.h:211:47: 附注:在此声明 TRT_DEPRECATED DimensionType type[MAX_DIMS]; //!< The type of each dimension. ^ In file included from /home/hjs/TensorRT-6.0.1.5/samples/common/buffers.h:53:0, from /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:2: /home/hjs/TensorRT-6.0.1.5/include/NvInfer.h: 在构造函数‘nvinfer1::DimsNCHW::DimsNCHW(int, int, int, int)’中: /home/hjs/TensorRT-6.0.1.5/include/NvInfer.h:341:9: 警告:‘nvinfer1::Dims::type’ is deprecated [-Wdeprecated-declarations] type[0] = DimensionType::kINDEX; ^~~~ In file included from /home/hjs/TensorRT-6.0.1.5/include/NvInferRuntime.h:59:0, from /home/hjs/TensorRT-6.0.1.5/include/NvInfer.h:53, from /home/hjs/TensorRT-6.0.1.5/samples/common/buffers.h:53, from /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:2: /home/hjs/TensorRT-6.0.1.5/include/NvInferRuntimeCommon.h:211:47: 附注:在此声明 TRT_DEPRECATED DimensionType type[MAX_DIMS]; //!< The type of each dimension. ^ In file included from /home/hjs/TensorRT-6.0.1.5/samples/common/buffers.h:53:0, from /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:2: /home/hjs/TensorRT-6.0.1.5/include/NvInfer.h:341:9: 警告:‘nvinfer1::Dims::type’ is deprecated [-Wdeprecated-declarations] type[0] = DimensionType::kINDEX; ^~~~ In file included from /home/hjs/TensorRT-6.0.1.5/include/NvInferRuntime.h:59:0, from /home/hjs/TensorRT-6.0.1.5/include/NvInfer.h:53, from /home/hjs/TensorRT-6.0.1.5/samples/common/buffers.h:53, from /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:2: /home/hjs/TensorRT-6.0.1.5/include/NvInferRuntimeCommon.h:211:47: 附注:在此声明 TRT_DEPRECATED DimensionType type[MAX_DIMS]; //!< The type of each dimension. ^ In file included from /home/hjs/TensorRT-6.0.1.5/samples/common/buffers.h:53:0, from /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:2: /home/hjs/TensorRT-6.0.1.5/include/NvInfer.h:342:9: 警告:‘nvinfer1::Dims::type’ is deprecated [-Wdeprecated-declarations] type[1] = DimensionType::kCHANNEL; ^~~~ In file included from /home/hjs/TensorRT-6.0.1.5/include/NvInferRuntime.h:59:0, from /home/hjs/TensorRT-6.0.1.5/include/NvInfer.h:53, from /home/hjs/TensorRT-6.0.1.5/samples/common/buffers.h:53, from /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:2: /home/hjs/TensorRT-6.0.1.5/include/NvInferRuntimeCommon.h:211:47: 附注:在此声明 TRT_DEPRECATED DimensionType type[MAX_DIMS]; //!< The type of each dimension. ^ In file included from /home/hjs/TensorRT-6.0.1.5/samples/common/buffers.h:53:0, from /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:2: /home/hjs/TensorRT-6.0.1.5/include/NvInfer.h:342:9: 警告:‘nvinfer1::Dims::type’ is deprecated [-Wdeprecated-declarations] type[1] = DimensionType::kCHANNEL; ^~~~ In file included from /home/hjs/TensorRT-6.0.1.5/include/NvInferRuntime.h:59:0, from /home/hjs/TensorRT-6.0.1.5/include/NvInfer.h:53, from /home/hjs/TensorRT-6.0.1.5/samples/common/buffers.h:53, from /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:2: /home/hjs/TensorRT-6.0.1.5/include/NvInferRuntimeCommon.h:211:47: 附注:在此声明 TRT_DEPRECATED DimensionType type[MAX_DIMS]; //!< The type of each dimension. ^ In file included from /home/hjs/TensorRT-6.0.1.5/samples/common/buffers.h:53:0, from /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:2: /home/hjs/TensorRT-6.0.1.5/include/NvInfer.h:343:9: 警告:‘nvinfer1::Dims::type’ is deprecated [-Wdeprecated-declarations] type[2] = type[3] = DimensionType::kSPATIAL; ^~~~ In file included from /home/hjs/TensorRT-6.0.1.5/include/NvInferRuntime.h:59:0, from /home/hjs/TensorRT-6.0.1.5/include/NvInfer.h:53, from /home/hjs/TensorRT-6.0.1.5/samples/common/buffers.h:53, from /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:2: /home/hjs/TensorRT-6.0.1.5/include/NvInferRuntimeCommon.h:211:47: 附注:在此声明 TRT_DEPRECATED DimensionType type[MAX_DIMS]; //!< The type of each dimension. ^ In file included from /home/hjs/TensorRT-6.0.1.5/samples/common/buffers.h:53:0, from /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:2: /home/hjs/TensorRT-6.0.1.5/include/NvInfer.h:343:9: 警告:‘nvinfer1::Dims::type’ is deprecated [-Wdeprecated-declarations] type[2] = type[3] = DimensionType::kSPATIAL; ^~~~ In file included from /home/hjs/TensorRT-6.0.1.5/include/NvInferRuntime.h:59:0, from /home/hjs/TensorRT-6.0.1.5/include/NvInfer.h:53, from /home/hjs/TensorRT-6.0.1.5/samples/common/buffers.h:53, from /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:2: /home/hjs/TensorRT-6.0.1.5/include/NvInferRuntimeCommon.h:211:47: 附注:在此声明 TRT_DEPRECATED DimensionType type[MAX_DIMS]; //!< The type of each dimension. ^ In file included from /home/hjs/TensorRT-6.0.1.5/samples/common/buffers.h:53:0, from /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:2: /home/hjs/TensorRT-6.0.1.5/include/NvInfer.h:343:19: 警告:‘nvinfer1::Dims::type’ is deprecated [-Wdeprecated-declarations] type[2] = type[3] = DimensionType::kSPATIAL; ^~~~ In file included from /home/hjs/TensorRT-6.0.1.5/include/NvInferRuntime.h:59:0, from /home/hjs/TensorRT-6.0.1.5/include/NvInfer.h:53, from /home/hjs/TensorRT-6.0.1.5/samples/common/buffers.h:53, from /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:2: /home/hjs/TensorRT-6.0.1.5/include/NvInferRuntimeCommon.h:211:47: 附注:在此声明 TRT_DEPRECATED DimensionType type[MAX_DIMS]; //!< The type of each dimension. ^ In file included from /home/hjs/TensorRT-6.0.1.5/samples/common/buffers.h:53:0, from /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:2: /home/hjs/TensorRT-6.0.1.5/include/NvInfer.h:343:19: 警告:‘nvinfer1::Dims::type’ is deprecated [-Wdeprecated-declarations] type[2] = type[3] = DimensionType::kSPATIAL; ^~~~ In file included from /home/hjs/TensorRT-6.0.1.5/include/NvInferRuntime.h:59:0, from /home/hjs/TensorRT-6.0.1.5/include/NvInfer.h:53, from /home/hjs/TensorRT-6.0.1.5/samples/common/buffers.h:53, from /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:2: /home/hjs/TensorRT-6.0.1.5/include/NvInferRuntimeCommon.h:211:47: 附注:在此声明 TRT_DEPRECATED DimensionType type[MAX_DIMS]; //!< The type of each dimension. ^ In file included from /home/hjs/TensorRT-6.0.1.5/samples/common/buffers.h:53:0, from /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:2: /home/hjs/TensorRT-6.0.1.5/include/NvInfer.h: 在全局域: /home/hjs/TensorRT-6.0.1.5/include/NvInfer.h:4159:108: 警告:已弃用‘IRNNLayer’ [-Wdeprecated-declarations] RNNOperation op, RNNInputMode mode, RNNDirection dir, Weights weights, Weights bias) TRTNOEXCEPT = 0; ^ /home/hjs/TensorRT-6.0.1.5/include/NvInfer.h:2391:22: 附注:在此声明 class TRT_DEPRECATED IRNNLayer : public ILayer ^~~~~ /home/hjs/TensorRT-6.0.1.5/include/NvInfer.h:4178:78: 警告:已弃用‘IPluginLayer’ [-Wdeprecated-declarations] ITensor const inputs, int nbInputs, IPlugin& plugin) TRTNOEXCEPT = 0; ^ /home/hjs/TensorRT-6.0.1.5/include/NvInfer.h:2953:22: 附注:在此声明 class TRT_DEPRECATED IPluginLayer : public ILayer ^~~~ /home/hjs/TensorRT-6.0.1.5/include/NvInfer.h:4591:81: 警告:已弃用‘IPluginLayer’ [-Wdeprecated-declarations] ITensor const inputs, int nbInputs, IPluginExt& plugin) TRTNOEXCEPT = 0; ^ /home/hjs/TensorRT-6.0.1.5/include/NvInfer.h:2953:22: 附注:在此声明 class TRT_DEPRECATED IPluginLayer : public ILayer ^~~~ In file included from /home/hjs/TensorRT-6.0.1.5/include/NvInferPlugin.h:54:0, from /home/hjs/TensorRT-6.0.1.5/samples/common/common.h:64, from /home/hjs/TensorRT-6.0.1.5/samples/common/buffers.h:55, from /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:2: /home/hjs/TensorRT-6.0.1.5/include/NvInferPluginUtils.h:255:18: 警告:‘nvinfer1::plugin::softmaxTree’ is deprecated [-Wdeprecated-declarations] softmaxTree smTree; ^~ /home/hjs/TensorRT-6.0.1.5/include/NvInferPluginUtils.h:248:3: 附注:在此声明 } softmaxTree; // softmax tree ^~~ In file included from /home/hjs/TensorRT-6.0.1.5/samples/common/common.h:64:0, from /home/hjs/TensorRT-6.0.1.5/samples/common/buffers.h:55, from /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:2: /home/hjs/TensorRT-6.0.1.5/include/NvInferPlugin.h:201:77: 警告:已弃用‘RegionParameters’ [-Wdeprecated-declarations] TRT_DEPRECATED_API INvPlugin createYOLORegionPlugin(RegionParameters params); ^ In file included from /home/hjs/TensorRT-6.0.1.5/include/NvInferPlugin.h:54:0, from /home/hjs/TensorRT-6.0.1.5/samples/common/common.h:64, from /home/hjs/TensorRT-6.0.1.5/samples/common/buffers.h:55, from /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:2: /home/hjs/TensorRT-6.0.1.5/include/NvInferPluginUtils.h:250:23: 附注:在此声明 struct TRT_DEPRECATED RegionParameters ^~~~ In file included from /home/hjs/TensorRT-6.0.1.5/samples/common/common.h:64:0, from /home/hjs/TensorRT-6.0.1.5/samples/common/buffers.h:55, from /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:2: /home/hjs/TensorRT-6.0.1.5/include/NvInferPlugin.h:284:94: 警告:已弃用‘RegionParameters’ [-Wdeprecated-declarations] TENSORRTAPI nvinfer1::IPluginV2 createRegionPlugin(nvinfer1::plugin::RegionParameters params); ^ In file included from /home/hjs/TensorRT-6.0.1.5/include/NvInferPlugin.h:54:0, from /home/hjs/TensorRT-6.0.1.5/samples/common/common.h:64, from /home/hjs/TensorRT-6.0.1.5/samples/common/buffers.h:55, from /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:2: /home/hjs/TensorRT-6.0.1.5/include/NvInferPluginUtils.h:250:23: 附注:在此声明 struct TRT_DEPRECATED RegionParameters ^~~~ In file included from /home/hjs/TensorRT-6.0.1.5/samples/common/buffers.h:55:0, from /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:2: /home/hjs/TensorRT-6.0.1.5/samples/common/common.h: 在函数‘void samplesCommon::enableDLA(nvinfer1::IBuilder, nvinfer1::IBuilderConfig, int, bool)’中: /home/hjs/TensorRT-6.0.1.5/samples/common/common.h:590:35: 警告:‘virtual bool nvinfer1::IBuilder::getInt8Mode() const’ is deprecated [-Wdeprecated-declarations] if (!builder->getInt8Mode() && !config->getFlag(BuilderFlag::kINT8)) ^ In file included from /home/hjs/TensorRT-6.0.1.5/samples/common/buffers.h:53:0, from /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:2: /home/hjs/TensorRT-6.0.1.5/include/NvInfer.h:5604:33: 附注:在此声明 TRT_DEPRECATED virtual bool getInt8Mode() const TRTNOEXCEPT = 0; ^~~ In file included from /home/hjs/TensorRT-6.0.1.5/samples/common/buffers.h:55:0, from /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:2: /home/hjs/TensorRT-6.0.1.5/samples/common/common.h:594:38: 警告:‘virtual void nvinfer1::IBuilder::setFp16Mode(bool)’ is deprecated [-Wdeprecated-declarations] builder->setFp16Mode(true); ^ In file included from /home/hjs/TensorRT-6.0.1.5/samples/common/buffers.h:53:0, from /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:2: /home/hjs/TensorRT-6.0.1.5/include/NvInfer.h:5757:33: 附注:在此声明 TRT_DEPRECATED virtual void setFp16Mode(bool mode) TRTNOEXCEPT = 0; ^~~ In file included from /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:6:0: /home/hjs/TensorRT-6.0.1.5/include/NvCaffeParser.h: 在全局域: /home/hjs/TensorRT-6.0.1.5/include/NvCaffeParser.h:102:62: 警告:已弃用‘DimsNCHW’ [-Wdeprecated-declarations] virtual nvinfer1::DimsNCHW getDimensions() TRTNOEXCEPT = 0; ^ In file included from /home/hjs/TensorRT-6.0.1.5/samples/common/buffers.h:53:0, from /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:2: /home/hjs/TensorRT-6.0.1.5/include/NvInfer.h:316:22: 附注:在此声明 class TRT_DEPRECATED DimsNCHW : public Dims4 ^~~~ /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp: 在函数‘void doInference(const unsigned char, uint, CUstream_st&, CUevent_st&, nvinfer1::IExecutionContext, std::vector<void>&, int, int, std::vector&)’中: /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:177:5: 错误:‘ASSERT’在此作用域中尚未声明 ASSERT(cudaMemcpyAsync(m_DeviceBuffers.at(m_InputBindingIndex), input, ^~ /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:177:5: 附注:suggested alternative: ‘CV_ASSERT’ ASSERT(cudaMemcpyAsync(m_DeviceBuffers.at(m_InputBindingIndex), input, ^~ CV_ASSERT /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp: 在成员函数‘std::vector<std::cxx11::basic_string > YoloIInt8Calibrator::ls(std::cxx11::string, long int)’中: /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:322:9: 错误:‘DIR’在此作用域中尚未声明 DIR dirp = opendir(path.c_str()); ^~~ /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:322:14: 错误:‘dirp’在此作用域中尚未声明 DIR dirp = opendir(path.c_str()); ^~~~ /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:322:14: 附注:suggested alternative: ‘dim3’ DIR dirp = opendir(path.c_str()); ^~~~ dim3 /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:322:21: 错误:‘opendir’在此作用域中尚未声明 DIR dirp = opendir(path.c_str()); ^~~ /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:327:21: 错误:聚合‘YoloIInt8Calibrator::ls(std::cxx11::string, long int)::stat st’类型不完全,无法被定义 struct stat st; ^~ /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:329:22: 错误:‘readdir’在此作用域中尚未声明 while((dir = readdir(dirp)) != NULL) ^~~ /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:329:22: 附注:suggested alternative: ‘dladdr’ while((dir = readdir(dirp)) != NULL) ^~~ dladdr /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:331:26: 错误:对不完全的类型‘struct YoloIInt8Calibrator::ls(std::__cxx11::string, long int)::dirent’的非法使用 if(strcmp(dir->d_name,".") == 0 || ^~ /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:328:16: 附注:forward declaration of ‘struct YoloIInt8Calibrator::ls(std::cxx11::string, long int)::dirent’ struct dirent dir; ^~ /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:331:28: 错误:对不完全的类型‘struct YoloIInt8Calibrator::ls(std::__cxx11::string, long int)::dirent’的非法使用 if(strcmp(dir->d_name,".") == 0 || ^~ /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:328:16: 附注:forward declaration of ‘struct YoloIInt8Calibrator::ls(std::__cxx11::string, long int)::dirent’ struct dirent dir; ^~ /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:332:31: 错误:对不完全的类型‘struct YoloIInt8Calibrator::ls(std::cxx11::string, long int)::dirent’的非法使用 strcmp(dir->d_name,"..") == 0) ^~ /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:328:16: 附注:forward declaration of ‘struct YoloIInt8Calibrator::ls(std::cxx11::string, long int)::dirent’ struct dirent *dir; ^~ /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:332:33: 错误:对不完全的类型‘struct YoloIInt8Calibrator::ls(std::cxx11::string, long int)::dirent’的非法使用 strcmp(dir->d_name,"..") == 0) ^~ /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:328:16: 附注:forward declaration of ‘struct YoloIInt8Calibrator::ls(std::cxx11::string, long int)::dirent’ struct dirent dir; ^~ /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:336:47: 错误:对不完全的类型‘struct YoloIInt8Calibrator::ls(std::cxx11::string, long int)::dirent’的非法使用 std::string full_path = path + dir->d_name; ^~ /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:328:16: 附注:forward declaration of ‘struct YoloIInt8Calibrator::ls(std::cxx11::string, long int)::dirent’ struct dirent dir; ^~ /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:336:49: 错误:对不完全的类型‘struct YoloIInt8Calibrator::ls(std::cxx11::string, long int)::dirent’的非法使用 std::string full_path = path + dir->d_name; ^~ /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:328:16: 附注:forward declaration of ‘struct YoloIInt8Calibrator::ls(std::cxx11::string, long int)::dirent’ struct dirent dir; ^~ /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:337:16: 错误:‘lstat’在此作用域中尚未声明 if(lstat(full_path.c_str(),&st) == -1) ^~~~~ /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:337:16: 附注:suggested alternative: ‘stat’ if(lstat(full_path.c_str(),&st) == -1) ^~~~~ stat /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:341:35: 错误:对不完全的类型‘struct YoloIInt8Calibrator::ls(std::__cxx11::string, long int)::dirent’的非法使用 std::string name = dir->d_name; ^~ /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:328:16: 附注:forward declaration of ‘struct YoloIInt8Calibrator::ls(std::__cxx11::string, long int)::dirent’ struct dirent dir; ^~ /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:341:37: 错误:对不完全的类型‘struct YoloIInt8Calibrator::ls(std::__cxx11::string, long int)::dirent’的非法使用 std::string name = dir->d_name; ^~ /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:328:16: 附注:forward declaration of ‘struct YoloIInt8Calibrator::ls(std::__cxx11::string, long int)::dirent’ struct dirent dir; ^~ /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:349:16: 错误:‘S_ISDIR’在此作用域中尚未声明 if(S_ISDIR(st.st_mode)) //S_ISDIR()宏判断是否是目录文件 ^~~ /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:349:16: 附注:suggested alternative: ‘EISDIR’ if(S_ISDIR(st.st_mode)) //S_ISDIR()宏判断是否是目录文件 ^~~ EISDIR /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:360:9: 错误:‘closedir’在此作用域中尚未声明 closedir(dirp); ^~~~ /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:360:9: 附注:suggested alternative: ‘cuserid’ closedir(dirp); ^~~~ cuserid /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp: 在函数‘void runWithYoloPlugin(bool)’中: /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:402:16: 警告:在返回‘void’的函数中,返回语句带返回值 [-fpermissive] return false; ^~~~~ /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:408:16: 警告:在返回‘void’的函数中,返回语句带返回值 [-fpermissive] return false; ^~~~~ /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:413:16: 警告:在返回‘void’的函数中,返回语句带返回值 [-fpermissive] return false; ^~~~~ /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:419:16: 警告:在返回‘void’的函数中,返回语句带返回值 [-fpermissive] return false; ^~~~~ /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:426:16: 警告:在返回‘void’的函数中,返回语句带返回值 [-fpermissive] return false; ^~~~~ /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:469:8: 错误:‘access’在此作用域中尚未声明 if(access(trtpath.c_str(),0) == 0){ ^~ /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:469:8: 附注:suggested alternative: ‘acosl’ if(access(trtpath.c_str(),0) == 0){ ^~ acosl /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:485:41: 警告:从类型‘void’到类型‘const char*’的转换无效 [-fpermissive] out.write(engine_serialize->data(),engine_serialize->size());


In file included from /usr/local/include/c++/7.3.0/ostream:693:0,
                 from /usr/local/include/c++/7.3.0/iostream:39,
                 from /home/hjs/TensorRT-6.0.1.5/samples/common/argsParser.h:60,
                 from /home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:1:
/usr/local/include/c++/7.3.0/bits/ostream.tcc:182:5: 附注:  初始化‘std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::write(const _CharT*, std::streamsize) [with _CharT = char; _Traits = std::char_traits<char>; std::streamsize = long int]’的实参 1
     basic_ostream<_CharT, _Traits>::
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:491:16: 警告:在返回‘void’的函数中,返回语句带返回值 [-fpermissive]
         return false;
                ^~~~~
/home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:582:21: 警告:从类型‘void*’到类型‘const unsigned char*’的转换无效 [-fpermissive]
         doInference((void*)data.data(), 1, m_CudaStream,m_CudaEvent ,m_Context, m_DeviceBuffers,
                     ^~~~~~~~~~~~~~~~~~
/home/hjs/YoloV3-TensorRT/sampleYoloV3.cpp:174:6: 附注:  初始化‘void doInference(const unsigned char*, uint, CUstream_st*&, CUevent_st*&, nvinfer1::IExecutionContext*, std::vector<void*>&, int, int, std::vector<TensorInfo>&)’的实参 1
 void doInference(const unsigned char* input, const uint batchSize, cudaStream_t& m_CudaStream, cudaEvent_t& m_CudaEvent, nvinfer1::IExecutionContext*m_Context, std::vector<void*>& m_DeviceBuffers, int m_InputBindingIndex,int m_InputSize,std::vector<TensorInfo>&m_OutputTensors)
      ^~~~~~~~~~~
CMakeFiles/TensorRTYOLOV3.dir/build.make:302: recipe for target 'CMakeFiles/TensorRTYOLOV3.dir/sampleYoloV3.cpp.o' failed
make[2]: *** [CMakeFiles/TensorRTYOLOV3.dir/sampleYoloV3.cpp.o] Error 1
CMakeFiles/Makefile2:104: recipe for target 'CMakeFiles/TensorRTYOLOV3.dir/all' failed
make[1]: *** [CMakeFiles/TensorRTYOLOV3.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
dongfangduoshou123 commented 5 years ago

webwxgetmsgimg