我在 qmake 项目中包含问题。在我的 .pro 文件中,我有:
INCLUDEPATH += "C:\OpenCV\build\include"
在我的 cpp 中:
#include <opencv\cv.h>
编译器指示错误:
无法打开包含文件:'opencv\cv.h':没有这样的文件或目录
但是如果我在我的 cpp 中写这个:
#include "C:\OpenCV\build\include\opencv\cv.h"
有用!
我从 Qt Creator 中构建项目。我究竟做错了什么?