Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Special Interest Groups
  3. QtonPi
  4. Cross-compiling with root privileges?
Forum Updated to NodeBB v4.3 + New Features

Cross-compiling with root privileges?

Scheduled Pinned Locked Moved Solved QtonPi
3 Posts 2 Posters 1.8k 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.
  • feniks_fireF Offline
    feniks_fireF Offline
    feniks_fire
    wrote on last edited by feniks_fire
    #1

    Hey, I use wiringPi and every time when I run program from Qt I see this message:

    wiringPiSetup: Must be root. (Did you forget sudo?)
    The application ended output code 1.
    

    Is there any way to get root privileges for raspberry from cross-compiling in Qt ?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      See the last post on the RaspberryPi forums. Looks like a nice solution.

      Hope it helps

      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
      1
      • feniks_fireF Offline
        feniks_fireF Offline
        feniks_fire
        wrote on last edited by feniks_fire
        #3

        @SGaist thanks for nice solution ;).
        Problem solved.

        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