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

前端 未结 5 932
执笔经年
执笔经年 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:36

    In my case, all it took was to copy libippicv.a from the OpenCV SDK to /usr/local/lib:

    sudo cp 3rdparty/ippicv/unpack/ippicv_lnx/lib/intel64/libippicv.a /usr/local/lib/
    

提交回复
热议问题