crosscompiling to run C code on Raspberry Pi
-
Can anybody point me to tutorial ( from experience , not "ask Mrs Google" , been there done that ) on how to setup to crosscomplie Qt Creator for Raspberry Pi ?
Preferably in English - found one in German.
Preferably via remote access to RPi - SSH.
Definitely NO utube - text only.
True crosscompile - not to load QtCreator on RPi - do not have enough RAM to do that .
Thanks -
Can anybody point me to tutorial ( from experience , not "ask Mrs Google" , been there done that ) on how to setup to crosscomplie Qt Creator for Raspberry Pi ?
Preferably in English - found one in German.
Preferably via remote access to RPi - SSH.
Definitely NO utube - text only.
True crosscompile - not to load QtCreator on RPi - do not have enough RAM to do that .
Thanks@AnneRanch
why not simply install it from the repos?
https://packages.debian.org/de/buster/qtcreator -
Hi
You mean something like this
https://mechatronicsblog.com/cross-compile-and-deploy-qt-5-12-for-raspberry-pi/ -
Can anybody point me to tutorial ( from experience , not "ask Mrs Google" , been there done that ) on how to setup to crosscomplie Qt Creator for Raspberry Pi ?
Preferably in English - found one in German.
Preferably via remote access to RPi - SSH.
Definitely NO utube - text only.
True crosscompile - not to load QtCreator on RPi - do not have enough RAM to do that .
Thanks@AnneRanch said in crosscompiling to run C code on Raspberry Pi:
True crosscompile - not to load QtCreator on RPi - do not have enough RAM to do that .
ThanksI am not sure to understand what you want to do!
Do you want to cross-compile Qt Creator for RPi or create a cross-compiled Qt Kit for RPi?If the second is what you want to do, then the link suggested by @mrjj is what you need.
-
Hi
You mean something like this
https://mechatronicsblog.com/cross-compile-and-deploy-qt-5-12-for-raspberry-pi/@mrjj Thanks for very constructive post .
Progress report - so far so good
Now for simple code to verify crosssscomplie... flash LED ??? -
@mrjj Thanks for very constructive post .
Progress report - so far so good
Now for simple code to verify crosssscomplie... flash LED ???@AnneRanch said in crosscompiling to run C code on Raspberry Pi:
so far so good
Indeed you're just actually testing that your RPi device is accessible from Qt Creator. And that you eventually will be able to deploy any file(s) to it.
Up to this point you should have already cross-compiled Qt and have setup a kit in Qt Creator to use that Qt component.
simple code to verify crosssscomplie... flash LED ???
why not to create some Qt widgets instead? i.e. simple QMainWindow
For accessing RPi GPIO from C/C++ you may need to resort to some helper libary, i.e. libgpiod.
See this blog post just in case.