Problem:
I am trying to integrate an OpenCV project I have been working on into a Qt GUI. That being said, I figured the most simplistic way of going about that was to integrate OpenCV into Qt Creator, rather than continue to work in Visual Studio 2015.
However, I have ran into a problem. My project will not compile because it cannot find the directory for the sub-header files within whatever header file I call upon.
For example, if include highgui.hpp and try to compile my program, it will throw an error stating that there is no such file or directory for opencv2/core/cvdef.h, opencv2/core/base.hpp or opencv2/core/cvstd.hpp.
Attached are pictures to more clearly demonstrate what I'm saying:
Initial Process:
I used CMake to generate the necessary makefiles with MinGW (64-Bit), then compiled them using mingw32-make. After that I ran mingw32-make install to install said files to my system. (FYI, this includes editing the system path variable to the locations of gcc and g++ within the MinGW install folder).
Within QT Creator, I set the following paths in my QT_TEST.pro file:
INCLUDEPATH += C:/Users/micha/Documents/OpenCV/opencv/mingw-release/install/include/opencv2
LIBS += C:/Users/micha/Documents/OpenCV/opencv/mingw-release/install/x64/mingw/bin
LIBS += -lopencv_core310 -lopencv_highgui310 -lopencv_imgproc310
According to every tutorial I have watched, that was all the setup needed.
Things I Have Tried (and Were Unsuccessful):
- Setting my path variables to include locations of header and subheader files.
- Including the path for the subheaders within my QT_TEST.pro file as LIBS and INCLUDEPATH.
- Restarting my computer.
From here I don't know where to go. I would really like to create a nice UI for my project, and Qt seems like the right way to go. Any help you could offer to help fix my problem would be much appreciated.