Projucer segmentation fault

Using the latest commit of JUCE on master I’m trying to build a project using however I can get the projucer to build but when I call any commands from the command line the projucer hits a segmentation fault. This can be easily replicated by setting up a free account on the website using the public github JUCE account.

All I know about the build system is covered in this link

To replicate the issue create the account and setup the project for C/C++ then add the following as a build script…

echo 2 | sudo update-alternatives --config gcc
cd ./extras/Projucer/Builds/LinuxMakefile
./build/Projucer --help

Is it possible I need to install some dependencies?

The Projucer on Linux currently depends on an X server running (I know… it’s dumb). Could it be that you are running the Projucer without an X server?

Yep that seems to have done the trick, many thanks Fabian.

For anyone who might be looking at this trying to use for building JUCE projects, all that I needed to do to build and resave a project using the Projucer was as follows…

# clone submodules
git submodule update --init --recursive

# install dependencies
sudo apt-get -y install libasound2-dev

# switch gcc for c++11 support
echo 2 | sudo update-alternatives --config gcc

# build projucer
make --directory "${JUCE_DIR}/extras/Projucer/Builds/LinuxMakefile"

# start X server
sudo start xvfb

# generate project files
"${JUCE_DIR}/extras/Projucer/Builds/LinuxMakefile/build/Projucer" --resave MyProject.jucer

# build project
make --directory ./Builds/LinuxMakefile

p.s. I would recommend setting this up for the JUCE repo as no files are required on the repo itself, it’s free, and very simple!

1 Like