KArchive
-
Hi,
What compiler are you using ?
What version of Qt have you installed ? -
For the Qt version- Qt 5.12.2(MSVC 2015 64-bit)
for the compiler , on android- Android Clang and on the desktop -mingw7.3.0 -
For the Qt version- Qt 5.12.2(MSVC 2015 64-bit)
for the compiler , on android- Android Clang and on the desktop -mingw7.3.0@abdulmueez said in KArchive:
For the Qt version- Qt 5.12.2(MSVC 2015 64-bit)
for the compiler , on android- Android Clang and on the desktop -mingw7.3.0This doesn't make sense as you can't use Qt 5.12.2(MSVC 2015 64-bit) with CLang or MinGW as compiler!
For Qt 5.12.2(MSVC 2015 64-bit) you need MSVC 2015 64-bit compiler (2017 should work as well). -
Here is a screenshot, think I made a mistake the other time, I was using the qt cmd to check for my qt version -
Did you get zlib built with MinGW then ?
-
Hmmm, the guide said nothing about that, am I to follow the same steps as the build for the extra cmake modules?
Sorry if it sounds like a beginner question -
You should at least check that the architecture of your zlib dll matches the architecture of the Qt version you are using.
Otherwise, check the zlib sources for build instructions.
-
Checked through the readme, it's also using mingw
Compiler: i686-w64-mingw32-gcc (GCC) 4.5.3 Library: mingw64-i686-runtime/headers: 3.0b_svn5747-1 Build commands: i686-w64-mingw32-gcc -c -DASMV contrib/asm686/match.S i686-w64-mingw32-gcc -c -DASMINF -I. -O3 contrib/inflate86/inffas86.c make -f win32/Makefile.gcc PREFIX=i686-w64-mingw32- LOC="-mms-bitfields -DASMV -DASMINF" OBJA="inffas86.o match.o" Finally, from VS commandline (VS2005 or higher): lib -machine:X86 -name:zlib1.dll -def:zlib.def -out:zdll.lib
-
Right it's a C library, however it looks like built for 32bit and you are using a 64bit build of Qt.
-
Went directly to the website to get a version that uses 64 bit, didn't seem to be such. Checked their FAQ and found this
Will zlib work on a 64-bit machine? Yes. It has been tested on 64-bit machines, and has no dependence on any data types being limited to 32-bits in length.
So, should I replace the version I have with the latest one on their site or I should keep on using the one from the guide?
-
Went directly to the website to get a version that uses 64 bit, didn't seem to be such. Checked their FAQ and found this
Will zlib work on a 64-bit machine? Yes. It has been tested on 64-bit machines, and has no dependence on any data types being limited to 32-bits in length.
So, should I replace the version I have with the latest one on their site or I should keep on using the one from the guide?
@abdulmueez said in KArchive:
So, should I replace the version I have with the latest one on their site or I should keep on using the one from the guide?
You have to use a 64bit version, so get one, or build it by yourself if there is no official build.
-
So, I just succeeded in getting rid of the error by using the following
mkdir C:\Builds\zlib; cd C:\Builds\zlib cmake -G "Visual Studio 16 2019" -A x64 D:\Downloads\zlib-1.2.8\ cmake --build .
and then going to my cmake gui to include the zlib directory and the bzip2 directory.
Also, the versions from the guide I was using was outdated, I had to download new versions of ZLIB and BZIP2