object-detection-inference
object-detection-inference copied to clipboard
CMake Error at build/_deps/inferenceengines-src/CMakeLists.txt:22 (list): list sub-command FIND requires three arguments.
CMake Error at build/_deps/inferenceengines-src/CMakeLists.txt:22 (list): list sub-command FIND requires three arguments.
Fix CmakeLists.txt line22
list(FIND SUPPORTED_BACKENDS ${DEFAULT_BACKEND} SUPPORTED_BACKEND_INDEX )
to
list(FIND SUPPORTED_BACKENDS ${DEFAULT_BACKEND} SUPPORTED_BACKEND_INDEX -1) in fetch dependcy
when you compile project found this problem.
Hi,
Thanks for the report. It seems there's a bug in the propagation of the DEFAULT_BACKEND argument from the root project to the subproject inferenceengines. I will try to fix it as soon as I can.
In the meantime, as a workaround, you can hardcode the backend you need in the following file:
build/_deps/inferenceengines-src/CMakeLists.txt
At line 16, replace the line:
set(DEFAULT_BACKEND ${DEFAULT_BACKEND})
with:
set(DEFAULT_BACKEND "<YOUR_BACKEND>")
Replace <YOUR_BACKEND> with one of the supported backends(based on what you have installed), such as:
"ONNX_RUNTIME""LIBTORCH""LIBTENSORFLOW""OPENCV_DNN""TENSORRT""OPENVINO"
Let me know if you need further assistance!