[poky] disabling configure features in qt5
Anders Darander
anders at chargestorm.se
Tue Sep 29 00:18:32 PDT 2015
Hi,
* Ivan Sergio Borgonovo <mail at webthatworks.it> [150928 20:51]:
> I'm trying to compile qt5 for an imx28 board without X, wayland, opengl,
> opengles, egl.
Ok. I'm building qt5 without all of that as well. I don't have any GUI
at all, so I'm only interested in the core part of qt5.
> Now I'm stuck on trying to really disable opengl since no matter if I have
> DISTRO_FEATURES_remove = "x11 wayland opengl pulseaudio opengles egl"
> when I'm baking meta-toolchain-qt5
> packagegroup-qt5-toolchain-target.bb
> requires qt3d-dev, qt3d-mkspecs, qt3d-qmlplugins that end up in generating
> this error.
> | Project ERROR: Unknown module(s) in QT: openglextensions
> | Makefile:76: recipe for target 'sub-render-make_first' failed
> | make[1]: *** [sub-render-make_first] Error 3
> Ideally I'd prefer to keep qt3d enabled and just pass to configure
> -no-opengl and a bunch of other options (-tslib, -no-pch, -no-xcb,
> -no-opengl -no-openssl -no-libudev -no-fontconfig) but I really don't know
> where to start.
If you're building meta-toolchain-qt5, I think you'll be forced to
remove e.g. qt3d-* from packagegroup-qt5-toolchain-target.bb. You can do
this from a bbappend using the _remove operator.
I'm not using meta-toolchain-qt5 to build the SDK for my application
developers, rather I'm using bitbake image-name -c populate_sdk.
> Even a pointer to a related section of the FM will be appreciated.
Apart from using the populate_sdk task to create my SDK, I'm also using
the following in my qtbase_%.bbappend:
===========
PACKAGECONFIG_SYSTEM = "zlib"
PACKAGECONFIG_DEFAULT = "dbus udev libs"
PACKAGECONFIG += "sql-sqlite nofreetype noqpa"
PACKAGECONFIG[gui] = "-gui,-no-gui"
PACKAGECONFIG[eglfs] = "-eglfs,-no-eglfs"
PACKAGECONFIG[gif] = ",-no-gif"
PACKAGECONFIG[nofreetype] = "-no-freetype"
PACKAGECONFIG[noqpa] = "-no-qpa-platform-guard"
==========
And in my qttools_%.bbappend:
DEPENDS_remove = "qtdeclarative"
This allows me to avoid building any of the GUI parts of Qt5.
Cheers,
Anders
--
Anders Darander
ChargeStorm AB / eStorm AB
More information about the poky
mailing list