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. LNK1181: cannot open input file 'quazip.lib'
Forum Updated to NodeBB v4.3 + New Features

LNK1181: cannot open input file 'quazip.lib'

Scheduled Pinned Locked Moved Solved General and Desktop
7 Posts 2 Posters 798 Views
  • 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.
  • A Offline
    A Offline
    Anadeha
    wrote on last edited by
    #1

    The company where I am doing my internship wants to use quazip to zip and unzip files. The problem is that according to the error quazip.lib could not be opened. Except that when I look at my project it doesn't exist. I tried to install a more recent version of quazip but it doesn't change anything. I don't know what to do, can someone help me please ?

    Error: LNK1181: cannot open input file 'quazip.lib'
    Complie Output:
    11:33:57: The process "C:\bin\Qt\Tools\QtCreator\bin\jom.exe" ended with code 2.
    Error during compilation/deployment of the EconnectorMaster project (kit: Desktop)
    When executing step "Make"

    Here is the Quazip part of my .pro file:

    win32 {

    ## Windows common build here
    
    !contains(QMAKE_TARGET.arch, x86_64) {
        message("x86 build")
    win32:CONFIG(release, debug|release): LIBS +=    -L$$PWD/../quazip/dist/lib/32/ -lquazip
    else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/../quazip/dist/lib/32/ -lquazip
    
    } else {
        message("x86_64 build")
    
        ## Windows x64 (64bit) specific build here
    win32:CONFIG(release, debug|release): LIBS +=    -L$$PWD/../../quazip/dist/lib/64/ -lquazip
    else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/../../quazip/dist/lib/64/ -lquazip
    }
    

    }

    INCLUDEPATH += $$PWD/../quazip/quazip
    DEPENDPATH += $$PWD/../quazip/quazip

    INCLUDEPATH += $$PWD/../zlib
    DEPENDPATH += $$PWD/../zlib

    1 Reply Last reply
    0
    • B Offline
      B Offline
      Bonnie
      wrote on last edited by
      #2

      Why do you have $$PWD/../ for x86 and $$PWD/../../ for x64?
      Are those paths correct?

      A 1 Reply Last reply
      0
      • B Bonnie

        Why do you have $$PWD/../ for x86 and $$PWD/../../ for x64?
        Are those paths correct?

        A Offline
        A Offline
        Anadeha
        wrote on last edited by
        #3

        @Bonnie I don't find the folder dist in the folder quazip (which is on that part of the code)

        win32:CONFIG(release, debug|release): LIBS += -L$$PWD/../quazip/dist/lib/32/ -lquazip
        else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/../quazip/dist/lib/32/ -lquazip

        And sorry If I misunderstand what you said I'm a beginner in programming

        1 Reply Last reply
        0
        • B Offline
          B Offline
          Bonnie
          wrote on last edited by Bonnie
          #4

          If you don't have that folder, why do you add it as the lib dir?
          Of course it will tell you the file cannot be opened since it doesn't exist!
          Do you even have quazip.lib?
          If the project doesn't provide precompiled libraries then you must builld your own before linking other projects to it.

          A 1 Reply Last reply
          1
          • B Bonnie

            If you don't have that folder, why do you add it as the lib dir?
            Of course it will tell you the file cannot be opened since it doesn't exist!
            Do you even have quazip.lib?
            If the project doesn't provide precompiled libraries then you must builld your own before linking other projects to it.

            A Offline
            A Offline
            Anadeha
            wrote on last edited by
            #5

            @Bonnie I don't have quazip.lib but I don't know how to do to create one

            1 Reply Last reply
            0
            • B Offline
              B Offline
              Bonnie
              wrote on last edited by
              #6

              Find the library's documentation and follow its instruction to build it.
              If you really don't know how, ask your coworkers.

              A 1 Reply Last reply
              2
              • B Bonnie

                Find the library's documentation and follow its instruction to build it.
                If you really don't know how, ask your coworkers.

                A Offline
                A Offline
                Anadeha
                wrote on last edited by
                #7

                @Bonnie Okay Thank you

                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