Compiling OpenCV code on a 64-bit mac

后端 未结 3 1162
时光说笑
时光说笑 2020-12-05 16:23

I recently inherited some OpenCV code. I installed openCV on my mac, built in in XCode, and then compiled and successfully ran my first openCV \"hello world\"-ish program.

3条回答
  •  时光取名叫无心
    2020-12-05 17:20

    You can also have the computer guess you the libraries automatically:

    CFLAGS = `pkg-config --cflags opencv` 
    LDFLAGS = `pkg-config --libs opencv` -lm
    

提交回复
热议问题