Home > Net >  i am getting this error while making a build for opencv project on mac os (intel chip)
i am getting this error while making a build for opencv project on mac os (intel chip)

Time:02-08

i am running any code(over xcodes)even "hello world" and i am getting the same error all the time how can i fix this ?????

dyld: Library not loaded: /usr/local/opt/opencv/lib/libopencv_stitching.4.5.dylib
  Referenced from: /Users/khaledzbidat/Library/Developer/Xcode/DerivedData/OpencvCourse_-hhaivjyxxrgltdhgizcoxxkwobzu/Build/Products/Debug/OpencvCourse_
  Reason: no suitable image found.  Did find:
    /usr/local/opt/opencv/lib/libopencv_stitching.4.5.dylib: code signature in (/usr/local/opt/opencv/lib/libopencv_stitching.4.5.dylib) not valid for use in process using Library Validation: mapped file has no cdhash, completely unsigned? Code has to be at least ad-hoc signed.
    /usr/local/lib/libopencv_stitching.4.5.dylib: code signature in (/usr/local/lib/libopencv_stitching.4.5.dylib) not valid for use in process using Library Validation: mapped file has no cdhash, completely unsigned? Code has to be at least ad-hoc signed.
    /usr/local/Cellar/opencv/4.5.4_4/lib/libopencv_stitching.4.5.4.dylib: code signature in (/usr/local/Cellar/opencv/4.5.4_4/lib/libopencv_stitching.4.5.4.dylib) not valid for use in process using Library Validation: mapped file has no cdhash, completely unsigned? Code has to be at least ad-hoc signed.
(lldb) 

CodePudding user response:

It looks like you need to enter image description here

Then, hopefully, your library will load and the app will run.

  •  Tags:  
  • Related