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 5.6k 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

    @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
    
    JoeCFDJ Offline
    JoeCFDJ Offline
    JoeCFD
    wrote on last edited by JoeCFD
    #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
    0
    • JoeCFDJ Offline
      JoeCFDJ Offline
      JoeCFD
      wrote on 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
      • JoeCFDJ JoeCFD

        @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 last edited by Jorge_Adan
        #23

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

        JoeCFDJ JonBJ 2 Replies Last reply
        0
        • J Jorge_Adan

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

          JoeCFDJ Offline
          JoeCFDJ Offline
          JoeCFD
          wrote on last edited by JoeCFD
          #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

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

            JonBJ Offline
            JonBJ Offline
            JonB
            wrote on 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

            • Login

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