如何使用libarchive for unrar?

时间:2018-06-13 18:52:41

标签: unrar libarchive

我想使用libarchive在我的应用程序中提取.rar文件。 我使用mingw32并按照说明进行操作 https://discourse.gohugo.io/t/how-to-fetch-the-defaultcontentlanguage-setting-in-a-template/12397 并且可以获得libarchive_static.a以获取静态链接。 我安装了bzip2包 https://github.com/libarchive/libarchive/wiki/BuildInstructions 并添加了静态库,如

LIBS += -L$$PWD/libarchive/ -larchive_static LIBS += -L$$PWD/libarchive/ -lbz2

现在我可以提取.bz2文件了。 但我无法弄清楚要使用什么来提取.rar文件。 cmake-gui显示了BZIP2_INCLUDE_DIR和ENABLE_BZip2复选框选项,但它没有显示任何关于rar的内容。

0 个答案:

没有答案
相关问题