Important: Please read the Qt Code of Conduct -

QT5 KArchive Not Found

  • I am trying to use KArchive to zip a file.
    I can get the example file to work if I use CMAKE, but QT is unable to find it the .pro file comments say

    Show how to use KArchive using qmake

    Set $QMAKEPATH to your KArchive install prefix if this is not found.

    QT += KArchive
    SOURCES += main.cpp

    How do I set the $QMAKEPATH

  • Lifetime Qt Champion


    @export QMAKEPATH=/path/to/your/karchive@

    in your console where you will run cmake

Log in to reply