<div dir="ltr">Hi everyone!<div><br></div><div>I'm working with Qt and I have to port a Linux application to Android. Basically I need to manage some compressed files (targz, zip, among others) and in Qt Forum they recommend me to use KArchive.</div><div><br></div><div>I started working with Qt only a year ago and I'm still a rookie. I could not find binaries for this library and the source code uses CMake (I was expecting a .pro :/) so it's getting really hard for me to get it work.</div><div><br></div><div>Asking to the same guy that recommended me the library and following his indications I could compile KArchive for Linux and I'm testing it but I can't understand very well the documentation. </div><div><br></div><div>1) Using KTar I could create a tar.gz with two txt files with the following code:</div><div><br></div><div><div>    QString input =   "/home/ferni/QtBuild/KArchiveTest/testTar.txt";</div><div>    QString input2 = "/home/ferni/QtBuild/KArchiveTest/testTar2.txt";</div><div>    QString output = "/home/ferni/QtBuild/KArchiveTest/testTar.tar.gz";</div><div><br></div><div>    KTar archive(output, "application/x-gzip");</div><div>    // Prepare the archive for writing.</div><div>    if (!archive.open(QIODevice::ReadOnly)) {</div><div>         // Failed to open file.</div><div>         return 1;</div><div>     }</div><div><br></div><div>    // Create or open an archive</div><div>    archive.addLocalFile(input, input);</div><div>    archive.addLocalFile(input2, input2);</div><div>    archive.close();</div></div><div><br></div><div>My question is: how can I decompress the file that I created?</div><div><br></div><div>2) Is there a building tutorial to compile KArchive for Android? If not, can someone guide me to do this or just shared the binaries for Android? I tried to create a .pro file and include the sources but I got many errors about missing files :/</div><div><br></div><div>Thanks in advance!</div><div>Fernando</div></div>