# Problem with linking linux standalone GUI app

**URL:** <https://forum.juce.com/t/problem-with-linking-linux-standalone-gui-app/34785>\
**Category:** Linux\
**Created:** [August 14, 2019, 5:08pm UTC](https://forum.juce.com/t/problem-with-linking-linux-standalone-gui-app/34785 "2019-08-14T17:08:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![RoyGBivJr](https://avatars.discourse-cdn.com/v4/letter/r/2acd7d/32.png) [@RoyGBivJr](https://forum.juce.com/u/RoyGBivJr)\
**Post date:** [August 14, 2019, 5:08pm UTC](https://forum.juce.com/t/problem-with-linking-linux-standalone-gui-app/34785/1 "2019-08-14T17:08:51Z")

</div>

I just installed JUCE and am attempting to run the hello world project generated by PROJUCER using the makefile export. Everything complies fine but I get this error message when it attempts to link.

Linking FirstJucePlugin - App  
/usr/bin/ld: build/intermediate/Debug/include\_juce\_graphics\_f817e147.o: undefined reference to symbol ‘png\_set\_sBIT@@PNG16\_0’  
//usr/lib/x86\_64-linux-gnu/libpng16.so.16: error adding symbols: DSO missing from command line  
collect2: error: ld returned 1 exit status  
Makefile:92: recipe for target ‘build/FirstJucePlugin’ failed  
make: \*\*\* [build/FirstJucePlugin] Error 1

How can I fix this?

---

<div class="post-metadata">

**Author:** ![daniel](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/daniel/32/790_2.png) [@daniel](https://forum.juce.com/u/daniel)\
**Post date:** [August 14, 2019, 5:13pm UTC](https://forum.juce.com/t/problem-with-linking-linux-standalone-gui-app/34785/2 "2019-08-14T17:13:05Z")

</div>

Could it be possible, that you haven’t installed libpng?

---

<div class="post-metadata">

**Author:** ![RoyGBivJr](https://avatars.discourse-cdn.com/v4/letter/r/2acd7d/32.png) [@RoyGBivJr](https://forum.juce.com/u/RoyGBivJr)\
**Post date:** [August 14, 2019, 5:15pm UTC](https://forum.juce.com/t/problem-with-linking-linux-standalone-gui-app/34785/3 "2019-08-14T17:15:59Z")

</div>

No, it is already installed.

---

<div class="post-metadata">

**Author:** ![johngalt91](https://avatars.discourse-cdn.com/v4/letter/j/b38774/32.png) [@johngalt91](https://forum.juce.com/u/johngalt91)\
**Post date:** [August 14, 2019, 6:59pm UTC](https://forum.juce.com/t/problem-with-linking-linux-standalone-gui-app/34785/4 "2019-08-14T18:59:39Z")

</div>

Give this a try:

> sudo apt-get install clang freeglut3-dev g++ libasound2-dev libcurl4-openssl-dev libfreetype6-dev libjack-jackd2-dev libx11-dev libxcomposite-dev libxcursor-dev libxinerama-dev libxrandr-dev mesa-common-dev webkit2gtk-4.0 ladspa-sdk

Have you tried “make clean” and building again? I had lots of troubles with it giving me random errors until i deleted the previous built. Also had trouble with Linux libraries, even installing the same ones after installing and updating some others, making a clean install fixed it.  
Another thing is: clang works wonders in a x86 Linux compiling JUCE stuff, but gives lots of troubles in my Raspberry (I have to use gcc there).
