Keith Packard
2005-Nov-21 08:50 UTC
[Fontconfig] Fontconfig error: Cannot load default config file
Around 14 o''clock on Sep 7, "Philippe A" wrote:> I tried to trace this error in the code and eventually found that > FcConfigFilename always returns null for me. Looks like fontconfig does not > look automatically in /etc/fonts, which is where I have my fresh config > files installed.Sounds like fontconfig got miscompiled somehow. It seems most likely that the FONTCONFIG_PATH didn''t get defined correctly. Check your Makefile in src and ensure that you have something like: .... sysconfdir = /etc ... CONFDIR = ${sysconfdir}/fonts ... INCLUDES = $(FREETYPE_CFLAGS) $(EXPAT_CFLAGS) -DFONTCONFIG_PATH=''"$(CONFDIR)"'' -I$(top_srcdir) -I$(top_srcdir)/src Then run ''strings'' on fccfg.o and make sure /etc/fonts is present in the object file. -keith
Philippe A
2005-Nov-21 08:50 UTC
[Fontconfig] Fontconfig error: Cannot load default config file
Hello, I''m having some issues building fontconfig-2.2.0. The first problem I''ve encountered is the doc not building correctly. Maybe it''s because my version of docbook isn''t up to date? I''ve disabled doc and the compile went without errors. Anyways. That''s the least of my concerns. The problem that really concerns me is that whenever I run fc-cache (for example), I get the following error message: Fontconfig error: Cannot load default config file I tried to trace this error in the code and eventually found that FcConfigFilename always returns null for me. Looks like fontconfig does not look automatically in /etc/fonts, which is where I have my fresh config files installed. I can work around this problem by defining the FONTCONFIG_FILE env var or by overriding the related #define, but I''d rather like to know what is The Way of having fontconfig look at the right place. I tried various configure option but none of them had the expected effect (--sysconfdir=DIR and --with-confdir=DIR). I mean, my config files installed in the specified dir but fontconfig couldn''t find them. This error is causing various problems. For example, MozillaFirebird won''t start and my fonts look totally screwed up in kde. Thanks in advance for any pointers! Phil _________________________________________________________________ MSN Messenger : discutez en direct avec vos amis ! http://messenger.fr.msn.ca/