Thu Jul 11, 2019 4:23 pm
There are two ways to install Qt, first is to use apt (sudo apt install qt5-default) and the other one is to download Qt from the official website. Now when you install using the first way Qt is installed by default
and the second way in the home folder (or in /opt if you ran the installed with administrator privileges).
Now I would like to integrate KDE Frameworks 5 in my project so on the official [website] it is suggested to use:
And then you can just include that in your project by
. The problem is I installed Qt using the second way (downloading from the website) and as a result Qt Creator always return Project ERROR: Unknown module(s) in QT: framework. This I believe is because Qt doesn't seem to be aware of the fact that the modules are in /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/ instead it probably looks for them somewhere else.
How do I solve this problem with a permanent solution? I cannot install Qt using `apt` because I would like to use the latest version which usually in not immediately available in the default repositories.
I also tried to build the framework (KSyntaxHighlighting) by myself using kdesrc. using kdesrc-build syntax-highlighting --include-dependencies (see here https://community.kde.org/Get_Involved/ ... esrc-build). Now the build succeded however how I do include the module in Qt Creator? It still says module not found because I assume it's not looking in the correct directory (I can see the build folder in $HOME/kde/build)