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
ifve commented
Dujuniorrr commented
espressif/esp-idf#10496 (comment) look this. work for me
ucfncouch 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.
nopnop2002 commented
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)