esp32-opencv icon indicating copy to clipboard operation
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!

Open ifve opened this issue 2 years ago • 3 comments

ifve avatar Jun 13 '22 09:06 ifve

https://github.com/espressif/esp-idf/issues/10496#issuecomment-1373187029 look this. work for me

Dujuniorrr avatar May 14 '23 19:05 Dujuniorrr

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

ucfncouch avatar Jun 22 '23 11:06 ucfncouch

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)

nopnop2002 avatar Jan 21 '24 23:01 nopnop2002