我正在寻找一些使用QuaZIP在Qt中压缩文件的示例。我试过这段代码,但它不能工作。我收到了一个分段错误。
JlCompress::compressFiles(zipfilename,filenames);//zipfilename is a qstring and filenames a QStringList我应该在压缩文件之前打开它们吗?
发布于 2016-04-19 15:34:52
问题解决了,我删除了quazip安装,然后手动安装:
I downloaded the source code from http://sourceforge.net/projects/quazip/files/latest/download
tar xvfz quazip-0.7.1.tar.gz
cd quazip-0.7.1
qmake "PREFIX=/usr/local" "LIBS+=-lz"
make
make install之后,我使用apt get安装了libquazip-qt5-*包。最后,我使用以下命令链接了我的pro文件中的quazip
LIBS += -lquazip -lzhttps://stackoverflow.com/questions/36695754
复制相似问题