Qt 5.X Embedded Tutorials

  • Are there any tutorials on this site, or around the web for getting started (in the most basic sense) with Qt 5.2 (or any Qt5.X) development for embedded devices?

    What I'm hoping to find is something like:

    • download a tool chain (here's an example)
    • set up your sysroot (and an example)
    • run this configure command, and here's what all these options mean as well as other options you could pick
    • build with this command
    • you'll need this executable and these shared objects dumped to these locations on your target

    I'm just looking for something simple, like "hello world" with a button to close the application. Something run with EGLFS and handling input via tslib.

    Frankly I don't care if it's a tutorial like this using raw source or Qt Creator... I just can't seem to find a good basic tutorial that helps to introduce the system setup and configurations. I don't care so much about fancy graphics or animations at this point, I just want to get a good clean understandable setup first.

    Does anyone have links (internal or external to this site) to documents/tutorials/faqs/videos anything that covers this type of information?

  • Here is a list of Rasberry Pi related articles on this site
    "Qt on Pi":http://qt-project.org/wiki/qt-raspberrypi
    "Beginner’s guide to cross-compile Qt5 on RaspberryPi":https://qt-project.org/wiki/RaspberryPi_Beginners_guide
    "Native Build of Qt 5 on a Raspberry Pi":http://qt-project.org/wiki/Native_Build_of_Qt5_on_a_Raspberry_Pi

  • I'm looking to do a cross-compile, not a native compile. So the second link was the one I was looking for, but it doesn't seem to work correctly. The instructions from the link say the configure command should be:

    @./configure -opengl es2 -device linux-rasp-pi-g++ -device-option CROSS_COMPILE=~/opt/gcc-4.7-linaro-rpi-gnueabihf/bin/arm-linux-gnueabihf- -sysroot /mnt/rasp-pi-rootfs -opensource -confirm-license -optimized-qmake -reduce-relocations -reduce-exports -release -make libs -prefix /usr/local/qt5pi@

    I'm compiling for the TI AM335x EVM instead, so the closest target is the begleboard, and the tool chain is provided by the TI SDK, so instead my configure command should be:

    @./configure -opengl es2 -device linux-beagleboard-g++ -device-option CROSS_COMPILE=~/ti-sdk-am335x-evm- -sysroot ~/ti-sdk-am335x-evm- -opensource -confirm-license -optimized-qmake -reduce-relocations -reduce-exports -release -make libs -prefix /opt/qt5-am335x@

    However that comes back with errors WRT the architecture and OpenGL functionality:

    @Note: PKG_CONFIG_SYSROOT_DIR automatically set to /home/mike/ti-sdk-am335x-evm-

    Could not determine the target architecture!
    Turn on verbose messaging (-v) to see the final report.
    The OpenGL ES 2.0 functionality test failed!
    You might need to modify the include and library search paths by editing

    Hard to tell why exactly it's having issues, I feel like if the tutorial described what/why it picked the configuration options it did, it would have helped.

Log in to reply

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