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. Run Qt in Linux
QtWS25 Last Chance

Run Qt in Linux

Scheduled Pinned Locked Moved Unsolved General and Desktop
linuxno gui
5 Posts 2 Posters 643 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.
  • L Offline
    L Offline
    laozeng1982
    wrote on 9 Nov 2022, 10:24 last edited by
    #1

    Hi, experts,

    I am facing a problem, I wrote a program, it was OK on my development machine.

    But When I put it on a test machine, it can be run, but no GUI shows up when I using a normal account. If I changed to the ROOT user, everything is fine.

    What I missed? I thought my test environment is the same as the development environment. Same OS and same LD_LIBIRARY_PATH, etc...

    Please help me. Thanks a lot~

    J 1 Reply Last reply 9 Nov 2022, 10:43
    0
    • L laozeng1982
      9 Nov 2022, 10:24

      Hi, experts,

      I am facing a problem, I wrote a program, it was OK on my development machine.

      But When I put it on a test machine, it can be run, but no GUI shows up when I using a normal account. If I changed to the ROOT user, everything is fine.

      What I missed? I thought my test environment is the same as the development environment. Same OS and same LD_LIBIRARY_PATH, etc...

      Please help me. Thanks a lot~

      J Offline
      J Offline
      JonB
      wrote on 9 Nov 2022, 10:43 last edited by
      #2

      @laozeng1982
      You are supposed to deploy your application from development to another machine, e.g. with linuxdeployqt.

      Nobody will be able to answer why a second machine seems to require root user instead of normal one from the description you have given. If you have not done so already, run your application from a terminal/command prompt on the second machine and see whether there is maybe some diagnostic output written to it when you invoke the Qt application.

      L 1 Reply Last reply 9 Nov 2022, 13:19
      0
      • L Offline
        L Offline
        laozeng1982
        wrote on 9 Nov 2022, 12:22 last edited by
        #3

        Thanks for your reply.

        I do run the program in second machine in terminal, but no more information output, even my debug output in the program I wrote not display in the terminal.

        Do we have a method to get the output by Qt application with setting some envioronment variables?

        Another question, I tried use the linuxdeployqt to depoly my program, but it seems not functionly work, it says my GLIBC is too high. But I have to run my program on RHEL 7.9.

        Thanks

        1 Reply Last reply
        0
        • J JonB
          9 Nov 2022, 10:43

          @laozeng1982
          You are supposed to deploy your application from development to another machine, e.g. with linuxdeployqt.

          Nobody will be able to answer why a second machine seems to require root user instead of normal one from the description you have given. If you have not done so already, run your application from a terminal/command prompt on the second machine and see whether there is maybe some diagnostic output written to it when you invoke the Qt application.

          L Offline
          L Offline
          laozeng1982
          wrote on 9 Nov 2022, 13:19 last edited by
          #4

          @JonB

          Hi, I mean use the ldd command to locate all the libs I need, so I can run it by ROOT, no libs error.

          When I run the program in terminal, it didn't say any issues about lib.

          J 1 Reply Last reply 9 Nov 2022, 13:28
          0
          • L laozeng1982
            9 Nov 2022, 13:19

            @JonB

            Hi, I mean use the ldd command to locate all the libs I need, so I can run it by ROOT, no libs error.

            When I run the program in terminal, it didn't say any issues about lib.

            J Offline
            J Offline
            JonB
            wrote on 9 Nov 2022, 13:28 last edited by
            #5

            @laozeng1982
            Write a one program which just creates a QWIdget and show()s it before app.exec(). Try that. Find out whether no Qt program runs or whether it's something in your actual application.

            1 Reply Last reply
            0

            2/5

            9 Nov 2022, 10:43

            • Login

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