INCLUDEPATH in qmake project file doesn't work

前端 未结 12 2077
梦如初夏
梦如初夏 2020-12-06 09:53

I\'ve got a problem with include in a qmake project. In my .pro file I\'ve got:

INCLUDEPATH += \"C:\\OpenCV\\build\\include\"

and in my cpp

12条回答
  •  爱一瞬间的悲伤
    2020-12-06 10:24

    I have the same question, before building or running, you should qmake(Build=>qmake) it.

    My configurations for INCLUDEPATH:

    INCLUDEPATH+=D:\opencv\opencv\build\include
    INCLUDEPATH+=D:\opencv\opencv\build\include\opencv
    INCLUDEPATH+=D:\opencv\opencv\build\include\opencv2
    

提交回复
热议问题