Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
QMake module path for KArchive
dridk2 last edited by dridk2
I installed KArchive on my system using apt-get install.
And I m using a local Qt installed from the website package.
So, to use KArchive, I need to add in my qmake :
Qt += KArchive
Because, I m not using Qt from my system but from a custom installed /home/boby/
I have copied the module definition from system to my Qt dir installation :
cp /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_KArchive.pri ~/Linux_data/Qt/5.7/gcc_64/mkspecs/modules
So now it works fine ! But it's pretty ugly. Is there a variable environement or something else to do this better ?
VRonin last edited by
You can just do the linking manually...
INCLUDEPATH += "$$(KDELIBPATH)/include/KF5/KArchive" LIBS += -L"$$(KDELIBPATH)/lib" -lKF5Archive
instead of $$(KDELIBPATH) use the one where you installed KArchive
dridk2 last edited by
@VRonin perfect ! Thx