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. QTCreator 6.0 can't start
Forum Updated to NodeBB v4.3 + New Features

QTCreator 6.0 can't start

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
53 Posts 7 Posters 19.2k 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.
  • JoeCFDJ Offline
    JoeCFDJ Offline
    JoeCFD
    wrote on last edited by
    #35

    qt creator uses relative path to link all qt libs which come with it. It is possible that there is a bug in the build script of qt creator. LD_LIBRARY_PATH is not used. Therefore, it can not start.

    1 Reply Last reply
    0
    • C cyniu88
      cyniu@cyniu-PC:/mnt/f/LINUX-UBUNTU/QT/Tools/QtCreator/bin$ ls -lah
      total 1.4M
      drwxrwxrwx 1 root root 4.0K Dec  8 19:21 .
      drwxrwxrwx 1 root root 4.0K Dec  7 23:10 ..
      -rwxrwxrwx 1 root root   66 Dec  8 18:07 find.txt
      -rwxrwxrwx 1 root root 388K Dec  1 17:51 qbs
      -rwxrwxrwx 1 root root  44K Dec  1 17:51 qbs-config
      -rwxrwxrwx 1 root root  53K Dec  1 17:51 qbs-config-ui
      -rwxrwxrwx 1 root root  52K Dec  1 17:51 qbs-create-project
      -rwxrwxrwx 1 root root  60K Dec  1 17:51 qbs-setup-android
      -rwxrwxrwx 1 root root 218K Dec  1 17:51 qbs-setup-qt
      -rwxrwxrwx 1 root root 403K Dec  1 17:51 qbs-setup-toolchains
      -rwxrwxrwx 1 root root   84 Dec  1 17:52 qt.conf
      -rwxrwxrwx 1 root root 110K Dec  1 17:51 qtcreator
      -rwxrwxrwx 1 root root 1.4K Dec  8 09:02 qtcreator.sh
      cyniu@cyniu-PC:/mnt/f/LINUX-UBUNTU/QT/Tools/QtCreator/bin$
      
      
      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by
      #36

      @cyniu88 I happily hand you over to @JoeCFD :)

      JoeCFDJ 1 Reply Last reply
      0
      • JonBJ JonB

        @cyniu88 I happily hand you over to @JoeCFD :)

        JoeCFDJ Offline
        JoeCFDJ Offline
        JoeCFD
        wrote on last edited by
        #37

        @JonB I have to confirm this when I get home. If it is true, we can file a bug report to Qt.

        1 Reply Last reply
        0
        • C Offline
          C Offline
          cyniu88
          wrote on last edited by
          #38

          ok this sounds good, but I don't understand why the problem occurs on WSL on two separate computers, on the third computer with Debian as OS everything works fine? Are the engineers working on QT saving money on testing ? ;)

          JoeCFDJ 1 Reply Last reply
          0
          • C cyniu88

            ok this sounds good, but I don't understand why the problem occurs on WSL on two separate computers, on the third computer with Debian as OS everything works fine? Are the engineers working on QT saving money on testing ? ;)

            JoeCFDJ Offline
            JoeCFDJ Offline
            JoeCFD
            wrote on last edited by
            #39

            @cyniu88 it is software engineering and bugs do exist. Do not complain too much and you may not pay anything to Qt.

            1 Reply Last reply
            1
            • C Offline
              C Offline
              cyniu88
              wrote on last edited by
              #40

              Yeah, I know these things. I'm just a little disappointed in what happened.

              JoeCFDJ 1 Reply Last reply
              0
              • C cyniu88

                Yeah, I know these things. I'm just a little disappointed in what happened.

                JoeCFDJ Offline
                JoeCFDJ Offline
                JoeCFD
                wrote on last edited by
                #41

                @cyniu88 The first thing you need to know, the latest release may not be the best one. I am using 5.1.5.2.

                1 Reply Last reply
                0
                • C Offline
                  C Offline
                  cyniu88
                  wrote on last edited by
                  #42

                  Unfortunately only qtcreator 6.0.0 is available in MaintenanceTool

                  JoeCFDJ 1 Reply Last reply
                  0
                  • C cyniu88

                    Unfortunately only qtcreator 6.0.0 is available in MaintenanceTool

                    JoeCFDJ Offline
                    JoeCFDJ Offline
                    JoeCFD
                    wrote on last edited by JoeCFD
                    #43

                    @cyniu88 Actually it is good enough for you to use 6.0 qt creator. Install it separately. Also it is not a great idea to use Qt 6.2 for now especially when you are working on some projects.

                    1 Reply Last reply
                    0
                    • C Offline
                      C Offline
                      cyniu88
                      wrote on last edited by cyniu88
                      #44

                      @JoeCFD said in QTCreator 6.0 can't start:

                      Actually it is good enough for you to use 6.0 qt creator.

                      maybe yes, unfortunately qtcreator 6.0 ....

                      do you plan to install it at your PC and check if you have the same problem as me ?
                      Are You working for Qt Group?

                      1 Reply Last reply
                      0
                      • JoeCFDJ Offline
                        JoeCFDJ Offline
                        JoeCFD
                        wrote on last edited by JoeCFD
                        #45

                        Just installed the new ubuntu 22 and Qt 6.2.2 in a virtual machine for a spin. Qt Creator works fine. Since you like new stuff, move on to Qt6.2.2. I have no more interest in Qt6.2.1.

                        1 Reply Last reply
                        0
                        • C Offline
                          C Offline
                          cyniu88
                          wrote on last edited by
                          #46

                          yes on virtual machine it works fine, unfortunately on WSL Ubuntu it does not work

                          1 Reply Last reply
                          0
                          • hskoglundH Online
                            hskoglundH Online
                            hskoglund
                            wrote on last edited by
                            #47

                            Hi, only Qt6 has problems in WSL Ubuntu, you can use the online Maintenance Tool in WSL to remove Qt6.21 and Qt6.2.2 and instead install Qt 5.15.2 or 5.12.12, they both work fine in WSL Ubuntu.

                            However since the latest release of Qt Creator (6.0.0) is based on Qt 6 it will not work on WSL Ubuntu. Instead you can you an older version of Qt Creator, for example 5.0.3:
                            https://download.qt.io/official_releases/qtcreator/5.0/5.0.3/
                            (almost at the end of the list)
                            this one is based on Qt5 so it will work fine :-)

                            1 Reply Last reply
                            0
                            • C Offline
                              C Offline
                              cyniu88
                              wrote on last edited by
                              #48

                              Is there any plan to support QT 6 on WSL Ubuntu ?

                              jsulmJ JoeCFDJ 2 Replies Last reply
                              0
                              • C cyniu88

                                Is there any plan to support QT 6 on WSL Ubuntu ?

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

                                @cyniu88 said in QTCreator 6.0 can't start:

                                Is there any plan to support QT 6 on WSL Ubuntu ?

                                This is something to ask on Qt developers mailing list

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

                                1 Reply Last reply
                                0
                                • C cyniu88

                                  Is there any plan to support QT 6 on WSL Ubuntu ?

                                  JoeCFDJ Offline
                                  JoeCFDJ Offline
                                  JoeCFD
                                  wrote on last edited by JoeCFD
                                  #50

                                  @cyniu88 Qt Creator is a stand alone app. It may not matter much if you use Qt5 or Qt6. It is supposed to work for any C++ projects. Try it out to use Qt5 creator for Qt6.

                                  1 Reply Last reply
                                  0
                                  • hskoglundH Online
                                    hskoglundH Online
                                    hskoglund
                                    wrote on last edited by
                                    #51

                                    Hi, note that no Qt6 program can run on WSL Ubuntu currently, for example if you build a vanilla widget Hello World app for Qt 6.2.2, it will not start on WSL Ubuntu, you have to build it using Qt 5.15.2 or Qt 5.12.12.
                                    (I have the same problem on Windows 7, only Qt5-based programs will run.)

                                    1 Reply Last reply
                                    1
                                    • JoeCFDJ Offline
                                      JoeCFDJ Offline
                                      JoeCFD
                                      wrote on last edited by
                                      #52

                                      @hskoglund said in QTCreator 6.0 can't start:

                                      WSL Ubuntu

                                      is it gcc/g++ issue? What is gcc version on WSL Ubuntu? Qt 6 needs C++17.

                                      hskoglundH 1 Reply Last reply
                                      0
                                      • JoeCFDJ JoeCFD

                                        @hskoglund said in QTCreator 6.0 can't start:

                                        WSL Ubuntu

                                        is it gcc/g++ issue? What is gcc version on WSL Ubuntu? Qt 6 needs C++17.

                                        hskoglundH Online
                                        hskoglundH Online
                                        hskoglund
                                        wrote on last edited by
                                        #53

                                        @JoeCFD Found the solution by googling, this post contains an "atomic bomb", an ELF stripping/cleaning command:

                                        strip --remove-section=.note.ABI-tag libQt6Core.so.6.2.2
                                        

                                        To get Qt Creator 6.0.0 to work on Ubuntu WSL, use this stripping command:

                                        strip --remove-section=.note.ABI-tag ~/Qt/Tools/QtCreator/lib/Qt/lib/libQt6Core.so.6.2.1
                                        

                                        and then to be able to build and run a Qt6 program, apply the same patch on the core dll for Qt 6.2.2 itself:

                                        strip --remove-section=.note.ABI-tag ~/Qt/6.2.2/gcc_64/lib/libQt6Core.so.6.2.2
                                        
                                        1 Reply Last reply
                                        4

                                        • Login

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