Qt5.1/Qt5.2 + Mac OS 10.9 (Mavericks) + XCode 5.0.2, Undefined symbols for architecture x86_64

前端 未结 3 2133
遥遥无期
遥遥无期 2020-12-05 09:00

Environment : Mac OS 10.9 + Qt5.1/Qt5.2 + OpenCV2.4.7 + XCode(5.0.2)

I can compile the following program via terminal

g++ -L/usr/local/lib -lopencv_         


        
3条回答
  •  离开以前
    2020-12-05 09:12

    The problem is not with the system. On Mac you just have to include imgcodecs header and include the respective lib files also. This will solve all the trouble you had.

    -lopencv_imgcodecs

提交回复
热议问题