I'm a bit surprised that your qt-include directories are in /opt, but that
should not be a problem.
Could you run the next command:
pkg-config --cflags Qt5Core
My output here is:
-DQT_CORE_LIB -I/usr/include/qt5/QtCore -I/usr/include/qt5
and my include file is located at:
So now the compiler knows how to find that file.
The problem with cmake is that you never know the command line of the compiler,
so you don't have a clue about the include directories it's using.
Post a reply to this message