Where does opencv install it's libs in ubuntu

后端 未结 4 1574
鱼传尺愫
鱼传尺愫 2021-02-06 00:02

I have ubuntu 10 installed. I installed all the opencv packages I could find in the software center. I expect that it installs some .lib files somewhere that I can reference i

4条回答
  •  故里飘歌
    2021-02-06 00:24

    As stated by Eric

    pkg-config --libs opencv
    

    will return libs to be included and if it is about the include file paths

    it is /usr/include/opencv and if you want it to be automatically added just add following to command along with the command by Eric --cflags to above command.

    Eg. let the file to be compiled be test.c then whole command will be

    g++ test.c `pkg-config --libs --cflags opencv`
    

    hope it helps.

提交回复
热议问题