error when compile opencv in qt applying tbb

寵の児 提交于 2020-01-06 20:04:38

问题


I Have the following issue when compiling opencv project in qt applying tbb

dyld: Library not loaded: libtbb.dylib
Referenced from: /usr/local/lib/libopencv_core.2.4.dylib
Reason: image not found
The program has unexpectedly finished.

Can any friend tell me how to solve this problem?


回答1:


Oh, I suddenly solved this problem by copy the libtbb.dylib to /usr/local/lib/ folder.

Thank




回答2:


The problem is when you are running your application it can't find the libraries to load. You need to set the DYLD_LIBRARY_PATH environment variable to point to the directory containing this library in your application scheme.

Product > Edit Scheme > Environment Variables



来源:https://stackoverflow.com/questions/10982736/error-when-compile-opencv-in-qt-applying-tbb

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!