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. Cannot get any query output from executable "/opt/Qt/6.2.2/gcc_64/bin/qmake"
Forum Updated to NodeBB v4.3 + New Features

Cannot get any query output from executable "/opt/Qt/6.2.2/gcc_64/bin/qmake"

Scheduled Pinned Locked Moved Unsolved General and Desktop
25 Posts 4 Posters 4.4k 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.
  • J Jorge_Adan
    6 Dec 2021, 13:11

    @SGaist I downloaded and tried to install qt-unified-linux-x64-4.2.0-online.run, and I received the exact same error.

    I noticed here that CentOS 7 is not listed in the supported configurations. Could that be an issue?

    J Offline
    J Offline
    JoeCFD
    wrote on 7 Dec 2021, 14:59 last edited by
    #16

    @Jorge_Adan centOS7 could be the issue. You may try to build it from Qt source. Or upgrade centOS to the latest.

    1 Reply Last reply
    0
    • J Jorge_Adan
      7 Dec 2021, 13:30

      I installed again and ignored the error that I posted earlier.
      After installing 6.2.2 again, upon trying to run QtCreator, I receive the following error:

      [devuser@localhost ~]$ ./Qt/Tools/QtCreator/bin/qtcreator
      ./Qt/Tools/QtCreator/bin/qtcreator: error while loading shared libraries: libQt6Core.so.6: cannot open shared object file: No such file or directory
      

      I do have that library...

      [devuser@localhost ~]$ locate libQt6Core.so.6
      /home/devuser/Qt/6.2.2/gcc_64/lib/libQt6Core.so.6
      /home/devuser/Qt/6.2.2/gcc_64/lib/libQt6Core.so.6.2.2
      /home/devuser/Qt/Tools/QtCreator/lib/Qt/lib/libQt6Core.so.6
      /home/devuser/Qt/Tools/QtCreator/lib/Qt/lib/libQt6Core.so.6.2.1
      
      J Offline
      J Offline
      JoeCFD
      wrote on 7 Dec 2021, 15:01 last edited by
      #17

      @Jorge_Adan You might not set /home/devuser/Qt/6.2.2/gcc_64/lib to LD_LIBRARY_PATH

      J 1 Reply Last reply 7 Dec 2021, 15:14
      0
      • J JoeCFD
        7 Dec 2021, 15:01

        @Jorge_Adan You might not set /home/devuser/Qt/6.2.2/gcc_64/lib to LD_LIBRARY_PATH

        J Offline
        J Offline
        Jorge_Adan
        wrote on 7 Dec 2021, 15:14 last edited by
        #18

        @JoeCFD Yes, I've tried that. I receive the same error.

        J 1 Reply Last reply 7 Dec 2021, 15:59
        0
        • J Jorge_Adan
          7 Dec 2021, 15:14

          @JoeCFD Yes, I've tried that. I receive the same error.

          J Offline
          J Offline
          JoeCFD
          wrote on 7 Dec 2021, 15:59 last edited by JoeCFD 12 Jul 2021, 16:06
          #19

          @Jorge_Adan You might add it to the wrong spot. Can you please tell how you added it? Also show the full list of your home dir by command ls -al.
          Normally you do not install third party in /home/devuser/. Instead, install them under somewhere like /opt/thirdParties which is user name independent.

          First thing, try this on your terminmal:
          export LD_LIBRARY_PATH=/home/devuser/Qt/6.2.2/gcc_64/lib:$LD_LIBRARY_PATH
          ./Qt/Tools/QtCreator/bin/qtcreator

          you also need to add /Qt/Tools/QtCreator/bin and /home/devuser/Qt/6.2.2/gcc_64/bin to PATH

          Check your gcc version by
          gcc --version
          I believe it is 4.8.5 which can not support Qt 6. Qt 6 needs C++17

          J 1 Reply Last reply 7 Dec 2021, 16:59
          0
          • J JoeCFD
            7 Dec 2021, 15:59

            @Jorge_Adan You might add it to the wrong spot. Can you please tell how you added it? Also show the full list of your home dir by command ls -al.
            Normally you do not install third party in /home/devuser/. Instead, install them under somewhere like /opt/thirdParties which is user name independent.

            First thing, try this on your terminmal:
            export LD_LIBRARY_PATH=/home/devuser/Qt/6.2.2/gcc_64/lib:$LD_LIBRARY_PATH
            ./Qt/Tools/QtCreator/bin/qtcreator

            you also need to add /Qt/Tools/QtCreator/bin and /home/devuser/Qt/6.2.2/gcc_64/bin to PATH

            Check your gcc version by
            gcc --version
            I believe it is 4.8.5 which can not support Qt 6. Qt 6 needs C++17

            J Offline
            J Offline
            Jorge_Adan
            wrote on 7 Dec 2021, 16:59 last edited by Jorge_Adan 12 Jul 2021, 17:01
            #20

            @JoeCFD In ~/.bash_profile:

            export LD_LIBRARY_PATH=/usr/local/lib64:/home/devuser/Qt/6.2.2/gcc_64/lib/:$LD_LIBRARY_PATH
            

            Then in terminal: source ~/.bash_profile.

            I also create an alias:

            alias qtcreator=$HOME/Qt/Tools/QtCreator/bin/qtcreator
            

            in order to force the newly installed qtcreator get called. If I don't, it calls: /usr/bin/qtcreator, which was installed as part of the CentOS 7 build as Qt4.

            I still get the same error:

            [devuser@localhost ~]$ qtcreator
            /home/devuser/Qt/Tools/QtCreator/bin/qtcreator: error while loading shared libraries: libQt6Core.so.6: cannot open shared object file: No such file or directory
            

            Concerning gcc:

            [devuser@localhost ~]$ gcc --version
            gcc (GCC) 10.1.0
            
            J 1 Reply Last reply 7 Dec 2021, 17:43
            0
            • J Jorge_Adan
              7 Dec 2021, 16:59

              @JoeCFD In ~/.bash_profile:

              export LD_LIBRARY_PATH=/usr/local/lib64:/home/devuser/Qt/6.2.2/gcc_64/lib/:$LD_LIBRARY_PATH
              

              Then in terminal: source ~/.bash_profile.

              I also create an alias:

              alias qtcreator=$HOME/Qt/Tools/QtCreator/bin/qtcreator
              

              in order to force the newly installed qtcreator get called. If I don't, it calls: /usr/bin/qtcreator, which was installed as part of the CentOS 7 build as Qt4.

              I still get the same error:

              [devuser@localhost ~]$ qtcreator
              /home/devuser/Qt/Tools/QtCreator/bin/qtcreator: error while loading shared libraries: libQt6Core.so.6: cannot open shared object file: No such file or directory
              

              Concerning gcc:

              [devuser@localhost ~]$ gcc --version
              gcc (GCC) 10.1.0
              
              J Offline
              J Offline
              JoeCFD
              wrote on 7 Dec 2021, 17:43 last edited by JoeCFD 12 Jul 2021, 17:48
              #21

              @Jorge_Adan In order to call your installed qt creator, you do this:
              export PATH=$HOME/Qt/Tools/QtCreator/bin/:$PATH:.:
              then your installed one will be in front of /usr/bin/qtcreator

              you need to do the same thing for LD_LIBRARY_PATH. There is order problem here. PATH settings decide which one will be looked for or executed first. It is important to know this since you have different Qt installations.

              J 1 Reply Last reply 7 Dec 2021, 21:02
              0
              • J Offline
                J Offline
                JoeCFD
                wrote on 7 Dec 2021, 17:47 last edited by
                #22

                @Jorge_Adan said in Cannot get any query output from executable "/opt/Qt/6.2.2/gcc_64/bin/qmake":

                [devuser@localhost ~]$ gcc --version
                gcc (GCC) 10.1.0
                gcc 10.1.0 may be good enough for Qt 6. Good luck!

                1 Reply Last reply
                0
                • J JoeCFD
                  7 Dec 2021, 17:43

                  @Jorge_Adan In order to call your installed qt creator, you do this:
                  export PATH=$HOME/Qt/Tools/QtCreator/bin/:$PATH:.:
                  then your installed one will be in front of /usr/bin/qtcreator

                  you need to do the same thing for LD_LIBRARY_PATH. There is order problem here. PATH settings decide which one will be looked for or executed first. It is important to know this since you have different Qt installations.

                  J Offline
                  J Offline
                  Jorge_Adan
                  wrote on 7 Dec 2021, 21:02 last edited by Jorge_Adan 12 Jul 2021, 21:03
                  #23

                  @JoeCFD Yes, I already had my PATH setup like that.

                  J J 2 Replies Last reply 7 Dec 2021, 22:07
                  0
                  • J Jorge_Adan
                    7 Dec 2021, 21:02

                    @JoeCFD Yes, I already had my PATH setup like that.

                    J Offline
                    J Offline
                    JoeCFD
                    wrote on 7 Dec 2021, 22:07 last edited by JoeCFD 12 Jul 2021, 22:08
                    #24

                    @Jorge_Adan show ldd /home/devuser/Qt/Tools/QtCreator/bin/qtcreator
                    qtcreator uses relative path for qt libs.

                    1 Reply Last reply
                    0
                    • J Jorge_Adan
                      7 Dec 2021, 21:02

                      @JoeCFD Yes, I already had my PATH setup like that.

                      J Offline
                      J Offline
                      JonB
                      wrote on 8 Dec 2021, 17:36 last edited by
                      #25

                      @Jorge_Adan
                      See the discussion now going on in https://forum.qt.io/topic/132610/qtcreator-6-0-can-t-start, I think it's same as yours?

                      1 Reply Last reply
                      0

                      25/25

                      8 Dec 2021, 17:36

                      • Login

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