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:
/usr/include/qt5/QtX11Extras/QX11Info
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.
Cheers
Ton.
Post a reply to this message
|