# Dependency Issues building in Ubuntu

**URL:** <https://forum.juce.com/t/dependency-issues-building-in-ubuntu/51282>\
**Category:** Linux\
**Created:** [May 3, 2022, 8:05pm UTC](https://forum.juce.com/t/dependency-issues-building-in-ubuntu/51282 "2022-05-03T20:05:58Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![nicolasdanet](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/nicolasdanet/32/56_2.png) [@nicolasdanet](https://forum.juce.com/u/nicolasdanet)\
**Post date:** [May 4, 2022, 5:24am UTC](https://forum.juce.com/t/dependency-issues-building-in-ubuntu/51282/4 "2022-05-04T05:24:22Z")

</div>

IIRC on Raspberry Pi i had such linker errors while building with gcc.  
Perhaps it is something like that.  
Note that on Ubuntu it is supposed to compile fine.

You can try to build with clang:

`make CXX=clang++`

Or explicitly add the atomic library:

`make LDFLAGS=-latomic`

> [@Building Projucer on RPI4](https://forum.juce.com/t/building-projucer-on-rpi4/43281):
>
> FYI. I followed that [blog](https://mhamilt.github.io/blog/2018/10/23/JUCE-on-Pi.html) in order to build the Projucer on my Raspberry Pi 4 (with Raspbian Buster). After installed the recommended packages i tested without success the following command: cd ~/JUCE/extras/Projucer/Builds/LinuxMakefile make Compiling jucer\_NewProjectWizard.cpp Compiling jucer\_StartPageComponent.cpp Compiling jucer\_AutoUpdater.cpp Compiling jucer\_CommandLine.cpp Compiling jucer\_Main.cpp In file included from /usr/include/c++/8/map:61, from ../../../../mod…

> [@Juce in raspberry pi 4b \[solved\]](https://forum.juce.com/t/juce-in-raspberry-pi-4b-solved/41895/2):
>
> dont know what i did lol now i got this Linking TinyTable - Shared Code Linking TinyTable - Standalone Plugin /usr/bin/ld: /usr/lib/gcc/arm-linux-gnueabihf/8/…/…/…/arm-linux-gnueabihf/crt1.o: in function \_start': (.text+0x34): undefined reference to main’ collect2: error: ld returned 1 exit status make: \*\*\* [Makefile:119: build/TinyTable] Error 1

---

_[View the full topic](https://forum.juce.com/t/dependency-issues-building-in-ubuntu/51282)._
