TS-4900 QT5 IDE Setup: Difference between revisions

From embeddedTS Manuals
(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...")
 
No edit summary
Line 7: Line 7:


You will also need to download the SDK which includes the QT support:
You will also need to download the SDK which includes the QT support:
[ x86]
*[ftp://ftp.embeddedarm.com/ts-socket-macrocontrollers/ts-4900-linux/distributions/yocto/toolchain/poky-systemd-eglibc-i686-meta-toolchain-qt5-cortexa9hf-vfp-neon-toolchain-1.6.1.sh i686]
[ x86_64]
*[ftp://ftp.embeddedarm.com/ts-socket-macrocontrollers/ts-4900-linux/distributions/yocto/toolchain/poky-systemd-eglibc-x86_64-meta-toolchain-qt5-cortexa9hf-vfp-neon-toolchain-1.6.1.sh 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".
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".
Line 15: Line 15:
Next go to the "Compilers" tab, and click "Add", and select "GCC".  Set the Name to "TS-4900 GCC".  For the "Compiler Path":
Next go to the "Compilers" tab, and click "Add", and select "GCC".  Set the Name to "TS-4900 GCC".  For the "Compiler Path":
* X86
* X86
** /opt/poky-systemd/1.6.1/sysroots/x86-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-g++
** /opt/poky-systemd/1.6.1/sysroots/i686-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-g++
* X86_64
* X86_64
** /opt/poky-systemd/1.6.1/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-g++
** /opt/poky-systemd/1.6.1/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-g++


{| [[File:qtcompiler.png|300px|right|QT Compiler tab]] |}
{|
|[[File:qtcompiler.png|300px|right|QT Compiler tab]]  
|}


Next, go to the Debuggers tab, and click "Add".  For name, specify "TS-4900 GDB".  For the paths, specify the location of gdb:
Next, go to the Debuggers tab, and click "Add".  For name, specify "TS-4900 GDB".  For the paths, specify the location of gdb:
* X86
* X86
** "/opt/poky-systemd/1.6.1/sysroots/x86-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gdb"
** "/opt/poky-systemd/1.6.1/sysroots/i686-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gdb"
* X86_64
* X86_64
** /opt/poky-systemd/1.6.1/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gdb
** /opt/poky-systemd/1.6.1/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gdb

Revision as of 11:34, 28 July 2014

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:

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/i686-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++
QT Compiler tab

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/i686-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