Linux – FTTypefaceList Error

Hi, I’m building a static library for Linux using Makefile, following this:

Since I don’t need UI, I’m trying to remove unnecessary dependencies. To avoid installing libfontconfig1-dev, I have set JUCE_USE_FONTCONFIG=0. However, I encountered the following error:

‘FTTypefaceList’ has not been declared

This occurs in the juce_Fonts_linux.cpp file.

Is there an additional setting I should consider?

If you don’t need UI, do you still need the juce_graphics module? You could avoid including the linux Fonts file altogether if you removed this module from your project.

No, I don’t need juce_graphics, juce_gui_basics, or juce_gui_extra, but I have to keep them for juce_audio_processors. Otherwise I get this error: missing module dependencies.

I am also encountering the following error:

Package 'freetype2', required by 'virtual:world', not found 
Package 'fontconfig', required by 'virtual:world', not found

Even though I have set:

JUCE_USE_FONTCONFIG=0 
JUCE_USE_FREETYPE=0

From this doc, I see that we don’t need
libfontconfig1-dev and libfreetype-dev
if
JUCE_USE_FONTCONFIG=0
JUCE_USE_FREETYPE=0