About Makefile can't find libraries

前端 未结 2 650
死守一世寂寞
死守一世寂寞 2020-12-04 04:02

The Exception is here:

g++ -L/usr/local/lib -I./include -I. -lopencv_core -lopencv_highgui -lopencv_imgproc main.o ColorTransfer.o
main.o: I         


        
2条回答
  •  -上瘾入骨i
    2020-12-04 04:36

    In your folder:

     /lib
    

    You have to be sure that there are:

     opencv_core.so
     opencv_highgui.so
     opencv_imgproc.so
    

    And that your LD_LIBRARY_PATH point to this folder. Otherwise, you've to export it:

    export LD_LIBRARY_PATH=/lib
    

    Have you download opencv sources or precompiled? Have you configured dynamic linker run-time bindings?

    sudo ldconfig
    

    edit

    Otherwise, try to check out this soloution!

提交回复
热议问题