2015-02-05 3 views
0

QT5.4를 사용하여 wdinwso 7에서 quazip 소스를 컴파일하려고합니다.quazip : windows ming32w-make error

언더 VS 2013 컴파일을 시도했지만 rc.exe 파일을 찾을 수 없습니다. 나는 rc.exe와 dll이 vs2013과 vs2010 모두를위한 키트와 SDK 폴더에 있는지 확인했습니다.

그래서 난이 다음 : http://www.maefloresta.com/portal/quazip

내가 이렇게하면, 나는 다음과 같은 오류 메시지가, 찾고 어디서부터 시작 모르겠습니다. 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 

makefile.release 라인 : 어떤 도움도 2013 문제에 대 만들거나 하나를 위해, 좋은 것

####### Implicit rules 

.SUFFIXES: .c .cpp .cc .cxx 

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

.

건배.

+1

귀하의 mingw32-메이크업은 msvc2013 디렉토리에서 찾습니다. 너의 문제 야. mingw로 컴파일한다면 헤더와 라이브러리를 사용해야한다. 하지만 이해가 안되네, Qt보다 mingw를 별도로 설치하셨습니까? 편집 : 그렇다면 quazip.pro에 include 및 lib 디렉토리를 정의해야 할 수도 있습니다. –

답변

0

제공되는 링크 (http://www.maefloresta.com/portal/quazip)의 지침을 따르면 아마도 QuaZIP 라이브러리를 제대로 빌드하지 않았거나 포함 경로 또는 라이브러리 경로가 잘못 되었기 때문에 문제의 원인이 발생할 수 있습니다. 당신이 Qt를에 QuaZIP를 사용하는 방법에 대해 완벽하게 작동하는 전체 예제를 원하는 경우

, 난 당신이 내 블로그의이 항목을 확인하는 것이 좋습니다 : http://www.antonioborondo.com/2014/10/22/zipping-and-unzipping-files-with-qt/

+0

예제는 Linux 환경에서 가장 잘 작동합니다. 블로그가 더 좋은 예입니다. @Antonio Borondo – Arnej65

+0

@ Arnej65이 예제는 Windows 및 Linux 환경에서 동일하게 작동합니다. 사실, 내 블로그에있는 예제는 Windows에서 실행됩니다. 둘 사이의 유일한 차이점은 경로를 다른 라이브러리에 쓰는 형식이어야합니다. –