Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Unzip zip files
Forum Updated to NodeBB v4.3 + New Features

Unzip zip files

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 1.7k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sashapont
    wrote on last edited by
    #1

    I try to use qzipreader_p.h, qzipwriter_p.h and qzip.cpp from qt/src/gui/text on Macx for unzip files.

    When I add this files to project i see error :-1: error: symbol(s) not found for architecture x86_64

    How i can fix this?

    1 Reply Last reply
    0
    • JohanSoloJ Offline
      JohanSoloJ Offline
      JohanSolo
      wrote on last edited by
      #2

      I'd guess you're missing the x64 version of the library. Either you're missing the file, or you're missing the linker option to use the lib when creating the binary.

      `They did not know it was impossible, so they did it.'
      -- Mark Twain

      1 Reply Last reply
      0
      • S Offline
        S Offline
        sashapont
        wrote on last edited by
        #3

        I found example for unarchive

        ZipReader cZip(QLatin1String("/Volumes/Macintosh 2/1.zip"));
          if (cZip.exists()) {
              qDebug() << "Number of items in the zip archive =" << cZip.count();
              foreach (ZipReader::FileInfo info, cZip.fileInfoList()) {
                  if(info.isFile)
                      qDebug() << "File:" << info.filePath << info.size;
                  else if (info.isDir)
                      qDebug() << "Dir:" << info.filePath;
                  else
                      qDebug() << "SymLink:" << info.filePath;
              }
              cZip.extractAll("/Volumes/Macintosh 2/1/");
          }
        

        I see list of files in console, but the files is not extracts :((((((

        What is wrong?

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved