# Can't compile on Linux

**URL:** <https://forum.juce.com/t/cant-compile-on-linux/4329>\
**Category:** The Projucer\
**Created:** [September 26, 2009, 2:37pm UTC](https://forum.juce.com/t/cant-compile-on-linux/4329 "2009-09-26T14:37:49Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vixus](https://avatars.discourse-cdn.com/v4/letter/v/43a26b/32.png) [@Vixus](https://forum.juce.com/u/Vixus)\
**Post date:** [September 26, 2009, 2:37pm UTC](https://forum.juce.com/t/cant-compile-on-linux/4329/1 "2009-09-26T14:37:49Z")

</div>

Tried to compile using the default Makefile provided in the extras/the jucer/build/linux directory and received the following output:

```auto
==== Building Jucer ====
jucer_Main.cpp
juce_LibrarySource.cpp
In file included from ../../src/juce_LibrarySource.cpp:14:
../../src/../../../juce_amalgamated.cpp:254382:27: warning: extra tokens at end of #ifdef directive
In file included from ../../src/juce_LibrarySource.cpp:14:
../../src/../../../juce_amalgamated.cpp:254386: error: variable or field ‘getDeviceSampleRates’ declared void
../../src/../../../juce_amalgamated.cpp:254386: error: ‘snd_pcm_t’ was not declared in this scope
../../src/../../../juce_amalgamated.cpp:254386: error: ‘handle’ was not declared in this scope
../../src/../../../juce_amalgamated.cpp:254386: error: expected primary-expression before ‘&’ token
../../src/../../../juce_amalgamated.cpp:254386: error: ‘rates’ was not declared in this scope
../../src/../../../juce_amalgamated.cpp:255965: error: expected `}' at end of input
make[1]: *** [build/intermediate/Debug/juce_LibrarySource.o] Error 1
make: *** [Jucer] Error 2
```

Any idea what I’m doing wrong? I already had the juce libs built but hadn’t done anything afterwards.

---

<div class="post-metadata">

**Author:** ![Vixus](https://avatars.discourse-cdn.com/v4/letter/v/43a26b/32.png) [@Vixus](https://forum.juce.com/u/Vixus)\
**Post date:** [September 27, 2009, 12:10am UTC](https://forum.juce.com/t/cant-compile-on-linux/4329/2 "2009-09-27T00:10:02Z")

</div>

I should add that I built the juce demo without problems (and with working audio).

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [September 27, 2009, 6:51pm UTC](https://forum.juce.com/t/cant-compile-on-linux/4329/3 "2009-09-27T18:51:14Z")

</div>

Did you run the premake script? The default makefile might not be quite right for your setup, so you’d need to use premake to update it.

---

<div class="post-metadata">

**Author:** ![Vixus](https://avatars.discourse-cdn.com/v4/letter/v/43a26b/32.png) [@Vixus](https://forum.juce.com/u/Vixus)\
**Post date:** [September 27, 2009, 8:45pm UTC](https://forum.juce.com/t/cant-compile-on-linux/4329/4 "2009-09-27T20:45:54Z")

</div>

Cleaned all the intermediate files with make clean and premake --clean and then ran the runpremake script that’s inside the the jucer/build/linux directory but still no luck. Seems like an ALSA lib issue of some sort.

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [September 28, 2009, 8:12am UTC](https://forum.juce.com/t/cant-compile-on-linux/4329/5 "2009-09-28T08:12:28Z")

</div>

It just looks like you’ve not included alsa correctly, or are somehow including a version that’s too old or new… Try getting the latest alsa library and trying again.
