Yocto QT Hello World: Difference between revisions
(23 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
<!-- Set release according to "release" parameter in URL and use | <!-- Set release according to "release" parameter in URL and use MORTY_V1.0_DART-6UL as default | ||
--> {{# | --> {{INIT_RELEASE_PARAM|RELEASE_MORTY_V1.0_DART-6UL}}<!-- | ||
--> {{#lst: | --> {{#lst:Yocto_Platform_Customization|{{#var:RELEASE_PARAM}}}} <!-- | ||
--> {{PageHeader|{{#var:HARDWARE_NAME}} | --> {{#lst:B2QT_Platform_Customization|{{#var:RELEASE_PARAM}}}} <!-- | ||
--> {{#lst:Debian_Platform_Customization|{{#var:RELEASE_PARAM}}}} <!-- | |||
--> {{COMMON_YOCTO_VARS}} <!-- Include common yocto variables | |||
-->{{#switch:{{#var:SOC_FAMILY}} | |||
|am6={{#vardefine:TOOLCHAIN_URL|{{Varlink2|Yocto Toolchain installation|{{#var:RELEASE_LINK}}}}}} | |||
|#default={{#vardefine:TOOLCHAIN_URL|{{Varlink2|Yocto Qt{{#var:QT_VER}} Toolchain installation|{{#var:RELEASE_LINK}}}}}} | |||
}}<!-- | |||
--> {{PageHeader|{{#var:HARDWARE_NAME}} Qt{{#var:QT_VER}} Hello World}} {{DocImage|category1={{#var:HARDWARE_NAME}}|category2=Yocto}} __toc__ | |||
== | == Qt{{#var:QT_VER}} Toolchain Installation == | ||
A full Qt toolchain is needed in order to build Qt applications targeted for the embedded Yocto image.<br> | |||
toolchain | The toolchain must provide the Qt headers and libraries to link against in addition to the cross GCC and GDB tools.<br> | ||
against<br> | To install the Qt{{#var:QT_VER}} toolchain, follow the {{#var:TOOLCHAIN_URL}} guide. | ||
To install the | {{Note|A full Yocto OpenEmbedded environment is required for the toolchain generation.}} | ||
{{Note| | |||
{{#switch:{{#var:SOC_FAMILY}} | |||
|am6= | |||
== Qt Creator Environment == | |||
To use the SDK with Qt Creator, you must source the environment file: | |||
$ source {{#var:TOOLCHAIN_ROOT_LOCATION}}/environment-setup | |||
And then launch Qt creator from the command line: | |||
[linux-devkit]:~/> ~/Qt/Tools/QtCreator/bin/qtcreator.sh | |||
|#default={{#vardefine:TOOLCHAIN_URL|{{Varlink2|Yocto Qt{{#var:QT_VER}} Toolchain installation|{{#var:RELEASE_LINK}}}}}} | |||
}} | |||
== Yocto Qt Creator Guide == | == Yocto Qt Creator Guide == | ||
To install Qt Creator follow the {{Varlink2|Yocto Qt Creator|{{#var:RELEASE_LINK}}}} guide<br> | |||
In addition:<br> | In addition:<br> | ||
https://wiki.qt.io/Basic_Qt_Programming_Tutorial<br> | https://wiki.qt.io/Basic_Qt_Programming_Tutorial<br> | ||
https://wiki.qt.io <br> | https://wiki.qt.io <br> | ||
http://doc.qt.io/qtcreator/creator-tutorials.html<br> | http://doc.qt.io/qtcreator/creator-tutorials.html<br> | ||
http://doc.qt.io/qt- | http://doc.qt.io/qt-{{#var:QT_VER}}/qtexamplesandtutorials.html<br> | ||
https://www.gitbook.com/download/pdf/book/mimecar/ubuntu-touch-programming-course?lang=en |
Latest revision as of 18:31, 27 April 2023
This page is using the default release RELEASE_MORTY_V1.0_DART-6UL.
To view this page for a specific Variscite SoM and software release, please follow these steps:
- Visit variwiki.com
- Select your SoM
- Select the software release
Qt5 Toolchain Installation
A full Qt toolchain is needed in order to build Qt applications targeted for the embedded Yocto image.
The toolchain must provide the Qt headers and libraries to link against in addition to the cross GCC and GDB tools.
To install the Qt5 toolchain, follow the Yocto Qt5 Toolchain installation guide.
Yocto Qt Creator Guide
To install Qt Creator follow the Yocto Qt Creator guide
In addition:
https://wiki.qt.io/Basic_Qt_Programming_Tutorial
https://wiki.qt.io
http://doc.qt.io/qtcreator/creator-tutorials.html
http://doc.qt.io/qt-5/qtexamplesandtutorials.html
https://www.gitbook.com/download/pdf/book/mimecar/ubuntu-touch-programming-course?lang=en