quazip:windows ming32w-make错误

时间:2015-02-05 04:14:10

标签: qt mingw32 quazip

我正在尝试使用QT5.4在wdinwso 7下编译quazip源。

我尝试编译低于VS 2013,但找不到rc.exe文件。我确保rc.exe和dll都在vs2013和vs2010的工具包和SDK文件夹中。

所以我遵循了这个:http://www.maefloresta.com/portal/quazip

当我这样做时,我收到以下错误消息,并且不确定从哪里开始查看。

C:\development\QTCommon\quazip>mingw32-make
cd quazip\ && ( if not exist Makefile C:\development\QT\5.4\5.4\msvc2013_64\bin\
qmake.exe C:\development\QTCommon\quazip\quazip\quazip.pro -o Makefile ) && ming
w32-make -f Makefile
mingw32-make[1]: Entering directory 'C:/development/QTCommon/quazip/quazip'
mingw32-make -f Makefile.Release
mingw32-make[2]: Entering directory 'C:/development/QTCommon/quazip/quazip'
cl -c -nologo -Zm200 -Zc:wchar_t -FS -O2 -MD -Zc:strictStrings -W3 -w34100 -w341
89 -GR -EHsc -DUNICODE -DWIN32 -DQUAZIP_BUILD -DNOMINMAX -DQT_NO_DEBUG -DQT_CORE
_LIB -DNDEBUG -I"." -I"C:\development\QT\5.4\5.4\msvc2013_64\Src\qtbase\src\3rdp
arty\zlib" -I"C:\development\QT\5.4\5.4\msvc2013_64\include" -I"C:\development\Q
T\5.4\5.4\msvc2013_64\include\QtCore" -I"release" -I"C:\development\QT\5.4\5.4\m
svc2013_64\mkspecs\win32-msvc2013" -Forelease\ @<<
<< was unexpected at this time.
Makefile.Release:116: recipe for target '{release}.cpp{release\}.obj' failed
mingw32-make[2]: *** [{release}.cpp{release\}.obj] Error 255
mingw32-make[2]: Leaving directory 'C:/development/QTCommon/quazip/quazip'
Makefile:34: recipe for target 'release' failed
mingw32-make[1]: *** [release] Error 2
mingw32-make[1]: Leaving directory 'C:/development/QTCommon/quazip/quazip'
Makefile:41: recipe for target 'sub-quazip-make_first' failed
mingw32-make: *** [sub-quazip-make_first] Error 2

从quazip找到的makefile.release行:

####### Implicit rules

.SUFFIXES: .c .cpp .cc .cxx

{release}.cpp{release\}.obj::
    $(CXX) -c $(CXXFLAGS) $(INCPATH) -Forelease\ @<<
    $<
    <<

对于make或vs 2013问题,任何帮助都会很棒。

干杯。

1 个答案:

答案 0 :(得分:0)

如果您按照提供的链接(http://www.maefloresta.com/portal/quazip)中的说明操作,可能会出现问题的根源,因为您没有正确构建QuaZIP库,或者因为您的包含路径或库路径错误。

如果你想要一个完整的例子,如何在Qt中使用QuaZIP,我建议你查看我的博客的这个条目:http://www.antonioborondo.com/2014/10/22/zipping-and-unzipping-files-with-qt/