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. KArchive
QtWS25 Last Chance

KArchive

Scheduled Pinned Locked Moved Solved General and Desktop
13 Posts 3 Posters 900 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
    Abdulmueez
    wrote on 5 Aug 2019, 17:45 last edited by
    #1

    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!
    
    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 5 Aug 2019, 20:12 last edited by
      #2

      Hi,

      What compiler are you using ?
      What version of Qt have you installed ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • A Offline
        A Offline
        Abdulmueez
        wrote on 5 Aug 2019, 21:23 last edited by
        #3

        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

        J 1 Reply Last reply 6 Aug 2019, 04:35
        0
        • A Abdulmueez
          5 Aug 2019, 21:23

          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

          J Offline
          J Offline
          jsulm
          Lifetime Qt Champion
          wrote on 6 Aug 2019, 04:35 last edited by
          #4

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

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          1
          • A Offline
            A Offline
            Abdulmueez
            wrote on 6 Aug 2019, 09:35 last edited by
            #5

            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

            1 Reply Last reply
            0
            • S Offline
              S Offline
              SGaist
              Lifetime Qt Champion
              wrote on 6 Aug 2019, 20:45 last edited by
              #6

              Did you get zlib built with MinGW then ?

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0
              • A Offline
                A Offline
                Abdulmueez
                wrote on 6 Aug 2019, 21:00 last edited by
                #7

                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

                1 Reply Last reply
                0
                • S Offline
                  S Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on 6 Aug 2019, 21:08 last edited by
                  #8

                  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.

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply
                  0
                  • A Offline
                    A Offline
                    Abdulmueez
                    wrote on 6 Aug 2019, 21:14 last edited by
                    #9

                    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
                    
                    
                    
                    1 Reply Last reply
                    0
                    • S Offline
                      S Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on 6 Aug 2019, 21:25 last edited by
                      #10

                      Right it's a C library, however it looks like built for 32bit and you are using a 64bit build of Qt.

                      Interested in AI ? www.idiap.ch
                      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                      1 Reply Last reply
                      1
                      • A Offline
                        A Offline
                        Abdulmueez
                        wrote on 6 Aug 2019, 21:44 last edited by
                        #11

                        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?

                        J 1 Reply Last reply 7 Aug 2019, 04:40
                        0
                        • A Abdulmueez
                          6 Aug 2019, 21:44

                          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?

                          J Offline
                          J Offline
                          jsulm
                          Lifetime Qt Champion
                          wrote on 7 Aug 2019, 04:40 last edited by
                          #12

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

                          https://forum.qt.io/topic/113070/qt-code-of-conduct

                          1 Reply Last reply
                          1
                          • A Offline
                            A Offline
                            Abdulmueez
                            wrote on 8 Aug 2019, 11:36 last edited by
                            #13

                            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

                            1 Reply Last reply
                            4

                            10/13

                            6 Aug 2019, 21:25

                            • Login

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