This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Building and using KDE Frameworks in Qt Creator

Tags: None
(comma "," separated)
daljit1997
Registered Member
Posts
1
Karma
0
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
/usr/lib
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][1] it is suggested to use:

Code: Select all
sudo apt install framework


And then you can just include that in your project by
QT += framework
. 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)

[1]: https://techbase.kde.org/KDE_Frameworks


Bookmarks



Who is online

Registered users: Bing [Bot], Evergrowing, Google [Bot], rblackwell