# Building on Linux (resolved)

**URL:** <https://forum.cabbageaudio.com/t/building-on-linux-resolved/20>\
**Category:** Cabbage slugs\
**Created:** [13 October 2015 15:06 UTC](https://forum.cabbageaudio.com/t/building-on-linux-resolved/20 "2015-10-13T15:06:43Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jan\_Henkins](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/jan_henkins/32/1395_2.png) [@Jan\_Henkins](https://forum.cabbageaudio.com/u/Jan_Henkins)\
**Post date:** [13 October 2015 15:06 UTC](https://forum.cabbageaudio.com/t/building-on-linux-resolved/20/1 "2015-10-13T15:06:43Z")

</div>

Hello there,

Not neccessarily a “slug”, but I cannot find the README that outlines the build of Cabbage on Linux. Do you have such a recipe? After listening to Dave Phillips’ “Cabbagenic” track on Soundcloud, I would very much like to try out this code, but on Linux.

Thank you in advance!

Regards,  
Jan Henkins

---

<div class="post-metadata">

**Author:** ![Jan\_Henkins](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/jan_henkins/32/1395_2.png) [@Jan\_Henkins](https://forum.cabbageaudio.com/u/Jan_Henkins)\
**Post date:** [13 October 2015 19:20 UTC](https://forum.cabbageaudio.com/t/building-on-linux-resolved/20/2 "2015-10-13T19:20:26Z")

</div>

Hello again,

I am going to answer my own question! 😄

The issue was that the tarball and zip file that you can download from the Cabbage Audio does not contain the mentioned README file with Linux build instructions. In order to get this file, one has to go to the Github code repository and get it here:

[https://github.com/rorywalsh/cabbage/blob/master/Builds/Linux/README.txt](https://github.com/rorywalsh/cabbage/blob/master/Builds/Linux/README.txt)

It would be good if this can be mentioned on the web page, or include the Builds folder in the Zip/Tarball.

Now for the next adventure - build the source! 😄

Regards,  
Jan Henkins

---

<div class="post-metadata">

**Author:** ![Jan\_Henkins](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/jan_henkins/32/1395_2.png) [@Jan\_Henkins](https://forum.cabbageaudio.com/u/Jan_Henkins)\
**Post date:** [13 October 2015 19:28 UTC](https://forum.cabbageaudio.com/t/building-on-linux-resolved/20/3 "2015-10-13T19:28:25Z")

</div>

Annd I am going to chastise myself for talking complete rubbish about the README file not being in the tarball. It’s right there, clear as day… 😊

Regards,  
Jan Henkins

---

<div class="post-metadata">

**Author:** ![rorywalsh](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/rorywalsh/32/165_2.png) [@rorywalsh](https://forum.cabbageaudio.com/u/rorywalsh)\
**Post date:** [14 October 2015 11:25 UTC](https://forum.cabbageaudio.com/t/building-on-linux-resolved/20/4 "2015-10-14T11:25:02Z")

</div>

Actually I just updated today. So it should provide clearer instructions than before. Let me know if you have any issues.

---

<div class="post-metadata">

**Author:** ![gsenna](https://forum.cabbageaudio.com/letter_avatar_proxy/v4/letter/g/a88e4f/32.png) [@gsenna](https://forum.cabbageaudio.com/u/gsenna)\
**Post date:** [15 October 2015 10:19 UTC](https://forum.cabbageaudio.com/t/building-on-linux-resolved/20/5 "2015-10-15T10:19:11Z")

</div>

Hey Jan, let me know if you need a hand. I managed to build Cabbage a couple of days ago in Ubuntu Studio 14.04.3. Although, the new Readme in the develop branch is pretty clear I think.

Cheers.

---

<div class="post-metadata">

**Author:** ![Jan\_Henkins](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/jan_henkins/32/1395_2.png) [@Jan\_Henkins](https://forum.cabbageaudio.com/u/Jan_Henkins)\
**Post date:** [16 October 2015 21:27 UTC](https://forum.cabbageaudio.com/t/building-on-linux-resolved/20/6 "2015-10-16T21:27:23Z")

</div>

Hello,

I was trying to build version 0.5.14 from the official tarball, but for some reason that does not want to build on my Ubuntu Studio 14.04. I cloned from Github, but that seems to have the same issues. I will soldier on over the weekend to see if I can generate something useful (either a usable build, or failing that, clear error messages).

A quick question - is it possible to build against the latest Steinberg VST libs? I cannot find a usable download of the older version anywhere trustworthy.

Regards.  
Jan Henkins

---

<div class="post-metadata">

**Author:** ![rorywalsh](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/rorywalsh/32/165_2.png) [@rorywalsh](https://forum.cabbageaudio.com/u/rorywalsh)\
**Post date:** [16 October 2015 21:52 UTC](https://forum.cabbageaudio.com/t/building-on-linux-resolved/20/7 "2015-10-16T21:52:37Z")

</div>

The readme in the dev branch is more up to date. Should give you more info on including the latest vst SDK. Checkout the dev branch and post the output from the build script if you keep having issues.

---

<div class="post-metadata">

**Author:** ![gsenna](https://forum.cabbageaudio.com/letter_avatar_proxy/v4/letter/g/a88e4f/32.png) [@gsenna](https://forum.cabbageaudio.com/u/gsenna)\
**Post date:** [18 October 2015 15:24 UTC](https://forum.cabbageaudio.com/t/building-on-linux-resolved/20/8 "2015-10-18T15:24:14Z")

</div>

Maybe it’s because of Csound. The packaged version in Ubuntu is 6.02. I’ve built 6.06 successfully and then Cabbage compiled fine. As Rory said -\> [https://github.com/rorywalsh/cabbage/blob/develop/Builds/Linux/README.txt](https://github.com/rorywalsh/cabbage/blob/develop/Builds/Linux/README.txt)

As far as I understand, VST 2.x relevant files ares included in the VST 3 download.  
I think they are here -\> VST3 SDK/public.sdk/source/vst2.x/. So download VST 3 from Steinberg and then pass the VST3 SDK folder as an argument to buildCabbage (as described in the Readme).

Let us know how it goes.

---

<div class="post-metadata">

**Author:** ![rorywalsh](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/rorywalsh/32/165_2.png) [@rorywalsh](https://forum.cabbageaudio.com/u/rorywalsh)\
**Post date:** [18 October 2015 16:53 UTC](https://forum.cabbageaudio.com/t/building-on-linux-resolved/20/9 "2015-10-18T16:53:11Z")

</div>

I’ve updated the README once more so that it states users must have Csound 6.03 or higher.

---

<div class="post-metadata">

**Author:** ![gsenna](https://forum.cabbageaudio.com/letter_avatar_proxy/v4/letter/g/a88e4f/32.png) [@gsenna](https://forum.cabbageaudio.com/u/gsenna)\
**Post date:** [18 October 2015 17:02 UTC](https://forum.cabbageaudio.com/t/building-on-linux-resolved/20/10 "2015-10-18T17:02:47Z")

</div>

Hey, could you also double quote $1, $2 and $3 in the buildCabbage script? Otherwise with spaces in the args. bash thinks there are more than 3 of them.  
Thanks.

---

<div class="post-metadata">

**Author:** ![rorywalsh](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/rorywalsh/32/165_2.png) [@rorywalsh](https://forum.cabbageaudio.com/u/rorywalsh)\
**Post date:** [18 October 2015 17:06 UTC](https://forum.cabbageaudio.com/t/building-on-linux-resolved/20/11 "2015-10-18T17:06:50Z")

</div>

I’ve added them and pushed to git. Let me know if they work Ok!

---

<div class="post-metadata">

**Author:** ![gsenna](https://forum.cabbageaudio.com/letter_avatar_proxy/v4/letter/g/a88e4f/32.png) [@gsenna](https://forum.cabbageaudio.com/u/gsenna)\
**Post date:** [19 October 2015 17:07 UTC](https://forum.cabbageaudio.com/t/building-on-linux-resolved/20/12 "2015-10-19T17:07:19Z")

</div>

All good now! Thanks Rory.

---

<div class="post-metadata">

**Author:** ![Jan\_Henkins](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/jan_henkins/32/1395_2.png) [@Jan\_Henkins](https://forum.cabbageaudio.com/u/Jan_Henkins)\
**Post date:** [25 November 2015 07:43 UTC](https://forum.cabbageaudio.com/t/building-on-linux-resolved/20/13 "2015-11-25T07:43:40Z")

</div>

Hello Rory,

Sorry for the long silence - I kinda put things on hold for a while (life…). I also decided that trying to keep things going on my old Ubuntu Studio 14.04 is just not viable, it was too broken due to some over-enthusiastic PPA installations… 😛

Anyhow, I re-installed with Ubuntu Studio 15.10, which comes with csound 6.05. The previous build issues have now disappeared, and I can get a rudimentary build going. However, I have noticed two things:

The “getDeps.sh” script tries to install “libjack-dev”, which tries to install the old version of Jack (seems that it is not available anymore, current version is libjack-jackd2-dev).

The other thing is that at the end of the build (which seemed to have created a usable “Cabbage” executable nonetheless), I get the following errors (I include the previous couple of lines for context):

[…]  
Compiling juce\_PluginUtilities.cpp  
Compiling juce\_VST3\_Wrapper.cpp  
Compiling juce\_VST\_Wrapper.cpp  
../../JuceLibraryCode/modules/juce\_audio\_plugin\_client/VST/juce\_VST\_Wrapper.cpp:272:29: warning: multi-character character constant [-Wmultichar]  
setUniqueID ((int) (JucePlugin\_VSTUniqueID));  
^  
Linking CabbagePluginEffect  
cp: cannot stat ‘./build/CabbageStudio’: No such file or directory  
cp: cannot stat ‘../../Images/Cabbage.png’: No such file or directory

I don’t see a “CabbageStudio” (was it supposed to be built?), there is only a “Cabbage”. Similarly there is no “Cabbage.png” file in “../../Images”, but there is a “cabbage.png”.

Apart from the above two things, it would appear I have something that can make weird and wonderful sounds. I will try to give it a more in-depth test during the weekend.

Regards,  
Jan Henkins

---

<div class="post-metadata">

**Author:** ![rorywalsh](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/rorywalsh/32/165_2.png) [@rorywalsh](https://forum.cabbageaudio.com/u/rorywalsh)\
**Post date:** [25 November 2015 08:03 UTC](https://forum.cabbageaudio.com/t/building-on-linux-resolved/20/14 "2015-11-25T08:03:18Z")

</div>

Can you pull from the latest dev branch and try building again? I just updated the buildCabbage script so that you get a nice icon to go with Cabbage 😉

CabbageStudio should build. Can you try running the following command from the Builds/Linux directory:

```
make -f MakefileHost -j4

```

That should build it Ok. If it builds there then it should also build when called by the buildCabbage script.

---

<div class="post-metadata">

**Author:** ![Jan\_Henkins](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/jan_henkins/32/1395_2.png) [@Jan\_Henkins](https://forum.cabbageaudio.com/u/Jan_Henkins)\
**Post date:** [25 November 2015 22:29 UTC](https://forum.cabbageaudio.com/t/building-on-linux-resolved/20/15 "2015-11-25T22:29:16Z")

</div>

Hello Rory,

It did not build initially, but I saw that the makefile needed a bit of a tweak due to the location of the csound headers and libs as installed on stock Studio 15.10. Here is a quick diff:

```
--- MakefileHost.orig	2015-11-25 20:27:55.920512812 +0000
+++ MakefileHost	2015-11-25 20:28:11.398661513 +0000
@@ -5,10 +5,10 @@
 DEPFLAGS := $(if $(word 2, $(TARGET_ARCH)), , -MMD)
 
 # Default csound include path
-CSOUND_INCLUDE ?= "/usr/local/include/csound"
+CSOUND_INCLUDE ?= "/usr/include/csound"
 
 # Default Csound library path
-CSOUND_LIBRARY ?= "/usr/local/lib"
+CSOUND_LIBRARY ?= "/usr/lib"
 
 ifndef CONFIG
   CONFIG=Debug

```

Interesting, that! 😄

While this is not a long-term solution for building reliably on at least Ubuntu Wily, it gives me something to play with for now. I will study the build system a bit further when there is more time.

Regards,  
Jan Henkins

---

<div class="post-metadata">

**Author:** ![rorywalsh](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/rorywalsh/32/165_2.png) [@rorywalsh](https://forum.cabbageaudio.com/u/rorywalsh)\
**Post date:** [25 November 2015 23:54 UTC](https://forum.cabbageaudio.com/t/building-on-linux-resolved/20/16 "2015-11-25T23:54:32Z")

</div>

Thanks for this. I’ve just pushed updated makefiles and build script to git. Whatever you pass as paths to the buildCabbage script should now be picked up by the Cabbage Studio makefile. Your diff is fine as long as Csound is installed in that location. I think it’s best to allow the end user to specify where it is installed. Can you let me know if it works? Thanks.

---

<div class="post-metadata">

**Author:** ![Gyu\_Park](https://forum.cabbageaudio.com/letter_avatar_proxy/v4/letter/g/838e76/32.png) [@Gyu\_Park](https://forum.cabbageaudio.com/u/Gyu_Park)\
**Post date:** [27 February 2016 03:00 UTC](https://forum.cabbageaudio.com/t/building-on-linux-resolved/20/17 "2016-02-27T03:00:19Z")

</div>

Hi… do you also help noobs in ubuntu? I managed to find the ‘Readme.txt’ for building Cabbage in ubuntu but dunno how to follow instructions in it ☹

---

<div class="post-metadata">

**Author:** ![rorywalsh](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/rorywalsh/32/165_2.png) [@rorywalsh](https://forum.cabbageaudio.com/u/rorywalsh)\
**Post date:** [27 February 2016 07:50 UTC](https://forum.cabbageaudio.com/t/building-on-linux-resolved/20/18 "2016-02-27T07:50:41Z")

</div>

Sure. How far have you got?

---

<div class="post-metadata">

**Author:** ![Gyu\_Park](https://forum.cabbageaudio.com/letter_avatar_proxy/v4/letter/g/838e76/32.png) [@Gyu\_Park](https://forum.cabbageaudio.com/u/Gyu_Park)\
**Post date:** [27 February 2016 10:58 UTC](https://forum.cabbageaudio.com/t/building-on-linux-resolved/20/19 "2016-02-27T10:58:53Z")

</div>

Hi Rory!

```

sudo apt-get -y install libfreetype6-dev
sudo apt-get -y install libx11-dev
sudo apt-get -y install libxinerama-dev
sudo apt-get -y install libxcursor-dev
sudo apt-get -y install mesa-common-dev
sudo apt-get -y install libasound2-dev
sudo apt-get -y install freeglut3-dev
sudo apt-get -y install libxcomposite-dev
sudo apt-get install csound
sudo apt-get install libcsound64-dev
sudo apt-get install libcsnd-dev
sudo apt-get install libsndfile1
sudo apt-get install libsndfile1-dev
sudo apt-get install libjack-dev

```

i read these were the necessary dependencies to be installed. I did, after which I was lost.

---

<div class="post-metadata">

**Author:** ![rorywalsh](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/rorywalsh/32/165_2.png) [@rorywalsh](https://forum.cabbageaudio.com/u/rorywalsh)\
**Post date:** [27 February 2016 11:15 UTC](https://forum.cabbageaudio.com/t/building-on-linux-resolved/20/20 "2016-02-27T11:15:15Z")

</div>

Have you cloned the git repository?

[Next page](https://forum.cabbageaudio.com/t/building-on-linux-resolved/20.md?page=2)
