Page 1 of 1

Buildroot + QT C/C++ programming

Posted: Fri Oct 23, 2015 9:42 am
by ciclonite
Hi all,
this is my first post on english forum. Sorry for my bad english but my primary language is Italian.
I need a help for start a project with raspberry PI + buildroot and QT.
I've installed on my Raspberry PI model B the https://github.com/pbouda/buildroot-qt-dev Buildroot Qt, and configure the QT OpenSource for the cross compiling. Everything works fine.
I want to use c/c++ as primary language form my application ( read a temperature from GPIO , command a relay ..etc)..
The system must be stable.
Which is the best solution for use gpio in c/c++?
- Using Sysfs?
- Using Direct Registry Access?
- Other?
Please someone have some resource to study?
Thanks a lot.

Re: Buildroot + QT C/C++ programming

Posted: Fri Oct 23, 2015 12:13 pm
by DougieLawson
You may be more comfortable writing on viewforum.php?f=79 in Italian.

The easy to use library for GPIO is Gordon's WiringPi, which is pre-installed on Jessie.

Re: Buildroot + QT C/C++ programming

Posted: Fri Oct 23, 2015 12:36 pm
by ciclonite
DougieLawson wrote:You may be more comfortable writing on viewforum.php?f=79 in Italian.

The easy to use library for GPIO is Gordon's WiringPi, which is pre-installed on Jessie.
Thanks a lot DougeLawson, but in the Italian forum there insn't skilled people like here.. :)
I'have take a look at WiringPi but it's too much at higher level of abstraction..
Have you never used the pigpio library?
Thanks a lot!
Giovanni

Re: Buildroot + QT C/C++ programming

Posted: Fri Oct 23, 2015 1:49 pm
by DougieLawson
I like Joan's pigpio library, it's nice and simple, but it's not pre-installed in Raspbian.

Re: Buildroot + QT C/C++ programming

Posted: Fri Oct 23, 2015 1:52 pm
by ciclonite
It's Perfect! Now i'm facing another problem.. buildroot, i'm unable to add and compile the package pigpio .. i need to study buildroot .. :) I hope google it's my friend..
Thanks again for the quick reply.
Giovanni

Re: Buildroot + QT C/C++ programming

Posted: Sun Oct 25, 2015 12:42 am
by yasriady
I made my cross compilation toolchain with buildroot. It's perfect and provide automation to build both your target and host dependency libraries for ie: x11, gtk, sqlite3, databases, and many packages to choose from.

I hope this blog with give some idea to begin with: http://yasriady.blogspot.co.id/2015/10/ ... ry-pi.html