Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

KArchive



  • Hello, I have been trying to make use of KArchive on qt but being running into a host of problems but this last error seems not to be going away, already tried some solutions online. https://wiki.qt.io/Karchive_on_windows - is the guide I am using and these are the errors im running into

     Could not set up the appstream test. appstreamcli is missing.
    -- Could NOT find ZLIB (missing: ZLIB_LIBRARY ZLIB_INCLUDE_DIR)
    -- Could NOT find BZip2 (missing: BZIP2_LIBRARIES BZIP2_INCLUDE_DIR)
    -- Could NOT find LibLZMA (missing: LIBLZMA_LIBRARY LIBLZMA_INCLUDE_DIR LIBLZMA_HAS_AUTO_DECODER LIBLZMA_HAS_EASY_ENCODER LIBLZMA_HAS_LZMA_PRESET)
    -- The following OPTIONAL packages have been found:
    
     * Qt5Network
    
    -- The following REQUIRED packages have been found:
    
     * ECM (required version >= 5.61.0), Extra CMake Modules., <https://projects.kde.org/projects/kdesupport/extra-cmake-modules>
     * Qt5Core
    
    -- The following features have been disabled:
    
     * QCH, API documentation in QCH format (for e.g. Qt Assistant, Qt Creator & KDevelop)
    
    -- The following OPTIONAL packages have not been found:
    
     * LibLZMA, Support for xz compressed files and data streams, <http://tukaani.org/xz/>
       Support for xz compressed files and data streams
    
    -- The following RECOMMENDED packages have not been found:
    
     * BZip2, Support for BZip2 compressed files and data streams, <https://sourceware.org/bzip2/>
       Support for BZip2 compressed files and data streams
    
    -- The following REQUIRED packages have not been found:
    
     * ZLIB, Support for gzip compressed files and data streams, <http://www.zlib.net>
       Required by the core KDE libraries and some critical kioslaves
    
    CMake Error at C:/Program Files/CMake/share/cmake-3.15/Modules/FeatureSummary.cmake:457 (message):
      feature_summary() Error: REQUIRED package(s) are missing, aborting CMake
      run.
    Call Stack (most recent call first):
      CMakeLists.txt:109 (feature_summary)
    
    
    CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
    Please set them or make sure they are set and tested correctly in the CMake files:
    ZLIB_INCLUDE_DIR (ADVANCED)
       used as include directory in directory C:/Users/emiol/OneDrive/Desktop/git/karchive
       used as include directory in directory C:/Users/emiol/OneDrive/Desktop/git/karchive
       used as include directory in directory C:/Users/emiol/OneDrive/Desktop/git/karchive
       used as include directory in directory C:/Users/emiol/OneDrive/Desktop/git/karchive
       used as include directory in directory C:/Users/emiol/OneDrive/Desktop/git/karchive
       used as include directory in directory C:/Users/emiol/OneDrive/Desktop/git/karchive
       used as include directory in directory C:/Users/emiol/OneDrive/Desktop/git/karchive
       used as include directory in directory C:/Users/emiol/OneDrive/Desktop/git/karchive
       used as include directory in directory C:/Users/emiol/OneDrive/Desktop/git/karchive/src
       used as include directory in directory C:/Users/emiol/OneDrive/Desktop/git/karchive/src
       used as include directory in directory C:/Users/emiol/OneDrive/Desktop/git/karchive/src
       used as include directory in directory C:/Users/emiol/OneDrive/Desktop/git/karchive/src
       used as include directory in directory C:/Users/emiol/OneDrive/Desktop/git/karchive/src
       used as include directory in directory C:/Users/emiol/OneDrive/Desktop/git/karchive/src
       used as include directory in directory C:/Users/emiol/OneDrive/Desktop/git/karchive/src
       used as include directory in directory C:/Users/emiol/OneDrive/Desktop/git/karchive/autotests
       used as include directory in directory C:/Users/emiol/OneDrive/Desktop/git/karchive/autotests
       used as include directory in directory C:/Users/emiol/OneDrive/Desktop/git/karchive/autotests
       used as include directory in directory C:/Users/emiol/OneDrive/Desktop/git/karchive/autotests
       used as include directory in directory C:/Users/emiol/OneDrive/Desktop/git/karchive/autotests
       used as include directory in directory C:/Users/emiol/OneDrive/Desktop/git/karchive/autotests
       used as include directory in directory C:/Users/emiol/OneDrive/Desktop/git/karchive/autotests
       used as include directory in directory C:/Users/emiol/OneDrive/Desktop/git/karchive/autotests
       used as include directory in directory C:/Users/emiol/OneDrive/Desktop/git/karchive/autotests
       used as include directory in directory C:/Users/emiol/OneDrive/Desktop/git/karchive/autotests
       used as include directory in directory C:/Users/emiol/OneDrive/Desktop/git/karchive/autotests
       used as include directory in directory C:/Users/emiol/OneDrive/Desktop/git/karchive/tests
       used as include directory in directory C:/Users/emiol/OneDrive/Desktop/git/karchive/tests
       used as include directory in directory C:/Users/emiol/OneDrive/Desktop/git/karchive/tests
       used as include directory in directory C:/Users/emiol/OneDrive/Desktop/git/karchive/tests
       used as include directory in directory C:/Users/emiol/OneDrive/Desktop/git/karchive/tests
       used as include directory in directory C:/Users/emiol/OneDrive/Desktop/git/karchive/tests
       used as include directory in directory C:/Users/emiol/OneDrive/Desktop/git/karchive/tests
       used as include directory in directory C:/Users/emiol/OneDrive/Desktop/git/karchive/tests
       used as include directory in directory C:/Users/emiol/OneDrive/Desktop/git/karchive/tests
       used as include directory in directory C:/Users/emiol/OneDrive/Desktop/git/karchive/tests
    ZLIB_LIBRARY
        linked by target "KF5Archive" in directory C:/Users/emiol/OneDrive/Desktop/git/karchive/src
        linked by target "kfiltertest" in directory C:/Users/emiol/OneDrive/Desktop/git/karchive/autotests
    
    -- Configuring incomplete, errors occurred!
    

  • Lifetime Qt Champion

    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


  • Qt Champions 2019

    @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.0

    This 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).



  • 0_1565084011557_Screenshot (26).png
    Here is a screenshot, think I made a mistake the other time, I was using the qt cmd to check for my qt version


  • Lifetime Qt Champion

    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


  • Lifetime Qt Champion

    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
    
    
    

  • Lifetime Qt Champion

    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?


  • Qt Champions 2019

    @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


Log in to reply