diff options
| author | Michael Weghorn <m.weghorn@posteo.de> | 2026-03-25 14:17:31 +0100 |
|---|---|---|
| committer | Michael Weghorn <m.weghorn@posteo.de> | 2026-03-26 07:49:53 +0100 |
| commit | 12a267e2fe9d7681f916bbab9015f8111c21871a (patch) | |
| tree | e43abdb7a099d428fe69a3b8be96c85eba7f3c27 /icon-themes/colibre/cmd/32/starshapes.doorplate.png | |
| parent | 714cb9cfd8c900c54de6ac42d0d7ed1183e5a4b1 (diff) | |
qt: Make {PrintFont,Freetype}Manager code dependent on USE_HEADLESS_CODE
psp::PrintFontManager and FreeTypeManager code is only
built when headless is enabled (either implicitly, e.g. on Linux,
or explicitly, e.g. using the --enable-headless autogen switch
on Windows).
Therefore, make code using these also conditional
on USE_HEADLESS_CODE.
This prevents build errors like this one otherwise seen
in experiments with qt6 on Windows (based on WIP change [1]).
QtTools.o : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static class psp::PrintFontManager & __cdecl psp::PrintFontManager::get(void)" (__imp_?get@PrintFontManager@psp@@SAAEAV12@XZ) referenced in function "bool __cdecl toVclFont(class QFont const &,struct com::sun::star::lang::Locale const &,class vcl::Font &)" (?toVclFont@@YA_NAEBVQFont@@AEBULocale@lang@star@sun@com@@AEAVFont@vcl@@@Z)
Hint on symbols that are defined and could potentially match:
"__declspec(dllimport) public: static class ImageTree & __cdecl ImageTree::get(void)" (__imp_?get@ImageTree@@SAAEAV1@XZ)
"__declspec(dllimport) class rtl::OUString __cdecl Translate::get(struct TranslateId,class std::locale const &)" (__imp_?get@Translate@@YA?AVOUString@rtl@@UTranslateId@@AEBVlocale@std@@@Z)
QtTools.o : error LNK2019: unresolved external symbol "__declspec(dllimport) public: bool __cdecl psp::PrintFontManager::matchFont(class FontAttributes &,struct com::sun::star::lang::Locale const &)" (__imp_?matchFont@PrintFontManager@psp@@QEAA_NAEAVFontAttributes@@AEBULocale@lang@star@sun@com@@@Z) referenced in function "bool __cdecl toVclFont(class QFont const &,struct com::sun::star::lang::Locale const &,class vcl::Font &)" (?toVclFont@@YA_NAEBVQFont@@AEBULocale@lang@star@sun@com@@AEAVFont@vcl@@@Z)
C:\Users\mwegh\development\git\libreoffice\instdir\program\vclplug_qt6lo.dll : fatal error LNK1120: 2 unresolved externals
[1] https://gerrit.libreoffice.org/c/core/+/199615
Change-Id: I5e41e6db73e34a43fa138d5830e8feee8f3abcf5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/202673
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
Diffstat (limited to 'icon-themes/colibre/cmd/32/starshapes.doorplate.png')
0 files changed, 0 insertions, 0 deletions
