VAR-SOM-MX6 QT Hello World: Difference between revisions
From Variscite Wiki
Line 26: | Line 26: | ||
$ mkdir qtapps | $ mkdir qtapps | ||
$ cd qtapps | $ cd qtapps | ||
$ cp -a ../build_x11/tmp/work/cortexa9hf-vfp-neon-mx6qdl-poky-linux-gnueabi/qtbase/5.4.2+gitAUTOINC+2cb17c1fb9-r0/ | $ cp -a ../build_x11/tmp/work/cortexa9hf-vfp-neon-mx6qdl-poky-linux-gnueabi/qtbase/5.4.2+gitAUTOINC+2cb17c1fb9-r0/git/examples/opengl/hellowindow/ ./ | ||
$ cd hellowindow | $ cd hellowindow | ||
$ source /opt/poky/1.8/environment-setup-cortexa9hf-vfp-neon-poky-linux-gnueabi | $ source /opt/poky/1.8/environment-setup-cortexa9hf-vfp-neon-poky-linux-gnueabi | ||
</pre> | </pre> | ||
Build the QT application: | |||
<pre> | <pre> | ||
$ qmake | |||
$ make clean | |||
$ make | |||
$ qmake | |||
</pre> | </pre> | ||
<pre> | <pre> | ||
copy the hellowindow to your target and run it | copy the hellowindow to your target and run it | ||
export DISPLAY=:0.0 | export DISPLAY=:0.0 | ||
./hellowindow --platform | ./hellowindow --platform xcb | ||
</pre> | </pre> |
Revision as of 15:58, 15 December 2015
VAR-SOM-MX6 - QT5 Hello World
Build and install tools
$ cd ~/var-som-mx6-yocto-fido/ $ . ./setup-environment build_x11
edit local.conf and add to the bottom:
# EXTRA_IMAGE_FEATURES = "debug-tweaks tools-debug eclipse-debug"
Build:
$ bitbake meta-toolchain-qt5
Install:
$ tmp/deploy/sdk/poky-glibc-x86_64-meta-toolchain-qt5-cortexa9hf-vfp-neon-toolchain-1.8.sh Keep the default install directory /opt/poky/1.8
sample application
$ cd ~/var-som-mx6-yocto-fido/ $ mkdir qtapps $ cd qtapps $ cp -a ../build_x11/tmp/work/cortexa9hf-vfp-neon-mx6qdl-poky-linux-gnueabi/qtbase/5.4.2+gitAUTOINC+2cb17c1fb9-r0/git/examples/opengl/hellowindow/ ./ $ cd hellowindow $ source /opt/poky/1.8/environment-setup-cortexa9hf-vfp-neon-poky-linux-gnueabi
Build the QT application:
$ qmake $ make clean $ make
copy the hellowindow to your target and run it export DISPLAY=:0.0 ./hellowindow --platform xcb