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. getting zlib to work with qt creator's mingw-32

getting zlib to work with qt creator's mingw-32

Scheduled Pinned Locked Moved Unsolved General and Desktop
12 Posts 3 Posters 1.8k 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.
  • M Offline
    M Offline
    merqt
    wrote on last edited by
    #1

    Hello,

    merqt about 9 hours ago

    Hello,

    My attempt to run a [qt](lhttps://github.com/albar965/atools/blob/master/atools.pro project with qmake results in the errors:

    C:\Projekte\atools\src\zip\zip.cpp:-1: error: undefined reference to inflateEnd' C:\Projekte\atools\src\zip\zip.cpp:-1: error: undefined reference to crc32'
    qtmain_win.cpp:-1: error: undefined reference to `qMain(int, char**)'

    I understand, from discussions and forums, that it is due to zlib package issue for windows 7
    Could anyone please guide me on what steps to take to resolve the error?

    Thank you

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      IIRC, there was already a thread related to something similar last week. Basically on Windows, the trick was to manually built the zlib stuff included with Qt.

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

      M 2 Replies Last reply
      0
      • SGaistS SGaist

        Hi,

        IIRC, there was already a thread related to something similar last week. Basically on Windows, the trick was to manually built the zlib stuff included with Qt.

        M Offline
        M Offline
        merqt
        wrote on last edited by
        #3

        @SGaist Thank you. Could you please share some link which details how i need to go about this process?

        1 Reply Last reply
        0
        • SGaistS SGaist

          Hi,

          IIRC, there was already a thread related to something similar last week. Basically on Windows, the trick was to manually built the zlib stuff included with Qt.

          M Offline
          M Offline
          merqt
          wrote on last edited by
          #4

          @SGaist As of now, the errors have vanished when I added "LIBS+= -lz" to the win32 section of the pro file.
          But the error remaining is:
          C:\Qt\5.11.2\mingw53_32\lib\libqtmain.a(qtmain_win.o):qtmain_win.cpp:(.text+0x12e): undefined reference to `qMain(int, char**)'

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #5

            In what part do you get that ?

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

            M 1 Reply Last reply
            0
            • SGaistS SGaist

              In what part do you get that ?

              M Offline
              M Offline
              merqt
              wrote on last edited by
              #6

              @SGaist When I run qmake, but i could resolve that when i added TEMPLATE = lib
              However i am getting a lot of errors when i try to build the main application.
              Could you please guide me with this?

              1 Reply Last reply
              0
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #7

                Where exactly did you modify that ?

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

                M 1 Reply Last reply
                0
                • SGaistS SGaist

                  Where exactly did you modify that ?

                  M Offline
                  M Offline
                  merqt
                  wrote on last edited by
                  #8

                  @SGaist I was able to get atools to build without errors. But when i try to build littlenavmap there is an error related to java compiler:
                  :-1: error: error: ..\littlenavmap\customize\icons.zip: Java compiler not installed on this system

                  We have installed java compiler, nevertheless the error persists. Could you please guide?

                  Thank you

                  Pablo J. RoginaP 1 Reply Last reply
                  0
                  • M merqt

                    @SGaist I was able to get atools to build without errors. But when i try to build littlenavmap there is an error related to java compiler:
                    :-1: error: error: ..\littlenavmap\customize\icons.zip: Java compiler not installed on this system

                    We have installed java compiler, nevertheless the error persists. Could you please guide?

                    Thank you

                    Pablo J. RoginaP Offline
                    Pablo J. RoginaP Offline
                    Pablo J. Rogina
                    wrote on last edited by
                    #9

                    @merqt said in getting zlib to work with qt creator's mingw-32:

                    We have installed java compiler

                    Even with that, are you sure that is it available (i.e. in the path) for your build process?

                    error: error: ..\littlenavmap\customize\icons.zip: Java compiler not installed on this system

                    Could you describe how are you doing the build that leads to this message? i.e. build from Qt Creator? from command line?

                    Upvote the answer(s) that helped you solve the issue
                    Use "Topic Tools" button to mark your post as Solved
                    Add screenshots via postimage.org
                    Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

                    M 1 Reply Last reply
                    1
                    • Pablo J. RoginaP Pablo J. Rogina

                      @merqt said in getting zlib to work with qt creator's mingw-32:

                      We have installed java compiler

                      Even with that, are you sure that is it available (i.e. in the path) for your build process?

                      error: error: ..\littlenavmap\customize\icons.zip: Java compiler not installed on this system

                      Could you describe how are you doing the build that leads to this message? i.e. build from Qt Creator? from command line?

                      M Offline
                      M Offline
                      merqt
                      wrote on last edited by
                      #10

                      @Pablo-J.-Rogina Thank you. This error vanished once i replaced the .pro file with the one the developer of littlenavmap had shared
                      Could you please help me understand one more thing?
                      I cloned the project and imported it as it was into Qt Creator. I then ran qmake and built it. But I do not understand when or how the .pro file got changed and why this happens

                      Thank you

                      Pablo J. RoginaP 1 Reply Last reply
                      0
                      • M merqt

                        @Pablo-J.-Rogina Thank you. This error vanished once i replaced the .pro file with the one the developer of littlenavmap had shared
                        Could you please help me understand one more thing?
                        I cloned the project and imported it as it was into Qt Creator. I then ran qmake and built it. But I do not understand when or how the .pro file got changed and why this happens

                        Thank you

                        Pablo J. RoginaP Offline
                        Pablo J. RoginaP Offline
                        Pablo J. Rogina
                        wrote on last edited by
                        #11

                        @merqt said in getting zlib to work with qt creator's mingw-32:
                        great you solved the issue

                        error vanished once i replaced the .pro file with the one the developer of littlenavmap had shared

                        could it be possible you attach that .pro file to this post for further reference?

                        I do not understand when or how the .pro file got changed and why this happens

                        it's hard to tell with no evidence.
                        Did you keep the "faulty" .pro? so we can compare what changed and try to think about that?

                        Upvote the answer(s) that helped you solve the issue
                        Use "Topic Tools" button to mark your post as Solved
                        Add screenshots via postimage.org
                        Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

                        M 1 Reply Last reply
                        0
                        • Pablo J. RoginaP Pablo J. Rogina

                          @merqt said in getting zlib to work with qt creator's mingw-32:
                          great you solved the issue

                          error vanished once i replaced the .pro file with the one the developer of littlenavmap had shared

                          could it be possible you attach that .pro file to this post for further reference?

                          I do not understand when or how the .pro file got changed and why this happens

                          it's hard to tell with no evidence.
                          Did you keep the "faulty" .pro? so we can compare what changed and try to think about that?

                          M Offline
                          M Offline
                          merqt
                          wrote on last edited by
                          #12

                          @Pablo-J.-Rogina Thank you. What I noticed with Qt 5.11.2 this time was that when i import a project as qmake project, I am able to get the import done only if the .pro file is overwritten. If I uncheck the option to overwrite the .pro file, the project is not imported

                          1 Reply Last reply
                          0

                          • Login

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