dyld not loaded Reason: image not found libopencv_core.2.4.dylib

前端 未结 3 1548
小鲜肉
小鲜肉 2021-01-04 14:08

I\'m still quite new to Objective C and Xcode, but I just finished a small app that uses the openCV libopencv_core.2.4.2.dylib.

When I went to open the

3条回答
  •  Happy的楠姐
    2021-01-04 14:24

    Since other answers are not clear enough;

    Assume your dylib files are located in /usr/local/opt/opencv3/lib

    sudo ln -s /usr/local/opt/opencv3/lib/*.dylib /usr/local/lib
    

    will solve this problem. Be aware that /usr/lib is protected by system in MacOS, thus you should use /usr/local/lib.

提交回复
热议问题