Build from the debian repository SOLVED

Hi.

I try to build JUCE on Linux from the salsa Debian repository, version 8.0.9.

I simply ran the cmake command, cmake . -B cmake-build -DJUCE_BUILD_EXAMPLES=ON -DJUCE_BUILD_EXTRAS=OFF

But it fails to build juceaide.

zlib is missing :

extras/Build/juceaide/CMakeFiles/juceaide.dir///__/modules/juce_graphics/juce_graphics.cpp.o,

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 ?

Thank you.

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.

Solved by using the juce-framwork git on github and not the Debian one.

Btw I wonder why. Should I send a bug report to Debian ?

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.

It was a source package from the package manager repository. No git was involved.