questions for QT5 in yocto

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

questions for QT5 in yocto

8,095 Views
zhaozhoumeng
Contributor I

Hello, 

I'm working on the imx6q with fsl-community-bsp krogoth branch and meta-qt5 with the same branch.

So I build the fsl-multilmedia-full image for the board and add the qt5 in the image.

I have added the following codes in the local.conf (just a example, there are also some others dependencies package added), my questions are: 

1.  After created the image, I run the image on the board, I don't find the examples of QT5 like in the PC (there is not a  repertory /examples), but in the local.conf I added the "qtbase-examples and others examples" and there was not the error while building.

2. I have tried to use the bitbake -s | grep qtbase* to find the package "qtbase-fonts, qtbase-plugins, qtbase-tools and other package like that for QT " but I didn't find them, there is only qtbase package. There was not the error while building.

So I want to know why, is there anybody that can help me ?

Thanks very much

IMAGE_INSTALL_append = " 
    qtbase \     qtbase-fonts \     qtbase-plugins \     qtbase-tools \     qtbase-examples \     qtdeclarative \     qtdeclarative-plugins \     qtdeclarative-tools \     qtdeclarative-examples \     qtdeclarative-qmlplugins \     qtmultimedia \     qtmultimedia-plugins \     qtmultimedia-examples \     qtmultimedia-qmlplugins \     qtsvg \     qtsvg-plugins \     qtsensors \     qtimageformats-plugins \     qtsystems \     qtsystems-tools \     qtsystems-examples \     qtsystems-qmlplugins \     qtscript \     qt3d \     qt3d-examples \     qt3d-qmlplugins \     qt3d-tools \     qtwebkit \     qtwebkit-examples-examples \     qtwebkit-qmlplugins \     qtgraphicaleffects-qmlplugins \     qtconnectivity-qmlplugins \     qtlocation-plugins \     qtlocation-qmlplugins \     cinematicexperience \     "
Labels (2)
0 Kudos
Reply
3 Replies

2,961 Views
gusarambula
NXP TechSupport
NXP TechSupport

Hello Zhaozhou Meng


The image-multimedia and image-multimedia-full images are console-only, so you would need to add all the required packages to have qt working on your image.

I think the support for Qt5 is available only on the BSP releases and not on the Community BSP. I would recommend looking at the qt5 image recipe available on the BSP release and look for what the required packages and dependencies would be, as it’s not just a matter of adding packages but also setting the graphic server and backend.

Please let us know of your findings!

Regards,

0 Kudos
Reply

2,961 Views
zhaozhoumeng
Contributor I

Hi gusarambula, 

Thanks for your reply.

In fact, I followed the tuto of Building Qt5 using yocto on Wandboard - Wandboard Wiki (just use some new packages instead of old packages).

I builded the image for the use without x11 but directly using the frame buffer, so yes, I use the console only.

This works fine for my imx6 board, I tested the Qt example QT5_Cinematicexperience and that works fine, but I can't find others examples of QT5.

So I made the qt5-toolchain and compiled the QT example from the source and installed them on the image, that works perfect, I think that means that in my image it doesn't miss the dependencies for the QT.

What confused me is that while building yocto, when I add some packages in the local.conf and these packages aren't provided in the yocto recipes, the bitbake will give the error.

Like I said in first, for building the qt5, I added the packages like "qtbase-font, qtbase-example" that aren't provided in the yocto recipes(I used the bitbake -s | grep qtbase-font to look for these packages) and bitbake didn' give the errors !!  Why ?

Somebody can tell me what that means in meta-qt5 recipe: "PACKAGECONFIG[eglfs] = "-eglfs,-no-eglfs,drm"", please ?

Regards,

0 Kudos
Reply

2,961 Views
gusarambula
NXP TechSupport
NXP TechSupport

Hello Zhaozhou Meng,

How is your project so far?

What do you mean by packages that aren’t provided in the yocto recipes? If you mean packages from other layers then bitbake will give an error when baking if the layers aren’t added to the configuration of the build directory. You may add packages that are not part of the Community BSP, but you have to add the layer that contains them to bblayers.conf.

As for the eglfs packages, EGLFS is a plugin for running Qt applications on top of OpenGL ES 2.0 without a backend like X11 or Wayland.

Regards,

0 Kudos
Reply