I got the following error when doing yolov4 cmake
how can i solve it?
cmake ..
-- The C compiler identification is GNU 7.5.0
-- The CXX compiler identification is GNU 7.5.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- 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 "11.1")
-- Find CUDA include at /usr/local/cuda/include
-- Find CUDA libraries: /usr/local/cuda/lib64/libcudart_static.a;-lpthread;dl;/usr/lib/x86_64-linux-gnu/librt.so
-- Found TensorRT headers at TENSORRT_INCLUDE_DIR-NOTFOUND
-- Find TensorRT libs: TENSORRT_LIBRARY_INFER-NOTFOUND;TENSORRT_LIBRARY_ONNXPARSER-NOTFOUND
-- Found OpenCV: /usr (found version "3.2.0")
-- Find OpenCV include at /usr/include;/usr/include/opencv
-- Find OpenCV libraries: opencv_calib3d;opencv_core;opencv_features2d;opencv_flann;opencv_highgui;opencv_imgcodecs;opencv_imgproc;opencv_ml;opencv_objdetect;opencv_photo;opencv_shape;opencv_stitching;opencv_superres;opencv_video;opencv_videoio;opencv_videostab;opencv_viz;opencv_aruco;opencv_bgsegm;opencv_bioinspired;opencv_ccalib;opencv_datasets;opencv_dpm;opencv_face;opencv_freetype;opencv_fuzzy;opencv_hdf;opencv_line_descriptor;opencv_optflow;opencv_phase_unwrapping;opencv_plot;opencv_reg;opencv_rgbd;opencv_saliency;opencv_stereo;opencv_structured_light;opencv_surface_matching;opencv_text;opencv_ximgproc;opencv_xobjdetect;opencv_xphoto
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
TENSORRT_INCLUDE_DIR
used as include directory in directory /home/aiserver/coding/GitHub/tonnx/tensorrt_inference/Yolov4
used as include directory in directory /home/aiserver/coding/GitHub/tonnx/tensorrt_inference/Yolov4
used as include directory in directory /home/aiserver/coding/GitHub/tonnx/tensorrt_inference/Yolov4
TENSORRT_LIBRARY_INFER
linked by target "Yolov4_trt" in directory /home/aiserver/coding/GitHub/tonnx/tensorrt_inference/Yolov4
TENSORRT_LIBRARY_ONNXPARSER
linked by target "Yolov4_trt" in directory /home/aiserver/coding/GitHub/tonnx/tensorrt_inference/Yolov4
-- Configuring incomplete, errors occurred!
See also "/home/aiserver/coding/GitHub/tonnx/tensorrt_inference/Yolov4/build/CMakeFiles/CMakeOutput.log".
See also "/home/aiserver/coding/GitHub/tonnx/tensorrt_inference/Yolov4/build/CMakeFiles/CMakeError.log".
Hello,
I got the following error when doing yolov4 cmake how can i solve it?
cmake .. -- The C compiler identification is GNU 7.5.0 -- The CXX compiler identification is GNU 7.5.0 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- 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 "11.1") -- Find CUDA include at /usr/local/cuda/include -- Find CUDA libraries: /usr/local/cuda/lib64/libcudart_static.a;-lpthread;dl;/usr/lib/x86_64-linux-gnu/librt.so -- Found TensorRT headers at TENSORRT_INCLUDE_DIR-NOTFOUND -- Find TensorRT libs: TENSORRT_LIBRARY_INFER-NOTFOUND;TENSORRT_LIBRARY_ONNXPARSER-NOTFOUND -- Found OpenCV: /usr (found version "3.2.0") -- Find OpenCV include at /usr/include;/usr/include/opencv -- Find OpenCV libraries: opencv_calib3d;opencv_core;opencv_features2d;opencv_flann;opencv_highgui;opencv_imgcodecs;opencv_imgproc;opencv_ml;opencv_objdetect;opencv_photo;opencv_shape;opencv_stitching;opencv_superres;opencv_video;opencv_videoio;opencv_videostab;opencv_viz;opencv_aruco;opencv_bgsegm;opencv_bioinspired;opencv_ccalib;opencv_datasets;opencv_dpm;opencv_face;opencv_freetype;opencv_fuzzy;opencv_hdf;opencv_line_descriptor;opencv_optflow;opencv_phase_unwrapping;opencv_plot;opencv_reg;opencv_rgbd;opencv_saliency;opencv_stereo;opencv_structured_light;opencv_surface_matching;opencv_text;opencv_ximgproc;opencv_xobjdetect;opencv_xphoto CMake Error: The following variables are used in this project, but they are set to NOTFOUND. Please set them or make sure they are set and tested correctly in the CMake files: TENSORRT_INCLUDE_DIR used as include directory in directory /home/aiserver/coding/GitHub/tonnx/tensorrt_inference/Yolov4 used as include directory in directory /home/aiserver/coding/GitHub/tonnx/tensorrt_inference/Yolov4 used as include directory in directory /home/aiserver/coding/GitHub/tonnx/tensorrt_inference/Yolov4 TENSORRT_LIBRARY_INFER linked by target "Yolov4_trt" in directory /home/aiserver/coding/GitHub/tonnx/tensorrt_inference/Yolov4 TENSORRT_LIBRARY_ONNXPARSER linked by target "Yolov4_trt" in directory /home/aiserver/coding/GitHub/tonnx/tensorrt_inference/Yolov4
-- Configuring incomplete, errors occurred! See also "/home/aiserver/coding/GitHub/tonnx/tensorrt_inference/Yolov4/build/CMakeFiles/CMakeOutput.log". See also "/home/aiserver/coding/GitHub/tonnx/tensorrt_inference/Yolov4/build/CMakeFiles/CMakeError.log".
Thank you.