[ WARN:0@1.416] global net_impl.cpp:174 setUpNet DNN module was not built with CUDA backend; switching to CPU

Thank you @berak for the reply.
in YOLOv8-CPP-Inference. folder I executed the below commands with success without any errors.

mkdir build
cd build
cmake …
make

And then to execute the command :
./Yolov8CPPInference

Output of each command given below:
cmake …
CMake Warning (dev) at CMakeLists.txt:9 (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.

– Configuring done (0.3s)
– Generating done (0.0s)
– Build files have been written to: /var/www/iot/OpenCV_CPP/cpp_test/ultralytics/examples/YOLOv8-CPP-Inference/build
neeraj@neeraj-VivoBook-15-ASUS-Laptop-X507UF:/var/www/iot/OpenCV_CPP/cpp_test/ultralytics/examples/YOLOv8-CPP-Inference/build$ make
[100%] Built target Yolov8CPPInference

I refer below link for the above steps.

Thanks and regards,
Neeraj Dhekale

1 Like