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.
  • laozeng1982L Offline
    laozeng1982L Offline
    laozeng1982
    wrote on 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~

    JonBJ 1 Reply Last reply
    0
    • laozeng1982L laozeng1982

      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~

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

      laozeng1982L 1 Reply Last reply
      0
      • laozeng1982L Offline
        laozeng1982L Offline
        laozeng1982
        wrote on 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
        • JonBJ JonB

          @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.

          laozeng1982L Offline
          laozeng1982L Offline
          laozeng1982
          wrote on 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.

          JonBJ 1 Reply Last reply
          0
          • laozeng1982L laozeng1982

            @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.

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

            • Login

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