Skip to contentSkip to conversation

Qt4 minimal subset

DISCUSSION Patrick 2 participants 8 messages Apr 10, 2012 – Apr 12, 2012

lore
Share & tools
lore

Patrick

author
#0 lore raw

Dear mailinglist,

I am working with yocto 1.1.1, poky 6.0.1. Until now I have build an embedded systems without display. Now I would like to add support for a small screen with Qt.

I have added to my image the qt4-x11-free recipes. This include so many things that I don't need as I am building an embedded system: Demos, example, docs, dev tools, ...

Which recipes could I use to include a working subset of Qt with X11 that include only base libraries and eventually some additional elements.

Thanks in advance for your help !

Patrick

#1 lore raw
Quoted 10 lines · On Tuesday 10 April 2012 17:36:17 Patrick wrote:

I am working with yocto 1.1.1, poky 6.0.1. Until now I have build an embedded systems without display. Now I would like to add support for a small screen with Qt.

I have added to my image the qt4-x11-free recipes. This include so many things that I don't need as I am building an embedded system: Demos, example, docs, dev tools, ...

Which recipes could I use to include a working subset of Qt with X11 that include only base libraries and eventually some additional elements.

When we package Qt, it is split into a number of packages for individual components; however if you install the qt4-x11-free *package* in your image, this pulls in everything. What you probably want to do is have a look at the packages it does produce and only include those that you need in your image rather than the qt4-x11-free package.

One way to get a list of the packages produced is to look in tmp/work/*/qt4- x11-free*/packages-split/.

Cheers,
Paul

Signature · 2 lines
Paul Eggleton
Intel Open Source Technology Centre
author
#2 lore raw
Quoted 18 lines · Paul Eggleton
Quoted 10 lines · On Tuesday 10 April 2012 17:36:17 Patrick wrote:

I am working with yocto 1.1.1, poky 6.0.1. Until now I have build an embedded systems without display. Now I would like to add support for a small screen with Qt.

I have added to my image the qt4-x11-free recipes. This include so many things that I don't need as I am building an embedded system: Demos, example, docs, dev tools, ...

Which recipes could I use to include a working subset of Qt with X11 that include only base libraries and eventually some additional elements.

When we package Qt, it is split into a number of packages for individual components; however if you install the qt4-x11-free *package* in your image, this pulls in everything. What you probably want to do is have a look at the packages it does produce and only include those that you need in your image rather than the qt4-x11-free package.

Quoted 6 lines

One way to get a list of the packages produced is to look in tmp/work/*/qt4- x11-free*/packages-split/.

Cheers,
Paul

Thanks Paul for your quick answers.

I was wondering if a "meta" package like qt4-x11-free was available with a smaller subset, including the most used package of Qt.

On aditional question; is it possible to build Qt with directFB instead X11 ? If yes how should I do ?

Thanks again for your help

Patrick

#3 lore raw
Quoted 2 lines · On Tuesday 10 April 2012 17:56:06 Patrick wrote:

I was wondering if a "meta" package like qt4-x11-free was available with a smaller subset, including the most used package of Qt.

Well, "most used" is somewhat subjective - it depends on what you're doing. We don't have any smaller package group for Qt - perhaps we should look at adding some additional package groupings in future though.

Quoted 2 lines

On aditional question; is it possible to build Qt with directFB instead X11 ? If yes how should I do ?

Yes, to do this, bitbake qt4-embedded instead of qt4-x11-free. Your application recipes (if you have any) should "inherit qt4e" rather than "inherit qt4x11" in this case, as the library names are different.

Cheers,
Paul

Signature · 2 lines
Paul Eggleton
Intel Open Source Technology Centre
author
#4 lore raw
Quoted 11 lines · Paul Eggleton
Quoted 2 lines · On Tuesday 10 April 2012 17:56:06 Patrick wrote:

I was wondering if a "meta" package like qt4-x11-free was available with a smaller subset, including the most used package of Qt.

Well, "most used" is somewhat subjective - it depends on what you're doing. We don't have any smaller package group for Qt - perhaps we should look at adding some additional package groupings in future though.

Quoted 2 lines

On aditional question; is it possible to build Qt with directFB instead X11 ? If yes how should I do ?

Quoted 7 lines

Yes, to do this, bitbake qt4-embedded instead of qt4-x11-free. Your application recipes (if you have any) should "inherit qt4e" rather than "inherit qt4x11" in this case, as the library names are different.

Cheers,
Paul

Thanks again for your answer. I have rebuild qt with DirectFB using qt4-embedded. I could start a Qt application on my board using QWS (test -qws). Is that right to start DirectFB or should I use another way ? I just would like to be sure that DirectFB is used and not simply the Linux framebuffer.

Thanks for your help

Patrick

#5 lore raw
Quoted 5 lines · On Wednesday 11 April 2012 09:52:38 Patrick wrote:

Thanks again for your answer. I have rebuild qt with DirectFB using qt4-embedded. I could start a Qt application on my board using QWS (test -qws). Is that right to start DirectFB or should I use another way ? I just would like to be sure that DirectFB is used and not simply the Linux framebuffer.

At this point I'd have to refer you to the Qt documentation, particularly the first link:

http://qt-project.org/doc/qt-4.8/qt-embedded-displaymanagement.html
http://qt-project.org/doc/qt-4.8/qt-embeddedlinux-directfb.html

Cheers,
Paul

Signature · 2 lines
Paul Eggleton
Intel Open Source Technology Centre
author
#6 lore raw
Quoted 7 lines · Paul Eggleton
Quoted 5 lines · On Wednesday 11 April 2012 09:52:38 Patrick wrote:

Thanks again for your answer. I have rebuild qt with DirectFB using qt4-embedded. I could start a Qt application on my board using QWS (test -qws). Is that right to start DirectFB or should I use another way ? I just would like to be sure that DirectFB is used and not simply the Linux framebuffer.

Quoted 9 lines

At this point I'd have to refer you to the Qt documentation, particularly the first link:

http://qt-project.org/doc/qt-4.8/qt-embedded-displaymanagement.html
http://qt-project.org/doc/qt-4.8/qt-embeddedlinux-directfb.html

Cheers,
Paul

One more question about Qt with poky;

Qt embedded work now on my target and I could easily compile some application based on it using bitbake.

I would like now to add the possibility to compile Qt based application from the "SDK". I have added the different -dev version of Qt to the "SDK" but qmake is missing. How could I add a working "cross" version of qmake ?

Thanks in advance for your help

Patrick

author
#7 lore raw
Quoted 29 lines · Patrick
Quoted 11 lines · Paul Eggleton
Quoted 5 lines · On Wednesday 11 April 2012 09:52:38 Patrick wrote:

Thanks again for your answer. I have rebuild qt with DirectFB using qt4-embedded. I could start a Qt application on my board using QWS (test -qws). Is that right to start DirectFB or should I use another way ? I just would like to be sure that DirectFB is used and not simply the Linux framebuffer.

At this point I'd have to refer you to the Qt documentation, particularly the
first link:

Quoted 6 lines

http://qt-project.org/doc/qt-4.8/qt-embedded-displaymanagement.html
http://qt-project.org/doc/qt-4.8/qt-embeddedlinux-directfb.html

Cheers,
Paul

One more question about Qt with poky;

Qt embedded work now on my target and I could easily compile some application based on it using bitbake.

I would like now to add the possibility to compile Qt based application from the "SDK". I have added the different -dev version of Qt to the "SDK" but qmake is missing. How could I add a working "cross" version of qmake ?

Quoted 7 lines

Thanks in advance for your help

Patrick
_______________________________________________
poky mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/poky

Ok I have found that I have to use the meta-toolchain-qte recipe.

Patrick