ld: library not found for -llibtbb.dylib

后端 未结 5 2343
忘掉有多难
忘掉有多难 2021-02-14 08:41

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

Notic

5条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-02-14 09:47

    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)

    Then edit /usr/local/lib/pkgconfig/opencv.pc, change -llibtbb.dylib to /usr/local/lib/libtbb.dylib

提交回复
热议问题