很抱歉,我没有这方面的经验,但我已经在互联网上搜索了一段时间,以了解如何使用Qt5.6在Win 10上。我将非常感谢关于如何构建Quazip并在Qt Creator中使用它的步骤列表。
到目前为止,我尝试下载Quazip,并将pri文件包括在我的.pro文件中。
include(quazip-0.7.2/quazip.pri)然后,我替换了以下每一个实例:
#include "zlib.h"和
#include <zlib.h>至
#include <QtZlib/zlib.h>在我这样做后,我有许多编译器警告和一些错误。
我的错误是:
QuaZIODevice::staticMetaObject': definition of dllimport static data member not allowed
QuaGzipFile::staticMetaObject': definition of dllimport static data member not allowed
QuaZipFile::staticMetaObject': definition of dllimport static data member not allowed我所有的15项警告包括:
inconsistent dll linkage我非常感谢在这件事上提供任何帮助。
发布于 2016-07-19 17:20:18
A引自文件:
默认情况下,QuaZIP编译为DLL/SO,但您还有其他选项:
这似乎就是您要做的事情,所以您应该将DEFINES += QUAZIP_STATIC添加到您的.pro文件中。
https://stackoverflow.com/questions/38463163
复制相似问题