Results 1 to 3 of 3

Thread: Error compile quazip+qt5+win7

  1. #1
    Join Date
    May 2009
    Location
    Gorontalo
    Posts
    200
    Thanks
    20
    Thanked 5 Times in 5 Posts
    Qt products
    Platforms
    Unix/X11 Windows

    Question Error compile quazip+qt5+win7

    I always get an error message when compile my applications using QuaZIP in Windows 7 with Qt5.
    But in Linux (Qt4.8) and Windows 7 (Qt4.7) with same source code is not.

    This is message what I get
    Qt Code:
    1. ./release/mapatkan.o:mapatkan.cpp:(.text+0x259): undefined reference to `_imp___ZN6QuaZipC1ERK7QString'
    2. ./release/mapatkan.o:mapatkan.cpp:(.text+0x27d): undefined reference to `_imp___ZN6QuaZip4openENS_4ModeEP19zlib_filefunc_def_s'
    3. ./release/mapatkan.o:mapatkan.cpp:(.text+0x292): undefined reference to `_imp___ZNK6QuaZip11getZipErrorEv'
    4. ./release/mapatkan.o:mapatkan.cpp:(.text+0x376): undefined reference to `_imp___ZN6QuaZipD1Ev'
    5. ./release/mapatkan.o:mapatkan.cpp:(.text+0x394): undefined reference to `_imp___ZN6QuaZip16setFileNameCodecEPKc'
    6. ./release/mapatkan.o:mapatkan.cpp:(.text+0x3f1): undefined reference to `_imp___ZN10QuaZipFileC1EP6QuaZipP7QObject'
    7. ./release/mapatkan.o:mapatkan.cpp:(.text+0x428): undefined reference to `_imp___ZN6QuaZip13goToFirstFileEv'
    8. ./release/mapatkan.o:mapatkan.cpp:(.text+0x472): undefined reference to `_imp___ZNK10QuaZipFile5atEndEv'
    9. ./release/mapatkan.o:mapatkan.cpp:(.text+0x48f): undefined reference to `_imp___ZN10QuaZipFile5closeEv'
    10. ./release/mapatkan.o:mapatkan.cpp:(.text+0x4db): undefined reference to `_imp___ZN6QuaZip12goToNextFileEv'
    11. ./release/mapatkan.o:mapatkan.cpp:(.text+0x4ff): undefined reference to `_imp___ZNK6QuaZip18getCurrentFileInfoEP14QuaZipFileInfo'
    12. ./release/mapatkan.o:mapatkan.cpp:(.text+0x526): undefined reference to `_imp___ZN10QuaZipFile4openE6QFlagsIN9QIODevice12OpenModeFlagEE'
    13. ./release/mapatkan.o:mapatkan.cpp:(.text+0x550): undefined reference to `_imp___ZNK10QuaZipFile17getActualFileNameEv'
    14. ./release/mapatkan.o:mapatkan.cpp:(.text+0x5a5): undefined reference to `_imp___ZNK10QuaZipFile11getZipErrorEv'
    15. ./release/mapatkan.o:mapatkan.cpp:(.text+0x769): undefined reference to `_imp___ZNK10QuaZipFile4sizeEv'
    16. ./release/mapatkan.o:mapatkan.cpp:(.text+0x9ab): undefined reference to `_imp___ZN6QuaZip5closeEv'
    17. ./release/mapatkan.o:mapatkan.cpp:(.text+0x9b1): undefined reference to `_imp___ZNK6QuaZip11getZipErrorEv'
    18. ./release/mapatkan.o:mapatkan.cpp:(.text+0xa1f): undefined reference to `_imp___ZN10QuaZipFileD1Ev'
    19. ./release/mapatkan.o:mapatkan.cpp:(.text+0xd74): undefined reference to `_imp___ZNK10QuaZipFile11getZipErrorEv'
    20. ./release/mapatkan.o:mapatkan.cpp:(.text+0xfe6): undefined reference to `_imp___ZNK6QuaZip11getZipErrorEv'
    21. ./release/mapatkan.o:mapatkan.cpp:(.text+0x1331): undefined reference to `_imp___ZN6QuaZipD1Ev'
    22. ./release/mapatkan.o:mapatkan.cpp:(.text+0x13d2): undefined reference to `_imp___ZN10QuaZipFileD1Ev'
    23. ./release/mapatkan.o:mapatkan.cpp:(.text+0x1aca): undefined reference to `_imp___ZN13QuaZipNewInfoC1ERK7QStringS2_'
    24. ./release/mapatkan.o:mapatkan.cpp:(.text+0x1b2e): undefined reference to `_imp___ZN10QuaZipFile4openE6QFlagsIN9QIODevice12OpenModeFlagEERK13QuaZipNewInfoPKcjiibiii'
    25. ./release/mapatkan.o:mapatkan.cpp:(.text+0x1c48): undefined reference to `_imp___ZNK10QuaZipFile11getZipErrorEv'
    26. ./release/mapatkan.o:mapatkan.cpp:(.text+0x1f70): undefined reference to `_imp___ZNK10QuaZipFile11getZipErrorEv'
    27. ./release/mapatkan.o:mapatkan.cpp:(.text+0x3186): undefined reference to `_imp___ZN6QuaZipC1ERK7QString'
    28. ./release/mapatkan.o:mapatkan.cpp:(.text+0x31aa): undefined reference to `_imp___ZN6QuaZip4openENS_4ModeEP19zlib_filefunc_def_s'
    29. ./release/mapatkan.o:mapatkan.cpp:(.text+0x31bf): undefined reference to `_imp___ZNK6QuaZip11getZipErrorEv'
    30. ./release/mapatkan.o:mapatkan.cpp:(.text+0x32a3): undefined reference to `_imp___ZN6QuaZipD1Ev'
    31. ./release/mapatkan.o:mapatkan.cpp:(.text+0x32f7): undefined reference to `_imp___ZN10QuaZipFileC1EP6QuaZipP7QObject'
    32. ./release/mapatkan.o:mapatkan.cpp:(.text+0x3380): undefined reference to `_imp___ZN6QuaZip5closeEv'
    33. ./release/mapatkan.o:mapatkan.cpp:(.text+0x3386): undefined reference to `_imp___ZNK6QuaZip11getZipErrorEv'
    34. ./release/mapatkan.o:mapatkan.cpp:(.text+0x3558): undefined reference to `_imp___ZN6QuaZipD1Ev'
    35. c:/qt/qt5.0.2/tools/mingw/bin/../lib/gcc/i686-w64-mingw32/4.7.2/../../../../i686-w64-mingw32/bin/ld.exe: ./release/mapatkan.o: bad reloc address 0x84 in section `.rdata'
    36. collect2.exe: error: ld returned 1 exit status
    37. 23:06:14: The process "C:\Qt\Qt5.0.2\Tools\MinGW\bin\mingw32-make.exe" exited with code 2.
    To copy to clipboard, switch view to plain text mode 

    I put this in my project file

    Qt Code:
    1. unix:LIBS += -lz
    2. win32:INCLUDEPATH += C:/zlib127/include
    3. win32:LIBS += -LC:/zlib127 -lz
    4. #greaterThan(QT_MAJOR_VERSION, 4) {
    5. win32:LIBS += -LC:/Qt/Qt5.0.2/Tools/MinGW/i686-w64-mingw32/lib -lz
    6. #}
    To copy to clipboard, switch view to plain text mode 

    Any suggesstion?

  2. The following user says thank you to wirasto for this useful post:


  3. #2
    Join Date
    May 2013
    Posts
    8
    Thanked 3 Times in 3 Posts
    Qt products
    Qt/Embedded
    Platforms
    Windows

    Default Re: Error compile quazip+qt5+win7

    How to use it. It will paste on run time or compile time

  4. The following user says thank you to zeeshanaayan07 for this useful post:


  5. #3
    Join Date
    Oct 2012
    Posts
    3
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Windows

    Default Re: Error compile quazip+qt5+win7

    Hello,

    I got the same error, but got it running by adding zlib128 and headers for windows:
    INCLUDEPATH += C:/source/zlib128-dll/include
    INCLUDEPATH += C:/source/zlib128-dll/lib
    LIBS += -LC:/source/zlib128-dll/lib -lzdll

Similar Threads

  1. A problem regarding QuaZip
    By zgulser in forum Qt Programming
    Replies: 8
    Last Post: 28th June 2012, 16:40
  2. Replies: 5
    Last Post: 19th January 2012, 06:14
  3. no compile error, but error on run with QMenu QAction
    By sincnarf in forum Qt Programming
    Replies: 4
    Last Post: 4th May 2011, 11:05
  4. QuaZIP and Password?
    By NoRulez in forum Qt Programming
    Replies: 1
    Last Post: 16th December 2008, 09:10
  5. QuaZip + dir inside
    By Axsis in forum Newbie
    Replies: 0
    Last Post: 7th May 2008, 12:28

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.