Many thanks Leonardo.

However I still have some doubts: as far as I understood I should remove the 
dependencies from glib and gstreamer inside DEPENDS variable as it appears in 
qt4.inc file, otherwise BitBake, correctly, downloads and compiles them to 
satisfy Qt requirements, am I right?

If so, how can I avoid this from within my layer?

Regards, Matteo
________________________________________
From: Leonardo Sandoval <leonardo.sandoval.gonza...@linux.intel.com>
Sent: Monday, July 13, 2015 5:47 PM
To: Pampolini Matteo; yocto@yoctoproject.org
Subject: Re: [yocto] Which is the best strategy to customize Qt configuration?

On 07/13/2015 09:23 AM, Pampolini Matteo wrote:
> Hello everybody,
>
>
> my name is Matteo and I'm writing from Italy.
>
>
> I'm involved in a project that requires a very customized Linux installation 
> and I think Yocto is the best choice for this purpose.
>
>
> I was able to build and run some images from Poky 1.8 reference and now I'm 
> trying to create my own one, with a custom configuration of Qt for X11.
>
>
> In particular I would like to remove Phonon support to avoid GStreamer/GLib 
> dependencies: the quickest (and bad) solution was to modify 
> meta/recipes-qt/qt4/qt4.inc file and it works, of course.
>
>
> But in order to follow Yocto guidelines and learn the right approach, I would 
> like to create a new layer and, with proper use of .bbappend files, create my 
> own Qt custom configuration.
>

For this point, you can create a new layer and inside a new image file.
This image will basically inherit the one you want, then you need to
remove the specific recipe. A possible way to remove it is though
IMAGE_INSTALL_remove = "<pkg to remove">

>
> Now I'm in trouble a little bit because I do not exactly now which Qt-related 
> files should be included in my layer and how they should relate with the 
> provided ones, may you please help me?
>

Dependencies can be found using the '-g' bitbake command line. That
command produces .dot files, and you can parse these to figure out what
you want.

>
> Many thanks in advance for your kind support,
>
>
> Matteo
>
>
>
-- 
_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto

Reply via email to