Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QMake module path for KArchive

QMake module path for KArchive

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 1.3k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    dridk2
    wrote on last edited by dridk2
    #1

    Hi,
    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 ?

    1 Reply Last reply
    0
    • VRoninV Offline
      VRoninV Offline
      VRonin
      wrote on last edited by
      #2

      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

      "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
      ~Napoleon Bonaparte

      On a crusade to banish setIndexWidget() from the holy land of Qt

      D 1 Reply Last reply
      2
      • VRoninV VRonin

        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

        D Offline
        D Offline
        dridk2
        wrote on last edited by
        #3

        @VRonin perfect ! Thx

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved