Open onlywl9598 opened 1 year ago
in onnx/make_pb.sh
, replace the path protoc=/data/sxai/lean/protobuf3.11.4/bin/protoc
in protoc with the protoc of your own version
cd onnx
bash make_pb.sh
CMake:
replace the set(PROTOBUF_DIR "/data/sxai/lean/protobuf3.11.4")
in CMakeLists.txt with the same path of your protoc.
mkdir build && cd build
cmake ..
make yolo -j64
Makefile:
replace the path lean_protobuf := /data/sxai/lean/protobuf3.11.4
in Makefile with the same path of protoc
make yolo -j64
The complete error message you provided is:: CMake Warning (dev) at CMakeLists.txt:36 (find_package): Policy CMP0146 is not set: The FindCUDA module is removed. Run "cmake --help-policy CMP0146" for policy details. Use the cmake_policy command to set the policy and suppress this warning.
This warning is for project developers. Use -Wno-dev to suppress it.
Usage Python /home/wh/anaconda3 -- Configuring done (0.1s) -- Generating done (0.0s) -- Build files have been written to: /home/wh/TensorRT/tensorRT_Pro [ 2%] Building NVCC (Device) object CMakeFiles/plugin_list.dir/src/application/app_centernet/plugin_list_generated_centernet_decode.cu.o [ 2%] Building NVCC (Device) object CMakeFiles/plugin_list.dir/src/application/app_dbface/plugin_list_generated_dbface_decode.cu.o [ 2%] Building NVCC (Device) object CMakeFiles/plugin_list.dir/src/tensorRT/onnxplugin/plugins/plugin_list_generated_ScatterND.cu.o [ 3%] Building NVCC (Device) object CMakeFiles/plugin_list.dir/src/application/app_scrfd/plugin_list_generated_scrfd_decode.cu.o [ 3%] Building NVCC (Device) object CMakeFiles/plugin_list.dir/src/application/app_retinaface/plugin_list_generated_retinaface_decode.cu.o [ 5%] Building NVCC (Device) object CMakeFiles/plugin_list.dir/src/application/app_yolo_fast/plugin_list_generated_yolov5_decode.cu.o [ 5%] Building NVCC (Device) object CMakeFiles/plugin_list.dir/src/application/app_yolo/plugin_list_generated_yolo_decode.cu.o [ 6%] Building NVCC (Device) object CMakeFiles/plugin_list.dir/src/application/app_yolo_fast/plugin_list_generated_yolox_decode.cu.o [ 7%] Building NVCC (Device) object CMakeFiles/plugin_list.dir/src/tensorRT/onnxplugin/plugins/plugin_list_generated_DCNv2.cu.o [ 7%] Building NVCC (Device) object CMakeFiles/plugin_list.dir/src/tensorRT/onnxplugin/plugins/plugin_list_generated_HSigmoid.cu.o [ 6%] Building NVCC (Device) object CMakeFiles/plugin_list.dir/src/application/app_yolo_gpuptr/plugin_list_generated_yolo_gpuptr_decode.cu.o [ 8%] Building NVCC (Device) object CMakeFiles/plugin_list.dir/src/tensorRT/common/plugin_list_generated_preprocess_kernel.cu.o [ 9%] Building NVCC (Device) object CMakeFiles/plugin_list.dir/src/tensorRT/onnxplugin/plugins/plugin_list_generated_HSwish.cu.o [ 10%] Linking CXX shared library example-python/pytrt/libplugin_list.so [ 10%] Built target plugin_list [ 11%] Building CXX object CMakeFiles/pytrtc.dir/src/application/app_alphapose.cpp.o [ 14%] Building CXX object CMakeFiles/pytrtc.dir/src/application/app_arcface.cpp.o [ 14%] Building CXX object CMakeFiles/pytrtc.dir/src/application/app_centernet.cpp.o [ 14%] Building CXX object CMakeFiles/pytrtc.dir/src/application/app_centernet/centernet.cpp.o [ 14%] Building CXX object CMakeFiles/pytrtc.dir/src/application/app_alphapose/alpha_pose.cpp.o [ 14%] Building CXX object CMakeFiles/pytrtc.dir/src/application/app_bert.cpp.o [ 15%] Building CXX object CMakeFiles/pytrtc.dir/src/application/app_alphapose_old/alpha_pose_old.cpp.o [ 14%] Building CXX object CMakeFiles/pytrtc.dir/src/application/app_arcface/arcface.cpp.o [ 16%] Building CXX object CMakeFiles/pytrtc.dir/src/application/app_dbface.cpp.o [ 17%] Building CXX object CMakeFiles/pytrtc.dir/src/application/app_fall_gcn/fall_gcn.cpp.o [ 17%] Building CXX object CMakeFiles/pytrtc.dir/src/application/app_dbface/dbface.cpp.o [ 17%] Building CXX object CMakeFiles/pro.dir/src/application/app_alphapose.cpp.o [ 18%] Building CXX object CMakeFiles/pro.dir/src/application/app_alphapose/alpha_pose.cpp.o [ 19%] Building CXX object CMakeFiles/pytrtc.dir/src/application/app_fall_recognize.cpp.o [ 20%] Building CXX object CMakeFiles/pytrtc.dir/src/application/app_high_performance.cpp.o [ 21%] Building CXX object CMakeFiles/pro.dir/src/application/app_alphapose_old/alpha_pose_old.cpp.o [ 22%] Building CXX object CMakeFiles/pytrtc.dir/src/application/app_high_performance/alpha_pose_high_perf.cpp.o [ 22%] Building CXX object CMakeFiles/pytrtc.dir/src/application/app_high_performance/high_performance.cpp.o [ 23%] Building CXX object CMakeFiles/pytrtc.dir/src/application/app_high_performance/yolo_high_perf.cpp.o [ 24%] Building CXX object CMakeFiles/pytrtc.dir/src/application/app_lesson.cpp.o [ 24%] Building CXX object CMakeFiles/pytrtc.dir/src/application/app_plugin.cpp.o [ 25%] Building CXX object CMakeFiles/pytrtc.dir/src/application/app_python/interface.cpp.o [ 26%] Building CXX object CMakeFiles/pytrtc.dir/src/application/app_retinaface.cpp.o [ 27%] Building CXX object CMakeFiles/pytrtc.dir/src/application/app_retinaface/retinaface.cpp.o [ 27%] Building CXX object CMakeFiles/pytrtc.dir/src/application/app_scrfd.cpp.o [ 28%] Building CXX object CMakeFiles/pytrtc.dir/src/application/app_scrfd/scrfd.cpp.o [ 29%] Building CXX object CMakeFiles/pytrtc.dir/src/application/app_yolo.cpp.o [ 29%] Building CXX object CMakeFiles/pytrtc.dir/src/application/app_yolo/multi_gpu.cpp.o [ 29%] Building CXX object CMakeFiles/pro.dir/src/application/app_arcface.cpp.o [ 30%] Building CXX object CMakeFiles/pro.dir/src/application/app_arcface/arcface.cpp.o [ 31%] Building CXX object CMakeFiles/pytrtc.dir/src/application/app_yolo/yolo.cpp.o [ 32%] Building CXX object CMakeFiles/pytrtc.dir/src/application/app_yolo_fast.cpp.o [ 33%] Building CXX object CMakeFiles/pytrtc.dir/src/application/app_yolo_fast/yolo_fast.cpp.o [ 33%] Building CXX object CMakeFiles/pytrtc.dir/src/application/app_yolo_gpuptr.cpp.o [ 34%] Building CXX object CMakeFiles/pytrtc.dir/src/application/app_yolo_gpuptr/yolo_gpuptr.cpp.o [ 35%] Building CXX object CMakeFiles/pytrtc.dir/src/application/test_warpaffine.cpp.o [ 35%] Building CXX object CMakeFiles/pytrtc.dir/src/application/test_yolo_map.cpp.o [ 36%] Building CXX object CMakeFiles/pytrtc.dir/src/application/tools/auto_download.cpp.o [ 37%] Building CXX object CMakeFiles/pytrtc.dir/src/application/tools/deepsort.cpp.o [ 38%] Building CXX object CMakeFiles/pytrtc.dir/src/application/tools/zmq_remote_show.cpp.o [ 39%] Building CXX object CMakeFiles/pro.dir/src/application/app_bert.cpp.o [ 39%] Building CXX object CMakeFiles/pytrtc.dir/src/application/tools/zmq_u.cpp.o [ 40%] Building CXX object CMakeFiles/pytrtc.dir/src/direct/direct_classifier.cpp.o [ 41%] Building CXX object CMakeFiles/pro.dir/src/application/app_centernet.cpp.o [ 42%] Building CXX object CMakeFiles/pytrtc.dir/src/direct/direct_mae.cpp.o [ 42%] Building CXX object CMakeFiles/pytrtc.dir/src/direct/direct_unet.cpp.o [ 43%] Building CXX object CMakeFiles/pytrtc.dir/src/direct/direct_yolo.cpp.o [ 44%] Building CXX object CMakeFiles/pytrtc.dir/src/main.cpp.o [ 45%] Building CXX object CMakeFiles/pytrtc.dir/src/tensorRT/builder/trt_builder.cpp.o [ 46%] Building CXX object CMakeFiles/pytrtc.dir/src/tensorRT/common/cuda_tools.cpp.o [ 46%] Building CXX object CMakeFiles/pytrtc.dir/src/tensorRT/common/ilogger.cpp.o [ 46%] Building CXX object CMakeFiles/pytrtc.dir/src/tensorRT/common/trt_tensor.cpp.o [ 47%] Building CXX object CMakeFiles/pytrtc.dir/src/tensorRT/common/json.cpp.o [ 47%] Building CXX object CMakeFiles/pro.dir/src/application/app_centernet/centernet.cpp.o [ 48%] Building CXX object CMakeFiles/pro.dir/src/application/app_dbface.cpp.o [ 49%] Building CXX object CMakeFiles/pytrtc.dir/src/tensorRT/import_lib.cpp.o [ 50%] Building CXX object CMakeFiles/pro.dir/src/application/app_dbface/dbface.cpp.o [ 51%] Building CXX object CMakeFiles/pytrtc.dir/src/tensorRT/infer/trt_infer.cpp.o [ 52%] Building CXX object CMakeFiles/pytrtc.dir/src/tensorRT/onnx/onnx-ml.pb.cpp.o In file included from /home/wh/TensorRT/tensorRT_Pro/src/tensorRT/onnx/onnx-ml.pb.cpp:4: /home/wh/TensorRT/tensorRT_Pro/src/tensorRT/onnx/onnx-ml.pb.h:17:2: error: #error This file was generated by an older version of protoc which is 17 | #error This file was generated by an older version of protoc which is | ^~~~~ compilation terminated due to -Wfatal-errors. make[2]: [CMakeFiles/pytrtc.dir/build.make:748: CMakeFiles/pytrtc.dir/src/tensorRT/onnx/onnx-ml.pb.cpp.o] Error 1 make[2]: Waiting for unfinished jobs.... [ 52%] Building CXX object CMakeFiles/pytrtc.dir/src/tensorRT/onnx/onnx-operators-ml.pb.cpp.o [ 52%] Building CXX object CMakeFiles/pro.dir/src/application/app_fall_gcn/fall_gcn.cpp.o In file included from /home/wh/TensorRT/tensorRT_Pro/src/tensorRT/onnx/onnx-operators-ml.pb.cpp:4: /home/wh/TensorRT/tensorRT_Pro/src/tensorRT/onnx/onnx-operators-ml.pb.h:17:2: error: #error This file was generated by an older version of protoc which is 17 | #error This file was generated by an older version of protoc which is | ^~~~~ compilation terminated due to -Wfatal-errors. make[2]: [CMakeFiles/pytrtc.dir/build.make:762: CMakeFiles/pytrtc.dir/src/tensorRT/onnx/onnx-operators-ml.pb.cpp.o] Error 1 [ 53%] Building CXX object CMakeFiles/pro.dir/src/application/app_fall_recognize.cpp.o [ 54%] Building CXX object CMakeFiles/pro.dir/src/application/app_high_performance.cpp.o [ 55%] Building CXX object CMakeFiles/pro.dir/src/application/app_high_performance/alpha_pose_high_perf.cpp.o [ 55%] Building CXX object CMakeFiles/pro.dir/src/application/app_high_performance/high_performance.cpp.o [ 56%] Building CXX object CMakeFiles/pro.dir/src/application/app_high_performance/yolo_high_perf.cpp.o [ 57%] Building CXX object CMakeFiles/pro.dir/src/application/app_lesson.cpp.o [ 57%] Building CXX object CMakeFiles/pro.dir/src/application/app_plugin.cpp.o [ 58%] Building CXX object CMakeFiles/pro.dir/src/application/app_python/interface.cpp.o [ 59%] Building CXX object CMakeFiles/pro.dir/src/application/app_retinaface.cpp.o [ 60%] Building CXX object CMakeFiles/pro.dir/src/application/app_retinaface/retinaface.cpp.o [ 60%] Building CXX object CMakeFiles/pro.dir/src/application/app_scrfd.cpp.o [ 61%] Building CXX object CMakeFiles/pro.dir/src/application/app_scrfd/scrfd.cpp.o [ 62%] Building CXX object CMakeFiles/pro.dir/src/application/app_yolo.cpp.o [ 62%] Building CXX object CMakeFiles/pro.dir/src/application/app_yolo/multi_gpu.cpp.o [ 63%] Building CXX object CMakeFiles/pro.dir/src/application/app_yolo/yolo.cpp.o [ 64%] Building CXX object CMakeFiles/pro.dir/src/application/app_yolo_fast.cpp.o [ 65%] Building CXX object CMakeFiles/pro.dir/src/application/app_yolo_fast/yolo_fast.cpp.o [ 65%] Building CXX object CMakeFiles/pro.dir/src/application/app_yolo_gpuptr.cpp.o [ 66%] Building CXX object CMakeFiles/pro.dir/src/application/app_yolo_gpuptr/yolo_gpuptr.cpp.o [ 67%] Building CXX object CMakeFiles/pro.dir/src/application/test_warpaffine.cpp.o [ 67%] Building CXX object CMakeFiles/pro.dir/src/application/test_yolo_map.cpp.o [ 68%] Building CXX object CMakeFiles/pro.dir/src/application/tools/auto_download.cpp.o [ 69%] Building CXX object CMakeFiles/pro.dir/src/application/tools/deepsort.cpp.o [ 70%] Building CXX object CMakeFiles/pro.dir/src/application/tools/zmq_remote_show.cpp.o [ 70%] Building CXX object CMakeFiles/pro.dir/src/application/tools/zmq_u.cpp.o [ 71%] Building CXX object CMakeFiles/pro.dir/src/direct/direct_classifier.cpp.o [ 72%] Building CXX object CMakeFiles/pro.dir/src/direct/direct_mae.cpp.o [ 72%] Building CXX object CMakeFiles/pro.dir/src/direct/direct_unet.cpp.o [ 73%] Building CXX object CMakeFiles/pro.dir/src/direct/direct_yolo.cpp.o make[1]: [CMakeFiles/Makefile2:156: CMakeFiles/pytrtc.dir/all] Error 2 make[1]: Waiting for unfinished jobs.... [ 74%] Building CXX object CMakeFiles/pro.dir/src/main.cpp.o [ 75%] Building CXX object CMakeFiles/pro.dir/src/tensorRT/builder/trt_builder.cpp.o [ 75%] Building CXX object CMakeFiles/pro.dir/src/tensorRT/common/cuda_tools.cpp.o [ 76%] Building CXX object CMakeFiles/pro.dir/src/tensorRT/common/ilogger.cpp.o [ 77%] Building CXX object CMakeFiles/pro.dir/src/tensorRT/common/json.cpp.o [ 77%] Building CXX object CMakeFiles/pro.dir/src/tensorRT/common/trt_tensor.cpp.o [ 78%] Building CXX object CMakeFiles/pro.dir/src/tensorRT/import_lib.cpp.o [ 79%] Building CXX object CMakeFiles/pro.dir/src/tensorRT/infer/trt_infer.cpp.o [ 80%] Building CXX object CMakeFiles/pro.dir/src/tensorRT/onnx/onnx-ml.pb.cpp.o In file included from /home/wh/TensorRT/tensorRT_Pro/src/tensorRT/onnx/onnx-ml.pb.cpp:4: /home/wh/TensorRT/tensorRT_Pro/src/tensorRT/onnx/onnx-ml.pb.h:17:2: error: #error This file was generated by an older version of protoc which is 17 | #error This file was generated by an older version of protoc which is | ^~~~~ compilation terminated due to -Wfatal-errors. make[2]: [CMakeFiles/pro.dir/build.make:748: CMakeFiles/pro.dir/src/tensorRT/onnx/onnx-ml.pb.cpp.o] Error 1 make[2]: Waiting for unfinished jobs.... make[1]: [CMakeFiles/Makefile2:130: CMakeFiles/pro.dir/all] Error 2 make: *** [Makefile:91: all] Error 2
Based on your computer configuration: TensorRT: 8.6.1.6 CUDA: 12.1 cuDNN: 8.9.2 Ubuntu 22.04 GPU: RTX 3050 protoc --version: libprotoc 3.20.3