Can't compile in debian 10

when i try to compile in debian 10 it always return me this in terminal (im running it in a VM):

Might be missing a dependency?

I have the exact same issue on manylinux2014 (CentOS 7) Cannot compile juce_graphics.cpp on linux anymore switching to juce8

everything ok with the dependencies

FT_COLOR_H is clearly not being defined somewhere in your build process. Try adding -DFT_COLOR_H="ft_color.h" to your build steps and see if that finds it (or whatever the name of the header file actually is on disk…)

I’m having the same issue on Ubuntu 18.04, which has freetype 2.8. I think older freetype versions did not have a separate header for ftcolor.h. So just replacing:

#include FT_COLOR_H

in juce_Fonts_freetype.cpp with:

#ifdef FT_COLOR_H
#include FT_COLOR_H
#endif

Fixes the issue, it seems.

I tried but now i got this error

image

I came to the same conclusion when I had a look at this issue yesterday. We’ll get that fix merged shortly.

It’s also worth noting that the default compilers on Debian 10 (gcc-8/g+±8) aren’t able to build some parts of JUCE, although gcc-7 can. Therefore, you may need to explicitly request gcc-7 during the build.

That looks to me like the compiler may be running out of memory. How much memory does your VM have? Are you able to provision more memory and retry the build?

This macro is supposed to be expanded by the Freetype build configuration - perhaps by way of pkg-config, which seems to be being ignored in the JUCE build rig.

Try adding -DFT_COLOR_H=“<freetype/ftcolor.h>” (with appropriate escaping) to your build rig, and see how far you get. Modifying juce_Fonts_freetype.cpp doesn’t seem like the appropriate fix …

EDIT: Should you also have the libfreetype2-dev package installed?

normally it have 4gb but i raised to 6 and still get the error

image

and after that i tested using the gcc-7 and got another error at the exact same part

That’s definitely an out-of-memory error, see the first line of the error message. A fix for high memory usage during builds with gcc-7 was merged recently, so make sure you’re building using the develop branch: