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. Link problem again
QtWS25 Last Chance

Link problem again

Scheduled Pinned Locked Moved General and Desktop
2 Posts 1 Posters 1.2k 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.
  • L Offline
    L Offline
    luca72
    wrote on last edited by
    #1

    Hello i'm under linux and i need to use Archive - An Archive library for Qt, reading the instruction that are:
    Linking to the library
    By default, Archive is built as a static library and needs to be linked in to your application.
    To do this set the ARCHIVEHOME environment variable to the directory containing the src/ directory and include the file archive.pri in your project file:
    file:
    @include( archive.pri)@
    i have set the ARCHIVEHOME printenv return:
    @ARCHIVEHOME=/home/luca/Scrivania/Luca/Pacchetti_C++/archive_1_0_6/@
    than in the pro file i have add:
    @include( archive.pri)@

    But i can't do:
    @#include <Archive.h>@

    What is missing

    Thanks
    Luca

    1 Reply Last reply
    0
    • L Offline
      L Offline
      luca72
      wrote on last edited by
      #2

      Hello i heve solved using this:
      @LIBS += -L/home/luca/Scrivania/Luca/Pacchetti_C++/archive_1_0_6/lib -lbarchive
      INCLUDEPATH += /home/luca/Scrivania/Luca/Pacchetti_C++/archive_1_0_6/include@

      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