Skip to content

Compiling

Antony jr edited this page Dec 14, 2017 · 3 revisions

QMake Configuration

Adding the HEADERS and LIBS will make QMake compile your program with QArchive , you need
to have libarchive too.

In your project file

 LIBS += -larchive 
 HEADERS += /path/to/QArchive/QArchive.hpp

In your source files

Include the QArchive in the source files which you need to use libarchive.

 #include "/path/to/QArchive/QArchive.hpp"

Look into the examples in the examples tree on how this is done using qmake! -> Extractor Example

Clone this wiki locally