LNK1181: cannot open input file 'quazip.lib'
-
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/quazipINCLUDEPATH += $$PWD/../zlib
DEPENDPATH += $$PWD/../zlib -
@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/ -lquazipAnd sorry If I misunderstand what you said I'm a beginner in programming
-
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. -
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. -
Find the library's documentation and follow its instruction to build it.
If you really don't know how, ask your coworkers.