Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. 3rd Party Software
  4. Quazip and Qt6 mingw

Quazip and Qt6 mingw

Scheduled Pinned Locked Moved Solved 3rd Party Software
18 Posts 4 Posters 3.5k Views 1 Watching
  • 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 apaczenko1993

    @JonB You mean in environment variables??
    Actual no, but i add, this: C:\Qt\6.5.3\mingw_64\bin
    Is it ok?

    JonBJ Offline
    JonBJ Offline
    JonB
    wrote on last edited by
    #7

    @apaczenko1993
    -DCMAKE_C_COMPILER=/pathto/gcc is not an environment variable (though you might be able to do that, I don't know)m it's a define to cmake (and I don't know whether it puts that into environment or just uses it directly).

    But I think the references said you could put mingw_64\bin on your PATH. "Is it ok?" --- I don't know, does it make things work for you?!

    1 Reply Last reply
    0
    • A apaczenko1993

      @JonB You mean in environment variables??
      Actual no, but i add, this: C:\Qt\6.5.3\mingw_64\bin
      Is it ok?

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #8

      @apaczenko1993 You should simply build in the terminal provided by your Qt installation - you will find it in Windows Start menu. In that case everything is preconfigured to build with MinGW.

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

      1 Reply Last reply
      0
      • A Offline
        A Offline
        apaczenko1993
        wrote on last edited by
        #9

        Ok , so i tried again with setting compiler and now i get this

        Setting up environment for Qt usage...
        
        C:\Qt\6.5.3\mingw_64>cd c:\zlib-1.3.1\build
        
        c:\zlib-1.3.1\build>cmake -S .. -B . -DCMAKE_INSTALL_PREFIX=C:\zlib-1.3.1\build\final -DCMAKE_CXX_COMPILER=C:\Qt/Tools\mingw1120_64\g++.exe -DCMAKE_C_COMPILER=C:\Qt\Tools\mingw1120_64\gcc.exe
        CMake Error at CMakeLists.txt:4 (project):
          Running
        
           'nmake' '-?'
        
          failed with:
        
           Nie można odnaleźć określonego pliku
        
        
        -- Configuring incomplete, errors occurred!
        
        c:\zlib-1.3.1\build>
        

        I have in zlib folder file named configure but i dont know how use it

        JonBJ 1 Reply Last reply
        0
        • A apaczenko1993

          Ok , so i tried again with setting compiler and now i get this

          Setting up environment for Qt usage...
          
          C:\Qt\6.5.3\mingw_64>cd c:\zlib-1.3.1\build
          
          c:\zlib-1.3.1\build>cmake -S .. -B . -DCMAKE_INSTALL_PREFIX=C:\zlib-1.3.1\build\final -DCMAKE_CXX_COMPILER=C:\Qt/Tools\mingw1120_64\g++.exe -DCMAKE_C_COMPILER=C:\Qt\Tools\mingw1120_64\gcc.exe
          CMake Error at CMakeLists.txt:4 (project):
            Running
          
             'nmake' '-?'
          
            failed with:
          
             Nie można odnaleźć określonego pliku
          
          
          -- Configuring incomplete, errors occurred!
          
          c:\zlib-1.3.1\build>
          

          I have in zlib folder file named configure but i dont know how use it

          JonBJ Offline
          JonBJ Offline
          JonB
          wrote on last edited by JonB
          #10

          @apaczenko1993
          I do not have MinGW. You have set C:\Qt/Tools\mingw1120_64\g++.exe. Are you sure that is the right directory? It does not have a bin\ sub-sirectory?

          1 Reply Last reply
          0
          • A Offline
            A Offline
            apaczenko1993
            wrote on last edited by
            #11

            Of course has, my mistake. But still same result :/

            c:\zlib-1.3.1\build>cmake -S .. -B . -DCMAKE_INSTALL_PREFIX=C:\zlib-1.3.1\build\final -DCMAKE_CXX_COMPILER=C:\Qt\Tools\mingw1120_64\bin\g++.exe -DCMAKE_C_COMPILER=C:\Qt\Tools\mingw1120_64\bin\gcc.exe
            CMake Error at CMakeLists.txt:4 (project):
              Running
            
               'nmake' '-?'
            
              failed with:
            
               Nie można odnaleźć określonego pliku
            
            
            -- Configuring incomplete, errors occurred!
            
            c:\zlib-1.3.1\build>
            
            Christian EhrlicherC 1 Reply Last reply
            0
            • A apaczenko1993

              Of course has, my mistake. But still same result :/

              c:\zlib-1.3.1\build>cmake -S .. -B . -DCMAKE_INSTALL_PREFIX=C:\zlib-1.3.1\build\final -DCMAKE_CXX_COMPILER=C:\Qt\Tools\mingw1120_64\bin\g++.exe -DCMAKE_C_COMPILER=C:\Qt\Tools\mingw1120_64\bin\gcc.exe
              CMake Error at CMakeLists.txt:4 (project):
                Running
              
                 'nmake' '-?'
              
                failed with:
              
                 Nie można odnaleźć określonego pliku
              
              
              -- Configuring incomplete, errors occurred!
              
              c:\zlib-1.3.1\build>
              
              Christian EhrlicherC Offline
              Christian EhrlicherC Offline
              Christian Ehrlicher
              Lifetime Qt Champion
              wrote on last edited by Christian Ehrlicher
              #12

              @apaczenko1993 Please do what @jsulm told you to set up the compiler environment correctly. Also start over with a clean build dir and pass -G "MinGW Makefiles" to the cmake call and don't pass MAKE_CXX_COMPILER and CMAKE_C_COMPILER

              Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
              Visit the Qt Academy at https://academy.qt.io/catalog

              A 1 Reply Last reply
              0
              • Christian EhrlicherC Christian Ehrlicher

                @apaczenko1993 Please do what @jsulm told you to set up the compiler environment correctly. Also start over with a clean build dir and pass -G "MinGW Makefiles" to the cmake call and don't pass MAKE_CXX_COMPILER and CMAKE_C_COMPILER

                A Offline
                A Offline
                apaczenko1993
                wrote on last edited by
                #13

                @Christian-Ehrlicher Thank you! So first step complet, next quazip

                A 1 Reply Last reply
                0
                • A apaczenko1993

                  @Christian-Ehrlicher Thank you! So first step complet, next quazip

                  A Offline
                  A Offline
                  apaczenko1993
                  wrote on last edited by
                  #14

                  @apaczenko1993 Now during compiling quazip i have this error

                  C:\quazip-master\build>cmake -G "MinGW Makefiles" c:\quazip-master -DZLIB_LIBRARY="C:\zlib-1.3.1\build\release"  -DZLIB_INCLUDE_DIR="C:\zlib-1.3.1\"
                  -- The C compiler identification is GNU 11.2.0
                  -- The CXX compiler identification is GNU 11.2.0
                  -- Detecting C compiler ABI info
                  -- Detecting C compiler ABI info - done
                  -- Check for working C compiler: C:/Qt/Tools/mingw1120_64/bin/gcc.exe - skipped
                  -- Detecting C compile features
                  -- Detecting C compile features - done
                  -- Detecting CXX compiler ABI info
                  -- Detecting CXX compiler ABI info - done
                  -- Check for working CXX compiler: C:/Qt/Tools/mingw1120_64/bin/c++.exe - skipped
                  -- Detecting CXX compile features
                  -- Detecting CXX compile features - done
                  -- Performing Test CMAKE_HAVE_LIBC_PTHREAD
                  -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
                  -- Found Threads: TRUE
                  -- Performing Test HAVE_STDATOMIC
                  -- Performing Test HAVE_STDATOMIC - Success
                  -- Found WrapAtomic: TRUE
                  -- Found Qt 6.5.2: C:/Qt/6.5.2/mingw_64
                  -- Using Qt version 6
                  -- Found ZLIB: C:\zlib-1.3.1\build\release (found version "1.3.1")
                  -- Fetching bzip2 https://sourceware.org/git/bzip2.git master
                  -- Could NOT find BZip2 (missing: BZIP2_LIBRARIES BZIP2_INCLUDE_DIR)
                  -- Configuring done (10.2s)
                  -- Generating done (0.1s)
                  -- Build files have been written to: C:/quazip-master/build
                  
                  C:\quazip-master\build>cmake --build . --target install
                  [  3%] Automatic MOC for target bzip2
                  [  3%] Built target bzip2_autogen
                  [  7%] Building CXX object CMakeFiles/bzip2.dir/bzip2_autogen/mocs_compilation.cpp.obj
                  [ 11%] Building C object CMakeFiles/bzip2.dir/lib/bzip2/blocksort.c.obj
                  [ 14%] Building C object CMakeFiles/bzip2.dir/lib/bzip2/bzlib.c.obj
                  [ 18%] Building C object CMakeFiles/bzip2.dir/lib/bzip2/compress.c.obj
                  [ 22%] Building C object CMakeFiles/bzip2.dir/lib/bzip2/crctable.c.obj
                  [ 25%] Building C object CMakeFiles/bzip2.dir/lib/bzip2/decompress.c.obj
                  [ 29%] Building C object CMakeFiles/bzip2.dir/lib/bzip2/huffman.c.obj
                  [ 33%] Building C object CMakeFiles/bzip2.dir/lib/bzip2/randtable.c.obj
                  [ 37%] Linking CXX static library libbzip2.a
                  [ 37%] Built target bzip2
                  [ 40%] Automatic MOC for target QuaZip
                  [ 40%] Built target QuaZip_autogen
                  [ 44%] Building CXX object quazip/CMakeFiles/QuaZip.dir/QuaZip_autogen/mocs_compilation.cpp.obj
                  [ 48%] Building C object quazip/CMakeFiles/QuaZip.dir/unzip.c.obj
                  [ 51%] Building C object quazip/CMakeFiles/QuaZip.dir/zip.c.obj
                  [ 55%] Building CXX object quazip/CMakeFiles/QuaZip.dir/JlCompress.cpp.obj
                  [ 59%] Building CXX object quazip/CMakeFiles/QuaZip.dir/qioapi.cpp.obj
                  [ 62%] Building CXX object quazip/CMakeFiles/QuaZip.dir/quaadler32.cpp.obj
                  [ 66%] Building CXX object quazip/CMakeFiles/QuaZip.dir/quachecksum32.cpp.obj
                  [ 70%] Building CXX object quazip/CMakeFiles/QuaZip.dir/quacrc32.cpp.obj
                  [ 74%] Building CXX object quazip/CMakeFiles/QuaZip.dir/quagzipfile.cpp.obj
                  [ 77%] Building CXX object quazip/CMakeFiles/QuaZip.dir/quaziodevice.cpp.obj
                  [ 81%] Building CXX object quazip/CMakeFiles/QuaZip.dir/quazip.cpp.obj
                  [ 85%] Building CXX object quazip/CMakeFiles/QuaZip.dir/quazipdir.cpp.obj
                  [ 88%] Building CXX object quazip/CMakeFiles/QuaZip.dir/quazipfile.cpp.obj
                  [ 92%] Building CXX object quazip/CMakeFiles/QuaZip.dir/quazipfileinfo.cpp.obj
                  [ 96%] Building CXX object quazip/CMakeFiles/QuaZip.dir/quazipnewinfo.cpp.obj
                  [100%] Linking CXX shared library libquazip1-qt6.dll
                  C:/Qt/Tools/mingw1120_64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find C:zlib-1.3.1buildrelease: No such file or directory
                  collect2.exe: error: ld returned 1 exit status
                  mingw32-make.exe[2]: *** [quazip\CMakeFiles\QuaZip.dir\build.make:341: quazip/libquazip1-qt6.dll] Error 1
                  mingw32-make.exe[1]: *** [CMakeFiles\Makefile2:154: quazip/CMakeFiles/QuaZip.dir/all] Error 2
                  mingw32-make.exe: *** [Makefile:135: all] Error 2
                  
                  C:\quazip-master\build>
                  
                  Christian EhrlicherC 1 Reply Last reply
                  0
                  • A apaczenko1993

                    @apaczenko1993 Now during compiling quazip i have this error

                    C:\quazip-master\build>cmake -G "MinGW Makefiles" c:\quazip-master -DZLIB_LIBRARY="C:\zlib-1.3.1\build\release"  -DZLIB_INCLUDE_DIR="C:\zlib-1.3.1\"
                    -- The C compiler identification is GNU 11.2.0
                    -- The CXX compiler identification is GNU 11.2.0
                    -- Detecting C compiler ABI info
                    -- Detecting C compiler ABI info - done
                    -- Check for working C compiler: C:/Qt/Tools/mingw1120_64/bin/gcc.exe - skipped
                    -- Detecting C compile features
                    -- Detecting C compile features - done
                    -- Detecting CXX compiler ABI info
                    -- Detecting CXX compiler ABI info - done
                    -- Check for working CXX compiler: C:/Qt/Tools/mingw1120_64/bin/c++.exe - skipped
                    -- Detecting CXX compile features
                    -- Detecting CXX compile features - done
                    -- Performing Test CMAKE_HAVE_LIBC_PTHREAD
                    -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
                    -- Found Threads: TRUE
                    -- Performing Test HAVE_STDATOMIC
                    -- Performing Test HAVE_STDATOMIC - Success
                    -- Found WrapAtomic: TRUE
                    -- Found Qt 6.5.2: C:/Qt/6.5.2/mingw_64
                    -- Using Qt version 6
                    -- Found ZLIB: C:\zlib-1.3.1\build\release (found version "1.3.1")
                    -- Fetching bzip2 https://sourceware.org/git/bzip2.git master
                    -- Could NOT find BZip2 (missing: BZIP2_LIBRARIES BZIP2_INCLUDE_DIR)
                    -- Configuring done (10.2s)
                    -- Generating done (0.1s)
                    -- Build files have been written to: C:/quazip-master/build
                    
                    C:\quazip-master\build>cmake --build . --target install
                    [  3%] Automatic MOC for target bzip2
                    [  3%] Built target bzip2_autogen
                    [  7%] Building CXX object CMakeFiles/bzip2.dir/bzip2_autogen/mocs_compilation.cpp.obj
                    [ 11%] Building C object CMakeFiles/bzip2.dir/lib/bzip2/blocksort.c.obj
                    [ 14%] Building C object CMakeFiles/bzip2.dir/lib/bzip2/bzlib.c.obj
                    [ 18%] Building C object CMakeFiles/bzip2.dir/lib/bzip2/compress.c.obj
                    [ 22%] Building C object CMakeFiles/bzip2.dir/lib/bzip2/crctable.c.obj
                    [ 25%] Building C object CMakeFiles/bzip2.dir/lib/bzip2/decompress.c.obj
                    [ 29%] Building C object CMakeFiles/bzip2.dir/lib/bzip2/huffman.c.obj
                    [ 33%] Building C object CMakeFiles/bzip2.dir/lib/bzip2/randtable.c.obj
                    [ 37%] Linking CXX static library libbzip2.a
                    [ 37%] Built target bzip2
                    [ 40%] Automatic MOC for target QuaZip
                    [ 40%] Built target QuaZip_autogen
                    [ 44%] Building CXX object quazip/CMakeFiles/QuaZip.dir/QuaZip_autogen/mocs_compilation.cpp.obj
                    [ 48%] Building C object quazip/CMakeFiles/QuaZip.dir/unzip.c.obj
                    [ 51%] Building C object quazip/CMakeFiles/QuaZip.dir/zip.c.obj
                    [ 55%] Building CXX object quazip/CMakeFiles/QuaZip.dir/JlCompress.cpp.obj
                    [ 59%] Building CXX object quazip/CMakeFiles/QuaZip.dir/qioapi.cpp.obj
                    [ 62%] Building CXX object quazip/CMakeFiles/QuaZip.dir/quaadler32.cpp.obj
                    [ 66%] Building CXX object quazip/CMakeFiles/QuaZip.dir/quachecksum32.cpp.obj
                    [ 70%] Building CXX object quazip/CMakeFiles/QuaZip.dir/quacrc32.cpp.obj
                    [ 74%] Building CXX object quazip/CMakeFiles/QuaZip.dir/quagzipfile.cpp.obj
                    [ 77%] Building CXX object quazip/CMakeFiles/QuaZip.dir/quaziodevice.cpp.obj
                    [ 81%] Building CXX object quazip/CMakeFiles/QuaZip.dir/quazip.cpp.obj
                    [ 85%] Building CXX object quazip/CMakeFiles/QuaZip.dir/quazipdir.cpp.obj
                    [ 88%] Building CXX object quazip/CMakeFiles/QuaZip.dir/quazipfile.cpp.obj
                    [ 92%] Building CXX object quazip/CMakeFiles/QuaZip.dir/quazipfileinfo.cpp.obj
                    [ 96%] Building CXX object quazip/CMakeFiles/QuaZip.dir/quazipnewinfo.cpp.obj
                    [100%] Linking CXX shared library libquazip1-qt6.dll
                    C:/Qt/Tools/mingw1120_64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find C:zlib-1.3.1buildrelease: No such file or directory
                    collect2.exe: error: ld returned 1 exit status
                    mingw32-make.exe[2]: *** [quazip\CMakeFiles\QuaZip.dir\build.make:341: quazip/libquazip1-qt6.dll] Error 1
                    mingw32-make.exe[1]: *** [CMakeFiles\Makefile2:154: quazip/CMakeFiles/QuaZip.dir/all] Error 2
                    mingw32-make.exe: *** [Makefile:135: all] Error 2
                    
                    C:\quazip-master\build>
                    
                    Christian EhrlicherC Offline
                    Christian EhrlicherC Offline
                    Christian Ehrlicher
                    Lifetime Qt Champion
                    wrote on last edited by
                    #15

                    You have msys in your PATH - remove it and start over with a clean build dir.

                    Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
                    Visit the Qt Academy at https://academy.qt.io/catalog

                    A 1 Reply Last reply
                    0
                    • Christian EhrlicherC Christian Ehrlicher

                      You have msys in your PATH - remove it and start over with a clean build dir.

                      A Offline
                      A Offline
                      apaczenko1993
                      wrote on last edited by
                      #16

                      @Christian-Ehrlicher said in Quazip and Qt6 mingw:

                      ean build dir.

                      Can you explain what is msys?

                      Christian EhrlicherC 1 Reply Last reply
                      0
                      • A apaczenko1993

                        @Christian-Ehrlicher said in Quazip and Qt6 mingw:

                        ean build dir.

                        Can you explain what is msys?

                        Christian EhrlicherC Offline
                        Christian EhrlicherC Offline
                        Christian Ehrlicher
                        Lifetime Qt Champion
                        wrote on last edited by Christian Ehrlicher
                        #17

                        Somewhere in your PATH env var you have a bash.exe, sh.exe or similar so the directory separators are messed up (/ <-> \) and the compilation is failing.

                        Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
                        Visit the Qt Academy at https://academy.qt.io/catalog

                        1 Reply Last reply
                        0
                        • A Offline
                          A Offline
                          apaczenko1993
                          wrote on last edited by
                          #18

                          Ok finally builded, thanks for help :)

                          1 Reply Last reply
                          0
                          • A apaczenko1993 has marked this topic as solved on

                          • Login

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