Building OpenCV for the ESP32 error
Posted: Fri Jan 05, 2024 11:01 am
I want to use OpenCV locally on the ESP and the IDF Component Registry has a OpenCV component. I can create projects from the examples, however I can't build them. I get this error:
I ran "idf.py add-dependency "espressif/opencv^4.7.0~3" in the project and that brought the OpenCV managed components in. But it still doesn't work. The install button on the Registry page also doesn't seem to do anything. Any suggestions?
(If it helps the only feature I really want from OpenCV is simpleBlobDetection, Resize, bilateralFilter, Filter2D and fastNlMeansDenoising).
Code: Select all
CMake Error at C:/Users/williamb/.espressif/tools/cmake/3.24.0/share/cmake-3.24/Modules/ExternalProject.cmake:2471:EVAL:2 (add_custom_command):
Error evaluating generator expression:
$<TARGET_PROPERTY:idf::opencv,INCLUDE_DIRECTORIES>
Target "idf::opencv" not found.
Call Stack (most recent call first):
C:/Users/williamb/.espressif/tools/cmake/3.24.0/share/cmake-3.24/Modules/ExternalProject.cmake:2471 (cmake_language)
C:/Users/williamb/.espressif/tools/cmake/3.24.0/share/cmake-3.24/Modules/ExternalProject.cmake:3699:EVAL:2 (ExternalProject_Add_Step)
C:/Users/williamb/.espressif/tools/cmake/3.24.0/share/cmake-3.24/Modules/ExternalProject.cmake:3699 (cmake_language)
C:/Users/williamb/.espressif/tools/cmake/3.24.0/share/cmake-3.24/Modules/ExternalProject.cmake:4170 (_ep_add_configure_command)
managed_components/espressif__opencv/CMakeLists.txt:109 (ExternalProject_Add)
I ran "idf.py add-dependency "espressif/opencv^4.7.0~3" in the project and that brought the OpenCV managed components in. But it still doesn't work. The install button on the Registry page also doesn't seem to do anything. Any suggestions?
(If it helps the only feature I really want from OpenCV is simpleBlobDetection, Resize, bilateralFilter, Filter2D and fastNlMeansDenoising).