In file included from … juce_graphics.cpp:192 … juce_JPEGLoader.cpp:59:14… in juce_zlib.h:49:11: fatal error:
juce_core/zip/zlib/zlib.h: No such file or directory.
I copy it manually, but then something more important : in juce_JPEGLoader.cpp:59:14:
fatal error: jpglib/jaricom.c: No such file or directory
Found it in the paquet libjpeg8 which is no more in Debian. Is it the same library as LuaDist/libjpeg on github ? Should I copy manually to my /usr/include dir the files from there ?
You should not have to do any manual copying or such thing. I built JUCE on Debian just fine this week, in fact, by simply getting the right packages installed.
My usual technique for this is to kick off the JUCE build until it complains about a missing header or library, then use apt-file to locate the missing headers in the relevant packages, installing those packages standardly per Debian (apt install ..), and continuing with the JUCE build until it completes.
That’s what I’ve done but apt-file jaricom.c returns nothing. I’m used to d/l a few libxxx-dev to build programs on Debian, even with little renaming.
But even if I find the package with jpglib, for zlib, it is a file is Juce source tree which is missing, not a library header in include/.
Is there some things I missed to configure before, for cmake or JUCE ?
Note that JUCE7.0.5 compiles without problem.
Btw I say this because I find strange that the README command to build all doesn’t work.
But I cannot either compile extras/AudioPluginHost only. For “oggvorbis/vorbisenc.h” : it is in libvorbis-dev, intalled in /include/vorbis/ but it ever happened that I had to rename a include folder.
But I haven’t “oggvorbis/bitwise.c” and ‘apt-file search’ gives only fp-units-castle-game-engine as a result. It may not be that.
Oh, if you’re not building JUCE from origin, then all bets are off I’m afraid.
I’d report it to Debian, for sure. Obviously I have to ask though, did you “git submodule update —init —recursive” prior to the build? Perhaps the Debian fork found it necessary to put zlib/etc. in their repo as a submodule for some reason, just a guess.