joachimBurket / esp32-opencv

Shrinked OpenCV for ESP32

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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!

ifve opened this issue · comments

commented

**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)