Search code examples
fontsqt5buildroot

Qt5 on Buildroot : fonts not rendered


I'm using Buildroot 2018.11 and Qt5, no OpenGL.

I can launch my application with the -platform xcb in Xorg or -platform linuxfb:fb=/dev/fb0 in the console.

However, in both cases, the fonts are not rendered : absolutely no text is displayed (menu bar, labels, etc.).

I enabled Qt5 fontconfig support. I have some fonts under /usr/share/fonts (X11/ and liberation/). I made a symlink (ln -s /usr/share/fonts /usr/lib/fonts) so that Qt does not complain.

I'm really stuck here. Any idea ?


Solution

  • I fixed it by enabling fontconfig and rebuilding qt5base.