ld: library not found for -llibtbb.dylib

后端 未结 5 2340
忘掉有多难
忘掉有多难 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:35

    Old question, but I needed it, or rather I found this better solution - and this may help other searchers.

    Follow the instructions in the github description, rather than that blog post: https://github.com/mrnugget/opencv-haar-classifier-training

    This corrects the spelling error in the command line:

    g++ `pkg-config --libs --cflags opencv | sed 's/libtbb\.dylib/tbb/'`\
      -I. -o mergevec mergevec.cpp\
      cvboost.cpp cvcommon.cpp cvsamples.cpp cvhaarclassifier.cpp\
      cvhaartraining.cpp\
      -lopencv_core -lopencv_calib3d -lopencv_imgproc -lopencv_highgui -lopencv_objdetect
    

提交回复
热议问题