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. Deploy wiringpi libraries while cross compiling
Forum Updated to NodeBB v4.3 + New Features

Deploy wiringpi libraries while cross compiling

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
4 Posts 4 Posters 836 Views 2 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.
  • G Offline
    G Offline
    grk3010
    wrote on last edited by
    #1

    Has anyone had any luck deploying wiringpi or similar libaries during cross compiling to a rpi3?

    I've been doing some experimentation (successfully) with controlling the GPIO pins using direct register access by just defining a new "mmapGpio" class using modified code from here:
    http://www.hertaville.com/rpimmapgpio.html

    I am deploying this on a lightweight embedded linux image on rpi3 that does not have the wiringpi libraries installed. This approach is working fine, but where I am running into problems is when I try to incorporate additional features such as interrupts and integrating analog i/o cards. This is where I need to use the wiringpi or similar libraries.

    Do I need to build or find an embedded linux image that includes the wiringpi libraries. Or is there any other way to accomplish this or deploy the libraries during cross compile?

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

      Hi,

      Cross-compilation and deployment are two different things.

      The best thing is usually get the library with the distribution/image whatever you use for your target as it’s ready to use.

      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
      • S Offline
        S Offline
        sukoon
        wrote on last edited by
        #3

        Hi @grk3010 ,
        Did you find a way to include wiring Pi library in your linux image?
        I'm using a RPi4 with an ubuntu 18.04 server image installed on it, and want to use the wiring Pi to access the GPIOs instead of using sysfs(this uses more overhead). Can you please share resources to help me set up wiringPi on this system. Thanks!

        jsulmJ 1 Reply Last reply
        0
        • S sukoon

          Hi @grk3010 ,
          Did you find a way to include wiring Pi library in your linux image?
          I'm using a RPi4 with an ubuntu 18.04 server image installed on it, and want to use the wiring Pi to access the GPIOs instead of using sysfs(this uses more overhead). Can you please share resources to help me set up wiringPi on this system. Thanks!

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @sukoon Install libwiringpi2 and libwiringpi-dev on your RPi using apt and then sync your sysroot.

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          1

          • Login

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