compiling code with opencv - /usr/bin/ld: cannot find -lippicv

前端 未结 5 923
执笔经年
执笔经年 2020-12-16 21:56

When compiling some code with opencv I get this error

# g++ txtbin-03.1.cpp -o txtbin `pkg-config opencv --cflags --libs`
/usr/bin/ld: cannot fi         


        
5条回答
  •  南方客
    南方客 (楼主)
    2020-12-16 22:35

    libippicv.a is a third party library, so you need to explicitly provide it during compilation or make it part of your execution environment.

    It is located in ~/OpenCV/opencv-3.1.0/3rdparty/ippicv/unpack/ippicv_lnx/lib/intel64/

    Also, provide cmake -DWITH_IPP=ON at the time of Makefile generation.

提交回复
热议问题