Qt-app embedded on Raspberry Pi (B+)



  • I've been building my own media center in Qt/C++ which seems to run fine on my Mac and my Ubuntu machines.
    I'm primarily using QtWebKit.

    I've just bought a Raspberry Pi B+ and would love to get it on there.

    Googling around shows a lot of tutorials on compiling to the Pi on Raspbian and other distro's, but I would love to run the Qt-app embedded on the Raspberry Pi, so I'm only getting the actual Qt-app on there on not other operating system stuff... So the goal is to have a Pi booting into the Qt-app within seconds not showing anything else but the app (no boot messages, no operating system stuff, no nothing).

    I've been reading on the http://qt-project.org/doc/qt-5/embedded-linux.html site, but as I'm a complete newbee on the Raspberry Pi and on compiling my own kernel, toolchain etc. I would love to know if there exists some sort of tutorial, image or other guide to how I can achieve my goal?

    I'm not interested in rpi-buildroot, buildroot-rpi and other open source projects, as I would like to know how do this kind of stuff and know exactly (to some extend) what's compiled to my Pi.

    So, the goal is to get a Qt-app running embedded on the Pi with QtWebKit etc. being able to show HD video (via Webkit). The Qt-app I've got.


  • Lifetime Qt Champion

    Hi and welcome to devnet,

    You should still consider open-source projects like buildroot. With it you can start with a functional setup that you know works for the RPi and fiddle with it.

    Otherwise you'll have to first build the cross-tool chain (trust me, you don't want to do that), get the correct boot loader (with the correct parameters to load the kernel), kernel and correct kernel options (again, if you don't need to do that by trial and error, it's better) and then create the root filesystem which means cross-compiling every package and their dependencies by hand which is not always trivial.

    So while your goal is respectable, I'd recommend to not ignore what already exists. You will be able to learn from it without all the problems that might arise when starting from scratch.



  • Hello,

    Thank you very much for the answer.

    I've written it wrong. I'm OK with using buildroot (http://buildroot.uclibc.org/) and also do believe this is the way to go.
    But I've seen other open source projects which have changed buildroot for specific purposes, such as rpi-buildroot, buildroot-rpi and others. Those are the ones I'm "afraid" to use.

    I would love to create my own Raspberry Pi image by using original buildroot, Qt embedded, Webkit (or QtWebKit) and such.

    Just so I learn how to due it, but also can update Qt, buildroot, Linux distro independently in the future if nessecary.


  • Lifetime Qt Champion

    Don't be afraid, search what they modified, that might help you understand how things works faster.



  • I will and are trying to get a grasp of it.
    However I would love if there was some kind of tutorial walking me through the various steps on how do to it on my own.
    Ending up with a minimal install for my Qt-app.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.