Closed ngeiswei closed 8 months ago
I can't get this to reproduce on Ubuntu 20.04, tbh. A quick google search suggests this may be a common issue with JUCE/Projucer on Debian.
pkg-config --cflags freetype2
into your terminal$(shell $(PKG_CONFIG) --cflags alsa freetype2 libcurl webkit2gtk-4.0 gtk+-x11-3.0)
is in the JUCE_CPPFLAGS section in the Makefile generated by Projucer. For me this looks like
on both lines 42 and 93pkg-config --cflags freetype2
into the end of both the JUCE_CPPFLAGS sections. For me this would look like
with -I/usr/include/freetype2 -I/usr/include/libpng16
being added to the endLet me know if this resolves the issue. If so, I'll add it to the BUILD.md instructions under Linux. If not, I'll make a Debian virtual machine and see if I can reproduce the issue within the VM
pkg-config --cflags freetype2
outputs -I/usr/include/freetype2 -I/usr/include/libpng16
.$(shell $(PKG_CONFIG) --cflags alsa freetype2 libcurl webkit2gtk-4.0 gtk+-x11-3.0)
is present in the JUCE_CPPFLAGS
section in the Makefile.-I/usr/include/freetype2 -I/usr/include/libpng16
at the end of the JUCE_CPPFLAGS
section still leads to the error.Unfortunately I still can't get this error to reproduce even with a fresh Debian 12 installation in VMplayer
I did find an error in the juce_patch scripts. astro_fmt/codecs/astro_iffAudioFormat.cpp and astro_fmt/codecs/astro_iffAudioFormat.h should be astro_fmt/codecs/astro_IffAudioFormat.cpp and astro_fmt/codecs/astro_IffAudioFormat.h respectively. For some reason, neither Ubuntu 20.04, Windows 11, nor MacOS Sonoma caught this lower-case error and still copied the files over.
However, this was stopping both the IFF format reader and mu-law format reader from copying over in Debian 12. I've since fixed the bat, ps1, and sh files and confirmed that they're working properly in Debian 12. The juce_patch.7z file should be updated in the Ami Sampler repository You can either manually move the IFF and mu-law files over yourself, change those two lines in whichever script you prefer, or download the updated .7z file and replace the scripts.
With any luck, this will fix the issue that you're having; but frankly, I'd be surprised if this was the root of the ft2build.h error. In any case, it's an error that needs to be addressed. If you are still having the ft2build.h error, can you double-check for me that the version of JUCE you're using is the most current version?
Thanks @astriiddev. I had indeed encountered the iff -> Iff typo, which I had fixed to complete patching JUCE.
I'll try to reproduce your steps in a fresh Debian 12 this week-end and try to understand how it differs from my current installation Debian 12.
The version of JUCE I used was 7.0.9, not the latest git revision. I suppose that could potentially be the problem.
I tried on another Debian 12 machine, and it worked! I still do not understand what went wrong with my previous machine.
That's great!!! I'm glad to hear it's working for you.
If it's alright with you, I'm going to mark this issue as closed. If you do figure out how to resolve the ft2build.h error on your machine, feel free to let me know how and I'll add it to the BUILD.md as an additional note/disclaimer
What is the problem?
Compilation fails under Linux (Debian 12),
ft2build.h
cannot be found.How to reproduce the problem?
ami.jucer
withProjucer
and save to generateBuilds/LinuxMakefile/Makefile
.Builds/LinuxMakefile/Makefile
.make CONFIG=Release
What do you get?
I get the following compilation error
What else do have to say?
It fails in spite of having
installed on my system.