Building Projucer on Rpi OS Lite?

I’ve been working on a JUCE application for Raspberry Pi, and I decided to switch from the full, desktop Raspberry Pi OS to the Lite version to see if there was any performance benefit. The Projucer was able to build from the makefile without issue on the desktop OS, but the Lite version compiles all the Projucer files but gives me a linking error that looks like

Linking Projucer - App
...
/usr/include/c++/8/bits/atomic_base.h:344: undefined reference to  '_atomic_fetch_xor_8'
collect2: error: ld returned 1 exit status
make: *** [Makefile:144: build/Projucer] Error 1

On both operating systems I installed all the dependencies named on this page before running make. Does anyone know if the lite OS needs some extra dependencies or if the makefile needs something different? Thanks for any insight.

Yes, on raspberry pi you’ll also need to link the atomic library, e.g. make LDFLAGS=-latomic

Oh thank you- makes sense

It seems that (on Raspbian) building with clang doesn’t require extra linking (with the arch flags also).

1 Like

Yeah- seems like make CXX=clang++ links everything with no issues