All of lore.kernel.org
 help / color / mirror / Atom feed
* Qt5 using the DORA branch
@ 2013-12-04 11:19 Marco
  2013-12-04 12:12 ` Filip Piechocki
  0 siblings, 1 reply; 13+ messages in thread
From: Marco @ 2013-12-04 11:19 UTC (permalink / raw)
  To: meta-freescale@yoctoproject.org

Hello
This is likely the continuation up of thread "[meta-freescale] Error 
0x300b in Qt5 applications with EGLFS"


I am building qt5 using the DORA branch and meta-qt5.
These are my image settings:

IMAGE_INSTALL_append = "qtbase qtbase-fonts qtbase-plugins 
qtbase-examples cinematicexperience gstreamer nano cairo pango 
fontconfig freetype"
DISTRO_FEATURES_remove = "x11 wayland"


Build Configuration:
BB_VERSION        = "1.20.0"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "Ubuntu-12.04"
TARGET_SYS        = "arm-poky-linux-gnueabi"
MACHINE           = "imx6dlsabresd"
DISTRO            = "poky"
DISTRO_VERSION    = "1.5"
TUNE_FEATURES     = "armv7a vfp neon callconvention-hard cortexa9"
TARGET_FPU        = "vfp-neon"
meta
meta-yocto
meta-yocto-bsp    = "dora:75bed4086eb83f1d24c31392f3dd54aa5c3679b1"
meta-oe           = "dora:513e7ca20ddd0a5c3b649bf292a67c3e0473d3a8"
meta-fsl-arm      = "dora:5b3b6618426ad06e4fb6a3a77c4a53dfb47f0556"
meta-qt5          = "dora:cefaba69a785c5221463f0eb496b749d5ddf8a5a"


To successfully build qt5 I removed the cmake directory in 
recipes-devtools and apply this patch 
http://patchwork.openembedded.org/patch/60673/ to Qt5 (I know its not 
the best way and Otavio doesn’t like it :P ). I am also putting USE_X11 
= “no” in 
sources/meta-fsl-arm/recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q.inc 
so framebuffer gpu drivers get included.


I completed the bitbake successfully, then I created my SDcard.
Unfortunately now I have errors launching examples (see below)

root@imx6qsabresd:~# /usr/share/qt5/examples/gui/analogclock/analogclock
QXcbConnection: Could not connect to display
Aborted


root@imx6qsabresd:~# /usr/share/qt5/examples/gui/analogclock/analogclock 
-platform eglfs
evdevtouch: Using device /dev/input/event1
min X: 0 max X: 0
min Y: 0 max Y: 0
min pressure: 0 max pressure: 0
device name: max11801_ts
EGLFS: Unable to query physical screen size, defaulting to 100 dpi.
EGLFS: To override, set QT_QPA_EGLFS_PHYSICAL_WIDTH and 
QT_QPA_EGLFS_PHYSICAL_HEIGHT (in millimeters).
Qt Warning: Could not find a location of the system's Compose files. 
Consider setting the QTCOMPOSE environment variabl.
Protocol type A
Segmentation fault


What am I missing?
Any hint is greatly appreciated

Cheers
-- 
Marco Cavallini | KOAN sas | Bergamo - Italia
  embedded and real-time software engineering
Phone:+39-035-255.235 - Fax:+39-178-22.39.748
       http://www.KoanSoftware.com


^ permalink raw reply	[flat|nested] 13+ messages in thread
* Re: Qt5 using the DORA branch
@ 2013-12-04 15:53 Bergsma, Sake
  2013-12-04 15:58 ` Eric Bénard
  2013-12-04 17:46 ` Marco
  0 siblings, 2 replies; 13+ messages in thread
From: Bergsma, Sake @ 2013-12-04 15:53 UTC (permalink / raw)
  To: meta-freescale

[-- Attachment #1: Type: text/plain, Size: 1387 bytes --]

I think the line DISTRO_FEATURES_remove = "x11 wayland" 

is needed to remove x11 and wayland 

 

I also would suggest you to start again with a fresh build.

When I did do that it did work for me using this method:

 

Download the meta-qt5 layer in your sources folder:

git clone https://github.com:dora/meta-qt5/meta-qt5.git

 

In the build/conf/bblayer.conf file add:

${BSPDIR}/sources/meta-qt5 \

${BSPDIR}/sources/meta-openembedded/meta-ruby \             (not sure if
this one is needed)

 

In local.conf add: 

IMAGE_INSTALL_append = " kernel-modules fontconfig freetype qtbase
qtbase-plugins qtbase-tools qtbase-fonts cinematicexperience" 

DISTRO_FEATURES_remove = "x11 wayland" 

 

bitbake core-image-minimal

 

I did get an error about the
sources/meta-qt5/recipes-devtools/cmake/cmake_2.8.12.1.bbappend file 

and because dora has cmake 2.8.11.2 i decided to delete
cmake_2.8.12.1.bbappend to make it build.

 

deploy the image on your target

 

Start the Qt5 Demo:

Qt5_CinematicExperience -platform eglfs &

 

For the touch screen support in Qt:

 

Load your touch screen driver and:

 

export QT_QPA_EVDEV_TOUCHSCREEN_PARAMETERS=/dev/input/event2   (adjust
to your situation)

export QT_QPA_EGLFS_HIDECURSOR=1                        (remove the
mouse cursor)

 

With kind regards.


[-- Attachment #2: Type: text/html, Size: 8188 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread
* Re: Qt5 using the DORA branch
@ 2013-12-06 12:13 Bergsma, Sake
  2013-12-06 13:25 ` Marco
  2013-12-09  7:01 ` Marco
  0 siblings, 2 replies; 13+ messages in thread
From: Bergsma, Sake @ 2013-12-06 12:13 UTC (permalink / raw)
  To: meta-freescale

[-- Attachment #1: Type: text/plain, Size: 747 bytes --]

To all that have problems using Qt5:

 

I have a colleague who has a lot of experience building and configuring
qt5 with buildroot.

He told me that when rebuilding, Qt does not correctly changes its new
configuration 

and some files of the old output stay behind and are used again as input
and cause troubles.

 

So this is why I did put the advice to start with a clean build.

I know it takes time but only after I did do that everything build
correctly and the Cinematic Experience demo works.

 

To check the result of the qt configure you can take a look at this
file:

your_build_dir/tmp/work/cortexa9hf-vfp-neon-mx6-poky-linux-gnueabi/qtbas
e/5.1.1-r0/build/config.summary

With kind regards, Sake

 


[-- Attachment #2: Type: text/html, Size: 4130 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2013-12-09  7:01 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-04 11:19 Qt5 using the DORA branch Marco
2013-12-04 12:12 ` Filip Piechocki
2013-12-04 13:35   ` Marco
2013-12-04 13:51     ` Filip Piechocki
2013-12-04 13:51     ` Eric Bénard
2013-12-04 14:15     ` Otavio Salvador
2013-12-04 17:47       ` Marco
  -- strict thread matches above, loose matches on Subject: below --
2013-12-04 15:53 Bergsma, Sake
2013-12-04 15:58 ` Eric Bénard
2013-12-04 17:46 ` Marco
2013-12-06 12:13 Bergsma, Sake
2013-12-06 13:25 ` Marco
2013-12-09  7:01 ` Marco

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.