[Buildroot] [PATCH] qt5: disable for static-only builds
Nimai Mahajan
nimaim at gmail.com
Wed Aug 26 17:33:41 UTC 2015
Thomas Petazzoni <thomas.petazzoni at ...> writes:
>
> Even though we have some specific code to support building Qt5 for
> static-only configurations, it doesn't work. The first problem is that
> our custom qmake.conf always passes -ldl, which makes a number of Qt5
> config.tests fail at configure time. Once this problem is fixed by
> removing -ldl from QMAKE_LIBS and adding it to QMAKE_LIBS_DYNLOAD
> instead, the next problem is that the plugin infrastructure of Qt5
> assumes that Linux has dynamic library support: the qlibrary_unix.cpp
> file includes <dlfcn.h>, and the only condition for this file to not
> be included is:
>
> Until recently, building Qt5 statically was working because our C
> library was not built static-only: it provided <dlfcn.h> and
> libdl.so. But now that we have a really static only toolchain, Qt5 no
> longer builds.
>
> The easiest solution is to simply make Qt5 depend on dynamic library
> support.
Highly recommend you disable static building for Qt anyway. There are
issues with building any plugins statically because of import paths and
such (see here: https://bugreports.qt.io/browse/QTBUG-35754). This is
not scheduled to be implemented til 5.6. They also recommend building
opengl as dynamic so the new framework can detect graphics libs at
startup (see here: http://doc.qt.io/qt-5/windows-
requirements.html#dynamically-loading-graphics-drivers) so that will
have to be revisited as well.
>
> [snip]
>
>
More information about the buildroot
mailing list