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 11:19 Marco
@ 2013-12-04 12:12 ` Filip Piechocki
  2013-12-04 13:35   ` Marco
  0 siblings, 1 reply; 13+ messages in thread
From: Filip Piechocki @ 2013-12-04 12:12 UTC (permalink / raw)
  To: meta-freescale

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

Hi!

Everything looks ok except this segfault ;) Can you run it under gdb and
show us where exactly it is crashing?

Cheers,
Filip


On Wed, Dec 4, 2013 at 12:19 PM, Marco <koansoftware@gmail.com> wrote:

> 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
> _______________________________________________
> meta-freescale mailing list
> meta-freescale@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-freescale
>

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

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

* Re: Qt5 using the DORA branch
  2013-12-04 12:12 ` Filip Piechocki
@ 2013-12-04 13:35   ` Marco
  2013-12-04 13:51     ` Filip Piechocki
                       ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Marco @ 2013-12-04 13:35 UTC (permalink / raw)
  To: meta-freescale

Il 04/12/2013 13:12, Filip Piechocki ha scritto:
> Hi!
>
> Everything looks ok except this segfault ;) Can you run it under gdb and
> show us where exactly it is crashing?
>

Hi Filip


(gdb) c
Continuing.

Program received signal SIGSEGV, Segmentation fault.
0x2bea0980 in gcoOS_DeinitLocalDisplayInfo (Display=0x0, 
localDisplay=localDisplay@entry=0x35eba99c)
     at gc_hal_user_wayland.c:2065
2065    gc_hal_user_wayland.c: No such file or directory.


Any clue?

TIA
-- 
Marco


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

* Re: Qt5 using the DORA branch
  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
  2 siblings, 0 replies; 13+ messages in thread
From: Filip Piechocki @ 2013-12-04 13:51 UTC (permalink / raw)
  To: meta-freescale

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

This "..._wayland.c" looks suspicious to me. Are you sure you are using
framebuffer variant of graphics libraries? Try 'ls -la /usr/lib/libGAL*'
and 'ls -la /usr/lib/libEGL*'.


On Wed, Dec 4, 2013 at 2:35 PM, Marco <koansoftware@gmail.com> wrote:

> Il 04/12/2013 13:12, Filip Piechocki ha scritto:
>
>  Hi!
>>
>> Everything looks ok except this segfault ;) Can you run it under gdb and
>> show us where exactly it is crashing?
>>
>>
> Hi Filip
>
>
> (gdb) c
> Continuing.
>
> Program received signal SIGSEGV, Segmentation fault.
> 0x2bea0980 in gcoOS_DeinitLocalDisplayInfo (Display=0x0,
> localDisplay=localDisplay@entry=0x35eba99c)
>     at gc_hal_user_wayland.c:2065
> 2065    gc_hal_user_wayland.c: No such file or directory.
>
>
> Any clue?
>
> TIA
> --
> Marco
>
> _______________________________________________
> meta-freescale mailing list
> meta-freescale@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-freescale
>

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

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

* Re: Qt5 using the DORA branch
  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
  2 siblings, 0 replies; 13+ messages in thread
From: Eric Bénard @ 2013-12-04 13:51 UTC (permalink / raw)
  To: koansoftware; +Cc: meta-freescale

Le Wed, 04 Dec 2013 14:35:54 +0100,
Marco <koansoftware@gmail.com> a écrit :

> Il 04/12/2013 13:12, Filip Piechocki ha scritto:
> > Hi!
> >
> > Everything looks ok except this segfault ;) Can you run it under gdb and
> > show us where exactly it is crashing?
> >
> 
> Hi Filip
> 
> 
> (gdb) c
> Continuing.
> 
> Program received signal SIGSEGV, Segmentation fault.
> 0x2bea0980 in gcoOS_DeinitLocalDisplayInfo (Display=0x0, 
> localDisplay=localDisplay@entry=0x35eba99c)
>      at gc_hal_user_wayland.c:2065
> 2065    gc_hal_user_wayland.c: No such file or directory.
> 
> 
> Any clue?
> 
strange to see a wayland related file here ...

Eric


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

* Re: Qt5 using the DORA branch
  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
  2 siblings, 1 reply; 13+ messages in thread
From: Otavio Salvador @ 2013-12-04 14:15 UTC (permalink / raw)
  To: Marco Cavallini; +Cc: meta-freescale@yoctoproject.org

On Wed, Dec 4, 2013 at 11:35 AM, Marco <koansoftware@gmail.com> wrote:
> Il 04/12/2013 13:12, Filip Piechocki ha scritto:
>
>> Hi!
>>
>> Everything looks ok except this segfault ;) Can you run it under gdb and
>> show us where exactly it is crashing?
>>
>
> Hi Filip
>
>
> (gdb) c
> Continuing.
>
> Program received signal SIGSEGV, Segmentation fault.
> 0x2bea0980 in gcoOS_DeinitLocalDisplayInfo (Display=0x0,
> localDisplay=localDisplay@entry=0x35eba99c)
>     at gc_hal_user_wayland.c:2065
> 2065    gc_hal_user_wayland.c: No such file or directory.
>
>
> Any clue?

Revert the changes in recipes-graphics :-(

-- 
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750


^ 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-04 15:53 Qt5 using the DORA branch Bergsma, Sake
@ 2013-12-04 15:58 ` Eric Bénard
  2013-12-04 17:46 ` Marco
  1 sibling, 0 replies; 13+ messages in thread
From: Eric Bénard @ 2013-12-04 15:58 UTC (permalink / raw)
  To: Bergsma, Sake; +Cc: meta-freescale

Hi Le Wed, 4 Dec 2013 16:53:20 +0100,
"Bergsma, Sake" <S.Bergsma@neopost.com> a écrit :
> 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)
> 
it's needed for webkit IIRC.

Eric


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

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

Il 04/12/2013 16:53, Bergsma, Sake ha scritto:
> 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.
>
>


Hi Sake
Doing as you said I get an error
http://pastebin.com/aa82mkGG


-- 
Marco


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

* Re: Qt5 using the DORA branch
  2013-12-04 14:15     ` Otavio Salvador
@ 2013-12-04 17:47       ` Marco
  0 siblings, 0 replies; 13+ messages in thread
From: Marco @ 2013-12-04 17:47 UTC (permalink / raw)
  To: meta-freescale@yoctoproject.org

Il 04/12/2013 15:15, Otavio Salvador ha scritto:

>
> Revert the changes in recipes-graphics :-(
>


Ho Otavio,

I restored the original file
meta-fsl-arm/recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q.inc

Doing as you said I get an error when I rebuild
http://pastebin.com/aa82mkGG

-- 
Marco


^ 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

* 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
  1 sibling, 0 replies; 13+ messages in thread
From: Marco @ 2013-12-06 13:25 UTC (permalink / raw)
  To: meta-freescale

Il 06/12/2013 13:13, Bergsma, Sake ha scritto:
> 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/qtbase/5.1.1-r0/build/config.summary
>
> With kind regards, Sake
>

Good to know,
thank you


-- 
Marco


^ 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
  1 sibling, 0 replies; 13+ messages in thread
From: Marco @ 2013-12-09  7:01 UTC (permalink / raw)
  To: meta-freescale

Il 06/12/2013 13:13, Bergsma, Sake ha scritto:
> 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/qtbase/5.1.1-r0/build/config.summary
>
> With kind regards, Sake
>



Hi Sake
I rebuilt all from scratch.
I was able to build with the following settings but I am not able to run 
Qt5 apps on my iMX6 target.

IMAGE_INSTALL_append = " qtbase qtbase-fonts qtbase-plugins 
qtbase-examples qtbase-tools cinematicexperience gstreamer fontconfig 
freetype "
DISTRO_FEATURES_remove = "x11 wayland"

meta-yocto-bsp    = "dora:53d2563ff13fcec74d4250bef5419e36169e55cc"
meta-oe           = "dora:513e7ca20ddd0a5c3b649bf292a67c3e0473d3a8"
meta-fsl-arm      = "dora:87601e5fc93b422347b22fe6d41f38f18f6ee9ec"
meta-qt5          = "dora:cefaba69a785c5221463f0eb496b749d5ddf8a5a"

Which branch are you using (for yocto and meta-qt5)?
Are you applying any patch to meta-qt5?

TIA
-- 
Marco


^ 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 15:53 Qt5 using the DORA branch Bergsma, Sake
2013-12-04 15:58 ` Eric Bénard
2013-12-04 17:46 ` Marco
  -- strict thread matches above, loose matches on Subject: below --
2013-12-06 12:13 Bergsma, Sake
2013-12-06 13:25 ` Marco
2013-12-09  7:01 ` Marco
2013-12-04 11:19 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

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.