PDA

View Full Version : how to extract .tar and lz4 file's in Qt 5 ?



jocker.fantom
1st January 2019, 18:19
hello friends.
i have 2 file's with .tar and lz4 format. i want extract and compress with this formats. please help me, i can't work

ChrisW67
1st January 2019, 21:46
There is nothing in the Qt libraries for directly dealing with tar files or LZ4 compression. On the other hand, nothing in Qt stops you from linking libarchive (https://libarchive.org/) and the C code reference LZ4 implementation (https://lz4.github.io/lz4/) (there are certainly other options) or using QProcess to run standalone utilities to handle the files.

jocker.fantom
1st January 2019, 22:04
sir you can help me how to use libarchive for work with .tar file?

ChrisW67
2nd January 2019, 08:02
sir you can help me how to use libarchive for work with .tar file?

https://github.com/libarchive/libarchive/wiki/Examples
http://doc.qt.io/qt-5/qmake-project-files.html#declaring-other-libraries