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"

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.0k 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.
  • J Offline
    J Offline
    Jorge_Adan
    wrote on 3 Dec 2021, 19:14 last edited by
    #1

    Screenshot from 2021-12-03 14-08-56.png

    I downloaded the latest linux build, and when I run the Installer on the Default build, I continue to get this error. I have searched online concerning this issue for a couple of days, but have been unable to figure out what is going on.
    Can anyone point me in the right direction?

    Here is my kernel and processor information

    [devuser@localhost Downloads]$ uname -rp
    3.10.0-1160.45.1.el7.x86_64 x86_64
    
    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 3 Dec 2021, 19:20 last edited by
      #2

      Hi and welcome to devnet,

      What happens if you install it as your standard user in your home directory ?

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

      1 Reply Last reply
      0
      • J Offline
        J Offline
        Jorge_Adan
        wrote on 3 Dec 2021, 19:49 last edited by
        #3

        Yes, I get the exact same eror.

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 3 Dec 2021, 19:53 last edited by
          #4

          What if you install 6.2.1 ?

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

          1 Reply Last reply
          0
          • J Offline
            J Offline
            Jorge_Adan
            wrote on 4 Dec 2021, 12:31 last edited by
            #5

            I get the same error with every version I try to install, including 5.

            1 Reply Last reply
            0
            • S Offline
              S Offline
              SGaist
              Lifetime Qt Champion
              wrote on 4 Dec 2021, 20:04 last edited by
              #6

              Which version of the installer are you using ?

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

              1 Reply Last reply
              0
              • J Offline
                J Offline
                Jorge_Adan
                wrote on 5 Dec 2021, 17:28 last edited by
                #7

                qt-unified-linux-x64-4.1.1-online.run

                1 Reply Last reply
                0
                • S Offline
                  S Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on 5 Dec 2021, 19:57 last edited by
                  #8

                  This is not the latest version. You should get the latest installer.

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

                  J 1 Reply Last reply 6 Dec 2021, 13:11
                  1
                  • S SGaist
                    5 Dec 2021, 19:57

                    This is not the latest version. You should get the latest installer.

                    J Offline
                    J Offline
                    Jorge_Adan
                    wrote on 6 Dec 2021, 13:11 last edited by Jorge_Adan 12 Jun 2021, 13:44
                    #9

                    @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 1 Reply Last reply 7 Dec 2021, 14:59
                    0
                    • S Offline
                      S Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on 6 Dec 2021, 18:17 last edited by
                      #10

                      I wonder if there are some compatibility issues...
                      Did you try to execute qmake directly from what could be installed to see what is going wrong there ?

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

                      J 1 Reply Last reply 7 Dec 2021, 13:02
                      0
                      • S SGaist
                        6 Dec 2021, 18:17

                        I wonder if there are some compatibility issues...
                        Did you try to execute qmake directly from what could be installed to see what is going wrong there ?

                        J Offline
                        J Offline
                        Jorge_Adan
                        wrote on 7 Dec 2021, 13:02 last edited by
                        #11

                        @SGaist I just followed the instructions for building Qt5 from source. At this point, I don't care if it's Qt5 or Qt6.
                        My new qmake is installed at: /opt/qt5-build/qtbase/bin/qmake. It appears that it is working correctly, but there is no QtCreator in my build.

                        I will try to install from the online installer again, ignore the errors, and see what qmake does.

                        BACKGROUND

                        I have a CMake project that I created on a Ubuntu machine. It works. All I need to do is to install Qt on my CentOS 7 machine and build this project.

                        1 Reply Last reply
                        0
                        • J Offline
                          J Offline
                          Jorge_Adan
                          wrote on 7 Dec 2021, 13:30 last edited by Jorge_Adan 12 Jul 2021, 13:33
                          #12

                          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 J 2 Replies Last reply 7 Dec 2021, 13:35
                          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
                            JonB
                            wrote on 7 Dec 2021, 13:35 last edited by JonB 12 Jul 2021, 13:37
                            #13

                            @Jorge_Adan
                            Start by running ldd ./Qt/Tools/QtCreator/bin/qtcreator. Look through the output for libQt6Core.so.6. Assuming from what you say that is does not say "file not found", look through all its dependencies and see whether one of them is not found. That can lead to the error message reporting it on libQt6Core.so.6 when in fact the issue is another file.

                            I also note your output shows different versions of libQt6Core.so.6.2.x in different places. I don't know whether the different versions is problematic. You can run ldd on those too.

                            J 1 Reply Last reply 7 Dec 2021, 13:45
                            0
                            • J JonB
                              7 Dec 2021, 13:35

                              @Jorge_Adan
                              Start by running ldd ./Qt/Tools/QtCreator/bin/qtcreator. Look through the output for libQt6Core.so.6. Assuming from what you say that is does not say "file not found", look through all its dependencies and see whether one of them is not found. That can lead to the error message reporting it on libQt6Core.so.6 when in fact the issue is another file.

                              I also note your output shows different versions of libQt6Core.so.6.2.x in different places. I don't know whether the different versions is problematic. You can run ldd on those too.

                              J Offline
                              J Offline
                              Jorge_Adan
                              wrote on 7 Dec 2021, 13:45 last edited by
                              #14

                              @JonB Here is my output, using ldd:

                              w[devuser@localhost ~]$ ldd ./Qt/Tools/QtCreator/bin/qtcreator | grep -i libqt6core.so.6
                              ./Qt/Tools/QtCreator/bin/qtcreator: /lib64/libz.so.1: version `ZLIB_1.2.9' not found (required by /home/devuser/./Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt6Gui.so.6)
                              ./Qt/Tools/QtCreator/bin/qtcreator: /lib64/libm.so.6: version `GLIBC_2.27' not found (required by /home/devuser/./Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt6Gui.so.6)
                              	libQt6Core.so.6 => not found
                              	libQt6Core.so.6 => not found
                              	libQt6Core.so.6 => not found
                              	libQt6Core.so.6 => not found
                              	libQt6Core.so.6 => not found
                              	libQt6Core.so.6 => not found
                              	libQt6Core.so.6 => not found
                              	libQt6Core.so.6 => not found
                              	libQt6Core.so.6 => not found
                              	libQt6Core.so.6 => not found
                              	libQt6Core.so.6 => not found
                              	libQt6Core.so.6 => not found
                              	libQt6Core.so.6 => not found
                              
                              
                              J 1 Reply Last reply 7 Dec 2021, 14:27
                              0
                              • J Jorge_Adan
                                7 Dec 2021, 13:45

                                @JonB Here is my output, using ldd:

                                w[devuser@localhost ~]$ ldd ./Qt/Tools/QtCreator/bin/qtcreator | grep -i libqt6core.so.6
                                ./Qt/Tools/QtCreator/bin/qtcreator: /lib64/libz.so.1: version `ZLIB_1.2.9' not found (required by /home/devuser/./Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt6Gui.so.6)
                                ./Qt/Tools/QtCreator/bin/qtcreator: /lib64/libm.so.6: version `GLIBC_2.27' not found (required by /home/devuser/./Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt6Gui.so.6)
                                	libQt6Core.so.6 => not found
                                	libQt6Core.so.6 => not found
                                	libQt6Core.so.6 => not found
                                	libQt6Core.so.6 => not found
                                	libQt6Core.so.6 => not found
                                	libQt6Core.so.6 => not found
                                	libQt6Core.so.6 => not found
                                	libQt6Core.so.6 => not found
                                	libQt6Core.so.6 => not found
                                	libQt6Core.so.6 => not found
                                	libQt6Core.so.6 => not found
                                	libQt6Core.so.6 => not found
                                	libQt6Core.so.6 => not found
                                
                                
                                J Offline
                                J Offline
                                JonB
                                wrote on 7 Dec 2021, 14:27 last edited by JonB 12 Jul 2021, 14:28
                                #15

                                @Jorge_Adan
                                You will have to await others to comment on your two lines in green. Maybe they are the issue, I don't know.
                                I am still a little unsure on whether the libQt6Core.so.6 => not found messages are that that it cannot find that actual file or dependencies for it. You might like to look through the output paged into more/less instead of grepping to understand just what it is telling you.

                                1 Reply Last reply
                                0
                                • 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

                                          9/25

                                          6 Dec 2021, 13:11

                                          topic:navigator.unread, 16
                                          • Login

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