ld:找不到 -llibtbb.dylib 的库 [英] ld: library not found for -llibtbb.dylib

查看:101
本文介绍了ld:找不到 -llibtbb.dylib 的库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试从 opencv-2.4.8/apps/haarfinder 编译一些文件,但出现以下错误:

I try to compile some files from the opencv-2.4.8/apps/haarfinder but i get the following error:

ld: library not found for -llibtbb.dylib

注意文件名中的双 l.

我尝试按照此处的教程进行操作:http://coding-robin.de/2013/07/22/train-your-own-opencv-haar-classifier.html

I try to follow the tutorial here: http://coding-robin.de/2013/07/22/train-your-own-opencv-haar-classifier.html

在我读到的评论中:

经过许多小时的思考和环顾四周.我决定将其视为某个文件中的拼写错误,所以我决定调查一下opencv 文件并搜索-llibtbb"并最终找到它.一世将其更正为仅libtbb"并且它终于可以工作了.

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 的在文件中查找",但找不到.

Sadly he didn't mention what file that was. I tried with sublime 'Find in files' but i can't find it.

其他人可以看看或以其他方式帮助我吗?就像我知道 libtbb.dylib 的存储位置一样,我可以复制它并自己添加拼写错误.

Can someone else take a look or help me in another way? Like if i know where libtbb.dylib is stored i might be able to duplicate it and add the spelling error myself.

请帮忙,我迷路了:)

推荐答案

假设 libtbb.dylib/usr/local/lib/libtbb.dylib 中>opencv.pc 位于 /usr/local/lib/pkgconfig (位置可能因您安装 tbbpkg-config 的位置而异)

Suppose libtbb.dylib is in /usr/local/lib/libtbb.dylib and opencv.pc is in /usr/local/lib/pkgconfig (The location may vary depending on where you install tbb and pkg-config)

然后编辑/usr/local/lib/pkgconfig/opencv.pc,将-llibtbb.dylib改为/usr/local/lib/libtbb.动态库

这篇关于ld:找不到 -llibtbb.dylib 的库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆