[Bug 266491] devel/cmake-doc building issue - no Qt platform plugin could be initialized

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Dec 6 13:51:51 GMT 2022


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=266491

--- Comment #6 from Adriaan de Groot <adridg at freebsd.org> ---
This is mostly a problem with the build environment (and partly a problem with
a totally different package): the error message tells you that your platform
plugin is set to "minimal", and the plugin-search-path is empty. The problem is
it doesn't find the plugin.

Now, an empty plugin path is not necessarily an issue: there are fallbacks. You
can experiment by setting these two variables (to a platform name, and to a
:-separated list of paths).

QT_QPA_PLATFORM
QT_QPA_PLATFORM_PLUGIN_PATH

As an example, setting the PLATFORM to "bogus" and the PATH to "/tmp" and then
running a Qt application will get you a meaningful error message. Setting that 
PATH variable explicitly to "", or leaving it unset, will get you a message
that more closely resembles your problem.

Normally, the "minimal" plugin lives in
/usr/local/lib/qt5/plugins/platforms/libqminimal.so -- take a look in that
directory which plugins you **do** have.

As for the totally different package problem: if you built x11-toolkits/qt5-gui
with the option X11=OFF, then you probably don't have a libqminimal.so (that
looks like a bug in that port). Probably no platform plugins at all. This will
make any kind of qt application with a GUI fail, since all of them are going to
try to load *some* platform plugin.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the kde-freebsd mailing list