Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. QtCreator cross-compilation sysfs GPIO permissions

QtCreator cross-compilation sysfs GPIO permissions

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
2 Posts 1 Posters 532 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.
  • J Offline
    J Offline
    jars121
    wrote on last edited by
    #1

    G'day,

    I've successfully built a cross-compiled Qt platform, with QtCreator deploying directly to my target Linux device (Raspberry Pi in this case).

    I'm trying to interact with GPIOs on the target device, and am having permissions issues with the SYSFS direction directory. I've read that this directory is linked to the kernel itself, which may be why I'm having issues. I've tried changing ownership of the /sys/class/gpio directory (chown -R pi:pi /sys/class/gpio), which allows me to export GPIOs when running the application from QtCreator, but I always received 'permission denied' when the application tries to set the direction of the exported GPIO(s).

    Can anyone suggest a solution to this issue?

    1 Reply Last reply
    0
    • J Offline
      J Offline
      jars121
      wrote on last edited by
      #2

      I've just added a usleep(100000) line prior to setting the direction of the GPIO, and I'm no longer receiving the permission denied error (but my application is now running very slowly!). As such I don't believe I have a particular issue with QtCreator itself.

      I'll leave this up in case anyone else has a similar issue. I'll be posting on SO now to try and resolve this permission/timing issue.

      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