Based on earlier postings for older Linux / Juce versions the following set-up procedure was successful for me:
Installation / version details:
JUCE 4.2.1 as of May 7, 2016 on Linux Ubuntu Studio 64-bit 16.04 LTS,
verified earlier with Ubuntu 14.04 64-bit, Ubuntu Studio 14.04 64-bit, elementary OS 0.3.2 (Freya) 64-bit, Mint 17.3 Cinnamon 64-bit
Note: for RedHat, RPM packaging based linux line, e.g. Fedora 23 see reply below
Install VST SDK from https://www.steinberg.net/en/company/developers.html (requires developer registration - free)
Create a folder SDKs directly in your home directory and copy the VST SDK, folder ‚VST3 SDK’ into it. (~/SDKs/VST3 SDK). This is one of the configuration rules for JUCE to facilitate cross platform configuration compatibility in Projucer.
Download and install JUCE linux distribution from https://www.juce.com/get-juce
(Personally I’ve extracted the zip archive directly in my home directory (~/JUCE )
Note (1) as of Apr 9, 2016: The executable Projucer from the distribution didn’t start – I had first to compile it JUCE/extras/Projucer/Builds/LinuxMakefile . Just open a terminal and type ‚make’ will do it and should run without errors if everything is installed as noted above.
redefine CC, CCXX on the shell to point to clang, clang++:
export CC=/usr/bin/clang
export CXX=/usr/bin/clang++
then ‚make’ as usual throughout the Builds/LinuxMakefile directories in extras and examples.
Note: If not all examples have already a LinuxMakefile target you have generate the LinuxMakefile target from a Windows or Mac Projucer and complie it than on Linux.
Tom
A follow-up in case you don’t want to use clang++, g++ v5 supports more of the compiler flags used by JUCE than g++v4 (but still not all - I was only able to compile all the examples wthout error using clang++ does):
apt-get install g++ installs by default version 4.8.4
If you prefer to have version 5 installed and activated, these are the steps to get gcc 5, g++ 5 installed and active (just apt-get install gcc-5, g+±5 wasn’t enough… ):
For those of you who use that kind of stuff, I made a docker container with the proper packages installed for clang and JUCE dependencies. I’ll probably add some versioning in the future to be able to have a defined environment for a given tag.