TS-4900 QT5 IDE Setup

From embeddedTS Manuals
Revision as of 11:33, 28 July 2014 by Mark (talk | contribs) (Created page with "{{Note|This guide is intended for our stock image using systemd, but you are using a custom images the directions should apply if you rebuild with your own yocto toolchain (me...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Note: This guide is intended for our stock image using systemd, but you are using a custom images the directions should apply if you rebuild with your own yocto toolchain (meta-toolchain-qt5), and update the paths if you are using a different distribution.

Install qtcreator. The version from a recent Linux distribution should be fine. In a debian/Ubuntu desktop, run:

sudo apt-get update && sudo apt-get install qtcreator

You will also need to download the SDK which includes the QT support: [ x86] [ x86_64]

Start QT Creator and go to Tools->Options. In the left column of the Options menu, select "Build & Run". Start with the "QT Versions" tab, and click "Add" in the upper right to configure the TS-4900. In our default SDK on x86_64 this is "/opt/poky-systemd/1.6.1/sysroots/x86_64-pokysdk-linux/usr/bin/qt5/qmake". If you're using the x86 toolchain, "/opt/poky-systemd/1.6.1/sysroots/x86-pokysdk-linux/usr/bin/qt5/qmake".

Next go to the "Compilers" tab, and click "Add", and select "GCC". Set the Name to "TS-4900 GCC". For the "Compiler Path":
  • X86
    • /opt/poky-systemd/1.6.1/sysroots/x86-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-g++
  • X86_64
    • /opt/poky-systemd/1.6.1/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-g++
Next, go to the Debuggers tab, and click "Add". For name, specify "TS-4900 GDB". For the paths, specify the location of gdb:
  • X86
    • "/opt/poky-systemd/1.6.1/sysroots/x86-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gdb"
  • X86_64
    • /opt/poky-systemd/1.6.1/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gdb