Qt5 build failed for Yocto/jethro

Yocto related software discussions are here

Qt5 build failed for Yocto/jethro

Postby Linux777 » Mon Feb 22, 2016 3:07 pm

Hello!
I'm trying to build Qt5 within Yocto/jethro branch but without success, while already have successful experience in building Qt5 for oe-core of "fido" branch.

The only solution I found over the internet is the following:
I finaly reproduced the same error.
I did not have it because during my compilation, I removed "x11"
from DISTRO_FEATURES. If you look at qtbase_git.bb, you can see that
some of PACKAGECONFIG_X11 features (gtkstyle) depend on "-accessibility" flag.


Who have same problems? Is this trouble known to other users and developers? May I expect patch soon or what I can do to solve this trap?

Code: Select all
| /oe/fsl-community-bsp/ipcam_build/tmp/work/cortexa9hf-vfp-neon-mx6qdl-poky-linux-gnueabi/qtbase/5.5.1+gitAUTOINC+5afc431323-r0/git/src/widgets/styles/qgtkstyle.cpp: In member function 'virtual QRect QGtkStyle::subControlRect(QStyle::ComplexControl, const QStyleOptionComplex*, QStyle::SubControl, const QWidget*) const':
| /oe/fsl-community-bsp/ipcam_build/tmp/work/cortexa9hf-vfp-neon-mx6qdl-poky-linux-gnueabi/qtbase/5.5.1+gitAUTOINC+5afc431323-r0/git/src/widgets/styles/qgtkstyle.cpp:3636:24: error: 'isInstanceOf' is not a member of 'QStyleHelper'
|              } else if (QStyleHelper::isInstanceOf(groupBox->styleObject, QAccessible::Grouping)) {
|                         ^
| /oe/fsl-community-bsp/ipcam_build/tmp/work/cortexa9hf-vfp-neon-mx6qdl-poky-linux-gnueabi/qtbase/5.5.1+gitAUTOINC+5afc431323-r0/git/src/widgets/styles/qgtkstyle.cpp:3636:74: error: 'QAccessible' has not been declared
|              } else if (QStyleHelper::isInstanceOf(groupBox->styleObject, QAccessible::Grouping)) {
|                                                                           ^
| moc /oe/fsl-community-bsp/ipcam_build/tmp/work/cortexa9hf-vfp-neon-mx6qdl-poky-linux-gnueabi/qtbase/5.5.1+gitAUTOINC+5afc431323-r0/git/src/widgets/widgets/qcalendarwidget.h
| compiling /oe/fsl-community-bsp/ipcam_build/tmp/work/cortexa9hf-vfp-neon-mx6qdl-poky-linux-gnueabi/qtbase/5.5.1+gitAUTOINC+5afc431323-r0/git/src/widgets/widgets/qcheckbox.cpp
| make[2]: *** [.obj/qgtkstyle.o] Error 1
| make[2]: *** Waiting for unfinished jobs....
| make[2]: Leaving directory `/oe/fsl-community-bsp/ipcam_build/tmp/work/cortexa9hf-vfp-neon-mx6qdl-poky-linux-gnueabi/qtbase/5.5.1+gitAUTOINC+5afc431323-r0/build/src/widgets'
| make[1]: *** [sub-widgets-make_first] Error 2
| make[1]: Leaving directory `/oe/fsl-community-bsp/ipcam_build/tmp/work/cortexa9hf-vfp-neon-mx6qdl-poky-linux-gnueabi/qtbase/5.5.1+gitAUTOINC+5afc431323-r0/build/src'
| make: *** [sub-src-make_first] Error 2
| ERROR: oe_runmake failed
Linux777
 
Posts: 8
Joined: Mon Feb 22, 2016 2:56 pm

Re: Qt5 build failed for Yocto/jethro

Postby Linux777 » Thu Mar 17, 2016 7:33 pm

I just created file with name
Code: Select all
qtbase_%.bbappend
in my personal layer for "jethro" branch with the following contents:
Code: Select all
QT_CONFIG_FLAGS_append = "${@base_contains('DISTRO_FEATURES', 'x11', ' -accessibility ', '', d)}"

Just single line to get successful build of Qt5.

Hope this helps someone for this and other iMX6-based boards... :P
Linux777
 
Posts: 8
Joined: Mon Feb 22, 2016 2:56 pm

Re: Qt5 build failed for Yocto/jethro

Postby lprocha » Tue Apr 26, 2016 6:58 pm

Iḿ new in embedded linux .

I have follow the wandboard whit qt5 wiki page .

could bitbke and generate the images and the qt sdk .

But now when i try to test the image iḿ getting a problem.

Running cinematiexperience whit -platform eglfs im getting the error below

root@wandboard:/usr/share/cinematicexperience-1.0# ./Qt5_CinematicExperience -platform eglfs
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
EGL Error : Could not create the egl surface: error = 0x300b

Aborted


To generate the images i remove x11 wayland at local.conf file .


Do you have any idea what could be the problem on that ?

Thanks

Lucas
lprocha
 
Posts: 10
Joined: Wed Mar 12, 2014 8:44 pm

Re: Qt5 build failed for Yocto/jethro

Postby Linux777 » Thu Apr 28, 2016 7:48 pm

lprocha wrote:To generate the images i remove x11 wayland at local.conf file .
Do you have any idea what could be the problem on that ?

What??? You removed X11 and still expecting to see OpenGL working?
AFAIK Mesa OpenGL implementation do not work without X11. I only know how to get OpenGL working on X11 system.

P.S.
Mesa could work on top of EGL, but I dont know how to cook that...
Linux777
 
Posts: 8
Joined: Mon Feb 22, 2016 2:56 pm

Re: Qt5 build failed for Yocto/jethro

Postby rahul12 » Sat Sep 23, 2017 11:22 am

When I was really sick and also was constrained at residence, my most unforgettable Diwali would certainly be. advance diwali wishes
rahul12
 
Posts: 4
Joined: Sun Sep 10, 2017 8:16 am

Re: Qt5 build failed for Yocto/jethro

Postby rajnifan » Thu Oct 12, 2017 3:01 pm

Deepawali is the greatest celebration in India and it’s most known celebration for Hindu’s. happy Deepavali Facbook Pictures and Deepavali gift ideas for employees
rajnifan
 
Posts: 1
Joined: Thu Oct 12, 2017 2:58 pm


Return to Software - Yocto

Who is online

Users browsing this forum: Baidu [Spider], Bing [Bot] and 2 guests