esp32-opencv
esp32-opencv copied to clipboard
undefined reference to `__wrap_longjmp',when i use imread() in example/esp_opencv_tests and when i start `idf.py build`,it will break and come out that,how can i fix or whether if I cmake n incomplete library?I'm looking forward to hearing from you.thanks!
https://github.com/espressif/esp-idf/issues/10496#issuecomment-1373187029 look this. work for me
**Dujuniorrr ** commented May 14, 2023 •
I cannot figure out how to get this working. I have tried doing what this comment says and it is not working. Have you found an alternative method? I am basically trying to use imwrite() to save an image and running into this undefined reference to _wrap_longjmp problem.
You need to change main/CMakeLists.txt.
#add_prebuilt_library(libpng "opencv/3rdparty/liblibpng.a")
add_prebuilt_library(libpng "opencv/3rdparty/liblibpng.a" PRIV_REQUIRES esp_rom)