Skip to contentSkip to conversation

disabling configure features in qt5

DISCUSSION Ivan Sergio Borgonovo 2 participants 2 messages Sep 28, 2015 – Sep 29, 2015

lore
Share & tools
lore
#0 lore raw

Hi,

I'm trying to compile qt5 for an imx28 board without X, wayland, opengl, opengles, egl.

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.

Even a pointer to a related section of the FM will be appreciated.

thanks

Signature · 2 lines
Ivan Sergio Borgonovo
http://www.webthatworks.it
#1 lore raw

Hi,

Quoted 2 lines · Ivan Sergio Borgonovo

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.

Quoted 18 lines

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

(quoted diff) +0 -2
-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
Quoted 1 line

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.

Quoted 1 line

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

Signature · 2 lines
Anders Darander
ChargeStorm AB / eStorm AB