Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Trying to run a Qt 4.8 project in the new Qt Creator(6.0.2) and MinGw 7.3. Run Fails before reaching main().

Trying to run a Qt 4.8 project in the new Qt Creator(6.0.2) and MinGw 7.3. Run Fails before reaching main().

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
qt creatorqt4.8mingw
9 Posts 4 Posters 1.3k 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.
  • C Offline
    C Offline
    Curtwagner1984
    wrote on 6 Mar 2022, 11:10 last edited by Curtwagner1984 3 Jun 2022, 11:12
    #1

    Hello, I have an old 4.8 Qt project which I'm trying to run in the new Qt creator.

    I have installed the legacy 4.8 version from here And followed the instruction of how to add a new qt version from here.

    Those are the current settings I'm trying:
    qtcreator_PJpaMD0Z60.png

    I managed to compile the project but when I'm trying to run it it crushes before even reaching the main() function.

    Did I mess up the settings? Do you have any advice on how to make it work?

    I also installed the MinGw 4.2.0 that the Qt 4.8 installation links to, but If I use this complier, the project fails to compile at all.

    Thank you!

    EDIT: This also happens when starting a brand new QtWidgets project with the above kit.

    1 Reply Last reply
    0
    • C Offline
      C Offline
      Curtwagner1984
      wrote on 6 Mar 2022, 11:35 last edited by Curtwagner1984 3 Jun 2022, 11:36
      #2

      I think I managed to figure out the issue. When setting up the old MinGw complier I messed up the file paths.

      This C complier should point to gcc.exe and the C++ Complier should point to g++.exe. And I had them both point to the same gcc.exe file.

      This is the correct configuration:

      For C++:
      qtcreator_HEickFcCnS.png

      For C:
      qtcreator_O0FzCr4NIn.png

      EDIT: Though I'm curious if its possible to compile and run Qt4.8 applications with the newer MinGw complier.

      M J 2 Replies Last reply 6 Mar 2022, 11:51
      0
      • C Curtwagner1984
        6 Mar 2022, 11:35

        I think I managed to figure out the issue. When setting up the old MinGw complier I messed up the file paths.

        This C complier should point to gcc.exe and the C++ Complier should point to g++.exe. And I had them both point to the same gcc.exe file.

        This is the correct configuration:

        For C++:
        qtcreator_HEickFcCnS.png

        For C:
        qtcreator_O0FzCr4NIn.png

        EDIT: Though I'm curious if its possible to compile and run Qt4.8 applications with the newer MinGw complier.

        M Offline
        M Offline
        mrjj
        Lifetime Qt Champion
        wrote on 6 Mar 2022, 11:51 last edited by mrjj 3 Jun 2022, 11:52
        #3

        @Curtwagner1984

        • Though I'm curious if it's possible to compile and run Qt4.8 applications with the newer MinGw compiler.

        Qt is a collection of SO files so if the compiler used to produce them is too old versus what you compile app with , it will/might not work,

        But try . if app just crashes then its too old.

        Also consider if migrating your 4.8 app to a newer Qt would not be about time if possible.

        C 1 Reply Last reply 6 Mar 2022, 13:05
        0
        • M mrjj
          6 Mar 2022, 11:51

          @Curtwagner1984

          • Though I'm curious if it's possible to compile and run Qt4.8 applications with the newer MinGw compiler.

          Qt is a collection of SO files so if the compiler used to produce them is too old versus what you compile app with , it will/might not work,

          But try . if app just crashes then its too old.

          Also consider if migrating your 4.8 app to a newer Qt would not be about time if possible.

          C Offline
          C Offline
          Curtwagner1984
          wrote on 6 Mar 2022, 13:05 last edited by
          #4

          @mrjj said in Trying to run a Qt 4.8 project in the new Qt Creator(6.0.2) and MinGw 7.3. Run Fails before reaching main().:

          Also consider if migrating your 4.8 app to a newer Qt would not be about time if possible.

          It's way after 'about time'. But Sadly I'm not the one making those decisions.

          1 Reply Last reply
          0
          • C Curtwagner1984
            6 Mar 2022, 11:35

            I think I managed to figure out the issue. When setting up the old MinGw complier I messed up the file paths.

            This C complier should point to gcc.exe and the C++ Complier should point to g++.exe. And I had them both point to the same gcc.exe file.

            This is the correct configuration:

            For C++:
            qtcreator_HEickFcCnS.png

            For C:
            qtcreator_O0FzCr4NIn.png

            EDIT: Though I'm curious if its possible to compile and run Qt4.8 applications with the newer MinGw complier.

            J Offline
            J Offline
            JKSH
            Moderators
            wrote on 6 Mar 2022, 14:23 last edited by
            #5

            @mrjj said in Trying to run a Qt 4.8 project in the new Qt Creator(6.0.2) and MinGw 7.3. Run Fails before reaching main().:

            @Curtwagner1984

            • Though I'm curious if it's possible to compile and run Qt4.8 applications with the newer MinGw compiler.

            Qt is a collection of SO files so if the compiler used to produce them is too old versus what you compile app with , it will/might not work,

            But try . if app just crashes then its too old.

            Also consider if migrating your 4.8 app to a newer Qt would not be about time if possible.

            To expand @mrjj's comment: The pre-built binaries for Qt 4.8.7 were built using MinGW 4.8.2. So it depends on whether your MinGW 7.3.0 is compatible with MinGW 4.8.2 or not (I don't know the answer)

            Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

            C 1 Reply Last reply 6 Mar 2022, 14:25
            1
            • J JKSH
              6 Mar 2022, 14:23

              @mrjj said in Trying to run a Qt 4.8 project in the new Qt Creator(6.0.2) and MinGw 7.3. Run Fails before reaching main().:

              @Curtwagner1984

              • Though I'm curious if it's possible to compile and run Qt4.8 applications with the newer MinGw compiler.

              Qt is a collection of SO files so if the compiler used to produce them is too old versus what you compile app with , it will/might not work,

              But try . if app just crashes then its too old.

              Also consider if migrating your 4.8 app to a newer Qt would not be about time if possible.

              To expand @mrjj's comment: The pre-built binaries for Qt 4.8.7 were built using MinGW 4.8.2. So it depends on whether your MinGW 7.3.0 is compatible with MinGW 4.8.2 or not (I don't know the answer)

              C Offline
              C Offline
              Curtwagner1984
              wrote on 6 Mar 2022, 14:25 last edited by Curtwagner1984 3 Jun 2022, 14:26
              #6

              @JKSH said in Trying to run a Qt 4.8 project in the new Qt Creator(6.0.2) and MinGw 7.3. Run Fails before reaching main().:

              To expand @mrjj's comment: The pre-built binaries for Qt 4.8.7 were built using MinGW 4.8.2. So it depends on whether your MinGW 7.3.0 is compatible with MinGW 4.8.2 or not (I don't know the answer)

              It's the MinGW that's bundled with QT5.

              J 1 Reply Last reply 6 Mar 2022, 15:10
              0
              • C Curtwagner1984
                6 Mar 2022, 14:25

                @JKSH said in Trying to run a Qt 4.8 project in the new Qt Creator(6.0.2) and MinGw 7.3. Run Fails before reaching main().:

                To expand @mrjj's comment: The pre-built binaries for Qt 4.8.7 were built using MinGW 4.8.2. So it depends on whether your MinGW 7.3.0 is compatible with MinGW 4.8.2 or not (I don't know the answer)

                It's the MinGW that's bundled with QT5.

                J Offline
                J Offline
                JKSH
                Moderators
                wrote on 6 Mar 2022, 15:10 last edited by
                #7

                @Curtwagner1984 said in Trying to run a Qt 4.8 project in the new Qt Creator(6.0.2) and MinGw 7.3. Run Fails before reaching main().:

                @JKSH said in Trying to run a Qt 4.8 project in the new Qt Creator(6.0.2) and MinGw 7.3. Run Fails before reaching main().:

                To expand @mrjj's comment: The pre-built binaries for Qt 4.8.7 were built using MinGW 4.8.2. So it depends on whether your MinGW 7.3.0 is compatible with MinGW 4.8.2 or not (I don't know the answer)

                It's the MinGW that's bundled with QT5.

                As I said, I don't know if MinGW 7.3.0 is compatible with MinGW 4.8.2 or not.

                As @mrjj suggested, give it a try to find out.

                Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                C 1 Reply Last reply 6 Mar 2022, 15:31
                0
                • J JKSH
                  6 Mar 2022, 15:10

                  @Curtwagner1984 said in Trying to run a Qt 4.8 project in the new Qt Creator(6.0.2) and MinGw 7.3. Run Fails before reaching main().:

                  @JKSH said in Trying to run a Qt 4.8 project in the new Qt Creator(6.0.2) and MinGw 7.3. Run Fails before reaching main().:

                  To expand @mrjj's comment: The pre-built binaries for Qt 4.8.7 were built using MinGW 4.8.2. So it depends on whether your MinGW 7.3.0 is compatible with MinGW 4.8.2 or not (I don't know the answer)

                  It's the MinGW that's bundled with QT5.

                  As I said, I don't know if MinGW 7.3.0 is compatible with MinGW 4.8.2 or not.

                  As @mrjj suggested, give it a try to find out.

                  C Online
                  C Online
                  Christian Ehrlicher
                  Lifetime Qt Champion
                  wrote on 6 Mar 2022, 15:31 last edited by Christian Ehrlicher 3 Jun 2022, 15:31
                  #8

                  @JKSH said in Trying to run a Qt 4.8 project in the new Qt Creator(6.0.2) and MinGw 7.3. Run Fails before reaching main().:

                  As I said, I don't know if MinGW 7.3.0 is compatible with MinGW 4.8.2 or not.

                  No, the C++ ABI changed in between (to be more specific between 4.x and 5.0 the c++ ABI was change to the new c++11 one by default).

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

                  C 1 Reply Last reply 7 Mar 2022, 08:59
                  5
                  • C Christian Ehrlicher
                    6 Mar 2022, 15:31

                    @JKSH said in Trying to run a Qt 4.8 project in the new Qt Creator(6.0.2) and MinGw 7.3. Run Fails before reaching main().:

                    As I said, I don't know if MinGW 7.3.0 is compatible with MinGW 4.8.2 or not.

                    No, the C++ ABI changed in between (to be more specific between 4.x and 5.0 the c++ ABI was change to the new c++11 one by default).

                    C Offline
                    C Offline
                    Curtwagner1984
                    wrote on 7 Mar 2022, 08:59 last edited by
                    #9

                    @Christian-Ehrlicher Thank you for clarifying!

                    1 Reply Last reply
                    1

                    9/9

                    7 Mar 2022, 08:59

                    • Login

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