Error compiling on Linux 32 bits, because of freetype2


I can’t compile with Linux 32 bits on a 64 bits machine (64 bits compilation is fine. Using Develop), I have this error:

Compiling include_juce_graphics.cpp
In file included from /usr/include/freetype2/ft2build.h:37:0,
                 from ../../../../../JUCE/modules/juce_graphics/juce_graphics.cpp:96,
                 from ../../JuceLibraryCode/include_juce_graphics.cpp:9:
/usr/include/freetype2/freetype/config/ftheader.h:7:65: fatal error: i386-linux-gnu/freetype2/freetype/config/ftheader.h: No such file or directory

I saw two other threads with people having the same problem but in different contexts (or contexts I can’t fathom). Is there a handy solution for Linux noobs like myself? Thanks.


For those having the same problem, I was trying to compile a 32-bit application on a 64-bit Linux. After switching to a 64-bit application, everything went fine.