Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Qt project run on raspberry pi boot
Forum Update on Monday, May 27th 2025

Qt project run on raspberry pi boot

Scheduled Pinned Locked Moved Solved Mobile and Embedded
6 Posts 4 Posters 2.3k 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.
  • A Offline
    A Offline
    aysenur
    wrote on 4 May 2018, 13:11 last edited by
    #1

    Re: run application on startup (raspberry PI)

    This is an old topic but I could not solve. I add the path and the run code on rc.local but pi does not start my application on boot. I copied the same path in home/pi/.bashrc file, this works when I click to terminal. How can I make my program to start on the boot of my raspberry pi?
    Thank you

    J 1 Reply Last reply 4 May 2018, 14:08
    0
    • A aysenur
      4 May 2018, 13:11

      Re: run application on startup (raspberry PI)

      This is an old topic but I could not solve. I add the path and the run code on rc.local but pi does not start my application on boot. I copied the same path in home/pi/.bashrc file, this works when I click to terminal. How can I make my program to start on the boot of my raspberry pi?
      Thank you

      J Online
      J Online
      JonB
      wrote on 4 May 2018, 14:08 last edited by
      #2

      @aysenur
      Assuming there is nothing at all Qt in this question, you may get answers by posing it outside of anything Qt on, say, stackoverflow.

      J 1 Reply Last reply 4 May 2018, 14:34
      0
      • P Offline
        P Offline
        Pablo J. Rogina
        wrote on 4 May 2018, 14:28 last edited by
        #3

        @aysenur I agree with @JonB it looks like your issue is not related to Qt itself. However, just in case, have you tried starting a different application from rc.local (please use a GUI app...) to check what could be wrong?

        Upvote the answer(s) that helped you solve the issue
        Use "Topic Tools" button to mark your post as Solved
        Add screenshots via postimage.org
        Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

        1 Reply Last reply
        1
        • J JonB
          4 May 2018, 14:08

          @aysenur
          Assuming there is nothing at all Qt in this question, you may get answers by posing it outside of anything Qt on, say, stackoverflow.

          J Online
          J Online
          JonB
          wrote on 4 May 2018, 14:34 last edited by
          #4

          @JonB
          And to add to what @Pablo-J-Rogina is suggesting, might it to be that wherever from your rc.local is too early to run a Qt if it is using a UI? By the time it gets to your ~/.bashrc file that's per user and you'll need & have a desktop, if you try to run it outside login the desktop might not be available or may not be allowed access?

          1 Reply Last reply
          0
          • J Offline
            J Offline
            J.Hilk
            Moderators
            wrote on 4 May 2018, 19:24 last edited by
            #5

            I would suggest going to
            ~/.config/lxsession/LXDE-pi/autostart
            and add your application to that file.

            something like this:
            @sudo /path/to/QtApp

            works fine for me


            Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


            Q: What's that?
            A: It's blue light.
            Q: What does it do?
            A: It turns blue.

            1 Reply Last reply
            2
            • A Offline
              A Offline
              aysenur
              wrote on 7 May 2018, 06:57 last edited by aysenur 5 Jul 2018, 10:50
              #6

              Thank you for your suggestions. I asked here because many people solved the issue with rc.local for python. I tried @J.Hilk suggestion. This solved the problem. Thank you. I also asked in raspberrypi forum. From the replies ; systemd under etc forlder is for this purpose and creating a service would solve the problem.

              1 Reply Last reply
              0

              5/6

              4 May 2018, 19:24

              • Login

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