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. Qt 5.X Embedded Tutorials
Forum Update on Monday, May 27th 2025

Qt 5.X Embedded Tutorials

Scheduled Pinned Locked Moved Mobile and Embedded
3 Posts 2 Posters 2.8k Views
  • 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.
  • W Offline
    W Offline
    wcrandthor
    wrote on 16 Sept 2014, 17:56 last edited by
    #1

    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?

    1 Reply Last reply
    0
    • A Offline
      A Offline
      andreyc
      wrote on 16 Sept 2014, 18:10 last edited by
      #2

      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

      1 Reply Last reply
      0
      • W Offline
        W Offline
        wcrandthor
        wrote on 16 Sept 2014, 19:46 last edited by
        #3

        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-07.00.00.00/linux-devkit/sysroots/i686-arago-linux/usr/bin/arm-linux-gnueabihf- -sysroot ~/ti-sdk-am335x-evm-07.00.00.00/linux-devkit/sysroots/cortexa8hf-vfp-neon-3.8-oe-linux-gnueabi -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-07.00.00.00/linux-devkit/sysroots/cortexa8hf-vfp-neon-3.8-oe-linux-gnueabi

        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
        QMAKE_INCDIR_OPENGL_ES2, QMAKE_LIBDIR_OPENGL_ES2 and QMAKE_LIBS_OPENGL_ES2 in
        /home/mike/qt-everywhere-opensource-src-5.2.0/qtbase/mkspecs/devices/linux-beagleboard-g++.@

        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.

        1 Reply Last reply
        0

        1/3

        16 Sept 2014, 17:56

        • Login

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