object-detection-inference icon indicating copy to clipboard operation
object-detection-inference copied to clipboard

CMake Error at build/_deps/inferenceengines-src/CMakeLists.txt:22 (list): list sub-command FIND requires three arguments.

Open M4D-AI opened this issue 11 months ago • 2 comments

CMake Error at build/_deps/inferenceengines-src/CMakeLists.txt:22 (list): list sub-command FIND requires three arguments.

M4D-AI avatar Dec 17 '24 08:12 M4D-AI

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.

M4D-AI avatar Dec 17 '24 08:12 M4D-AI

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!

olibartfast avatar Dec 17 '24 09:12 olibartfast