New: Qt5: no fonts are installed
https://bugs.busybox.net/show_bug.cgi?id=6830
Summary: Qt5: no fonts are installed
Product: buildroot
Version: 2014.02
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P5
Component: Other
AssignedTo: unassigned at buildroot.uclibc.org
ReportedBy: syntheticpp at gmx.net
CC: buildroot at uclibc.org
Estimated Hours: 0.0
Qt5 was build with linuxfb only and widgets, fontconfig enabled, but /output/target/usr/lib/font is empty.
Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
[Buildroot] [Bug 6830] Qt5: no fonts are installed
https://bugs.busybox.net/show_bug.cgi?id=6830
--- Comment #1 from Thomas Petazzoni <[email protected]> 2014-02-01 08:50:14 UTC --- Interesting. We do have some code that should install fonts to the target
directory, when Qt has installed them to the staging directory. From
qt5base.mk:
define QT5BASE_INSTALL_TARGET_FONTS
if [ -d $(STAGING_DIR)/usr/lib/fonts/ ] ; then \
mkdir -p $(TARGET_DIR)/usr/lib/fonts ; \
cp -dpfr $(STAGING_DIR)/usr/lib/fonts/*$(TARGET_DIR)/usr/lib/fonts ; \
fi
endef
So maybe the specific configuration you're using does not install fonts to the staging directory.
Can you post your Buildroot .config file?
Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
[Buildroot] [Bug 6830] Qt5: no fonts are installed
In reply to bugzilla at busybox.nethttps://bugs.busybox.net/show_bug.cgi?id=6830
--- Comment #2 from syntheticpp at gmx.net 2014-02-01 11:57:47 UTC --- Seems -fontconfig disables font installation:
$cat qtbase/mkspecs/features/qpa/genericunixfontdatabase.prf CONFIG += qpa/basicunixfontdatabase
contains(QT_CONFIG, fontconfig) {
DEFINES += Q_FONTCONFIGDATABASE
LIBS += -lfontconfig
} else:!android { fonts.path = $$[QT_INSTALL_LIBS]/fonts
fonts.files = $$QT_SOURCE_TREE/lib/fonts/*
INSTALLS += fonts
}
Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
[Buildroot] [Bug 6830] Qt5: no fonts are installed
In reply to bugzilla at busybox.nethttps://bugs.busybox.net/show_bug.cgi?id=6830
syntheticpp at gmx.net changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID--- Comment #3 from syntheticpp at gmx.net 2014-02-01 15:31:55 UTC --- I also don't build freetype now, but have not tested if it's a requirement.
Overall, it's more a question of documentation.
Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
[Buildroot] [Bug 6830] Qt5: no fonts are installed
In reply to bugzilla at busybox.nethttps://bugs.busybox.net/show_bug.cgi?id=6830
Alexey Brodkin <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |VERIFIED
CC| |abrodkin at synopsys.com--- Comment #4 from Alexey Brodkin <[email protected]> --- Indeed with BR2_PACKAGE_QT5BASE_FONTCONFIG selected no fonts are installed in staging and essentially they won't get on target.
Moreover even if one puts fonts in /usr/lib/fonts on target they won't appear in Qt5 apps.
So I had to rebuild entire Qt5 after I disabled BR2_PACKAGE_QT5BASE_FONTCONFIG and fonts appeared in Qt apps.
Signature · 2 lines
You are receiving this mail because: You are on the CC list for the bug.