我尝试从 opencv-2.4.8/apps/haarfinder 编译一些文件,但出现以下错误:
ld: library not found for -llibtbb.dylib
注意文件名中的双 l
。
我试着按照这里的教程: http://coding-robin.de/2013/07/22/train-your-own-opencv-haar-classifier.html
在我读到的评论中:
After many, many hours of pondering and looking around. I decided to take it as a spelling error in some file so I decided to look into opencv files and search for that "-llibtbb" and finally found it. I corrected it to only "libtbb" and its finally working.
遗憾的是他没有提到那是什么文件。 我尝试使用 sublime 的“在文件中查找”,但我找不到它。
其他人可以看看或以其他方式帮助我吗?
就像我知道 libtbb.dylib
的存储位置一样,我也许可以复制它并自己添加拼写错误。
请帮忙,我迷路了:)
最佳答案
假设 libtbb.dylib
在 /usr/local/lib/libtbb.dylib
而 opencv.pc
在 /usr/local/lib/pkgconfig
(位置可能因安装 tbb
和 pkg-config
的位置而异)
然后编辑/usr/local/lib/pkgconfig/opencv.pc
,将-llibtbb.dylib
改为/usr/local/lib/libtbb。动态库
关于opencv - ld : library not found for -llibtbb. 动态库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23363678/