# Building Cabbage 2 on ubuntu

**URL:** <https://forum.cabbageaudio.com/t/building-cabbage-2-on-ubuntu/833>\
**Category:** Cabbage Stew\
**Created:** [29 November 2017 18:01 UTC](https://forum.cabbageaudio.com/t/building-cabbage-2-on-ubuntu/833 "2017-11-29T18:01:02Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![vallste](https://forum.cabbageaudio.com/letter_avatar_proxy/v4/letter/v/bc8723/32.png) [@vallste](https://forum.cabbageaudio.com/u/vallste)\
**Post date:** [29 November 2017 18:01 UTC](https://forum.cabbageaudio.com/t/building-cabbage-2-on-ubuntu/833/1 "2017-11-29T18:01:02Z")

</div>

Hello,  
I’ve just downloaded from git (master branch) but I cannot build it, made some progress by installing libcurl3-dev (not listed in dependancies needed) and JUCE in my home directory but this is how far I got (sorry for the italian messages):

> ```
> Compiling include_juce_opengl.cpp
> Compiling include_juce_video.cpp
> Linking Cabbage - App
> build/intermediate/Release/CabbageDocumentWindow_3af539ae.o: nella funzione "CabbageDocumentWindow::CabbageDocumentWindow(juce::String, juce::String)":
> CabbageDocumentWindow.cpp:(.text+0x38dd): riferimento non definito a "PluginExporter::exportPlugin(juce::String, juce::File, juce::String)"
> CabbageDocumentWindow.cpp:(.text+0x3e3e): riferimento non definito a "PluginExporter::exportPlugin(juce::String, juce::File, juce::String)"
> build/intermediate/Release/CabbageDocumentWindow_3af539ae.o: nella funzione "CabbageDocumentWindow::perform(juce::ApplicationCommandTarget::InvocationInfo const&)":
> CabbageDocumentWindow.cpp:(.text+0x51d0): riferimento non definito a "PluginExporter::exportPlugin(juce::String, juce::File, juce::String)"
> CabbageDocumentWindow.cpp:(.text+0x56ac): riferimento non definito a "PluginExporter::exportPlugin(juce::String, juce::File, juce::String)"
> build/intermediate/Release/CabbagePluginEditor_4348213a.o: nella funzione "CabbagePluginEditor::insertStringSequencer(juce::ValueTree)":
> CabbagePluginEditor.cpp:(.text+0x2cdd): riferimento non definito a "CabbageStringSequencer::CabbageStringSequencer(juce::ValueTree, CabbagePluginEditor*)"
> collect2: error: ld returned 1 exit status
> MakeCabbageIDE:142: set di istruzioni per l'obiettivo "build/Cabbage" non riuscito
> make: *** [build/Cabbage] Errore 1
> cp: impossibile eseguire stat di './build/Cabbage': File o directory non esistente
> ./buildCabbage: riga 36: ../../../JUCE/extras/Projucer/Builds/LinuxMakefile/build/Projucer: File o directory non esistente
> mv: impossibile eseguire stat di 'Makefile': File o directory non esistente
> Cleaning CabbagePluginEffect
> make: *** Nessuna regola per generare l'obiettivo "../../JuceLibraryCode/include_juce_audio_plugin_client_VST2.cpp", necessario per "build/intermediate/Release/include_juce_audio_plugin_client_VST2_dd551e08.o". Arresto.
> make: *** Attesa per i processi non terminati....
> cp: impossibile eseguire stat di './build/CabbagePlugin.so': File o directory non esistente
> ./buildCabbage: riga 43: ../../../JUCE/extras/Projucer/Builds/LinuxMakefile/build/Projucer: File o directory non esistente
> mv: impossibile eseguire stat di 'Makefile': File o directory non esistente
> Cleaning CabbagePluginSynth
> make: *** Nessuna regola per generare l'obiettivo "../../JuceLibraryCode/include_juce_audio_plugin_client_VST2.cpp", necessario per "build/intermediate/Release/include_juce_audio_plugin_client_VST2_dd551e08.o". Arresto.
> make: *** Attesa per i processi non terminati....
> cp: impossibile eseguire stat di './build/CabbagePlugin.so': File o directory non esistente
> ./buildCabbage: riga 50: ../../../JUCE/extras/Projucer/Builds/LinuxMakefile/build/Projucer: File o directory non esistente
> mv: impossibile eseguire stat di 'Makefile': File o directory non esistente
> make: MakeCabbageLite: File o directory non esistente
> make: *** Nessuna regola per generare l'obiettivo "MakeCabbageLite". Arresto.
> make: MakeCabbageLite: File o directory non esistente
> make: *** Nessuna regola per generare l'obiettivo "MakeCabbageLite". Arresto.
> cp: impossibile eseguire stat di './build/CabbageLite': File o directory non esistente
> 
> ```

My machine is Ubuntu 16.04, with csound 6.09.1 built from sources.  
Any Idea?

Thank you in advance

---

<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:** [29 November 2017 21:57 UTC](https://forum.cabbageaudio.com/t/building-cabbage-2-on-ubuntu/833/2 "2017-11-29T21:57:29Z")

</div>

Did you build the Projucer in the JUCE dir? There is a makefile there that will build it for you. You may need to modify the buildCabbage script to point to the Projucer binary. For what it’s worth, you can see the steps travis takes to build Cabbage on Linux each time a commit is made [here](https://github.com/rorywalsh/cabbage/blob/master/.travis.yml). Let me know if you continue to have problems.

---

<div class="post-metadata">

**Author:** ![vallste](https://forum.cabbageaudio.com/letter_avatar_proxy/v4/letter/v/bc8723/32.png) [@vallste](https://forum.cabbageaudio.com/u/vallste)\
**Post date:** [30 November 2017 20:40 UTC](https://forum.cabbageaudio.com/t/building-cabbage-2-on-ubuntu/833/3 "2017-11-30T20:40:32Z")

</div>

Problem solved by cloning Juce from git repository, building it again and moving the sources from subdirectories to my home (so I didn’t change the addresses in the build file), it was only a problem of relative phats.  
It seems that with jack driver produce more xruns (compared to cabbage 1), maybe I need to improve some settings but I have discovered that even if I change num buffer and/or buffer size in jack, the cabbage audio settings “Audio Buffer size” offer me only the “256 samples (5.8 ms)” choice; is it normal?

---

<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:** [30 November 2017 21:23 UTC](https://forum.cabbageaudio.com/t/building-cabbage-2-on-ubuntu/833/4 "2017-11-30T21:23:34Z")

</div>

Glad you got it sorted 😉

It seems that the Jack interface provided by JUCE only lets you match the buffer settings currently being used by Jack. This could well be normal behaviour, I’m not all that well up on Jack.

Changing Jack’s buffer size should also set the buffer size in Cabbage. I just tried here. With Jack set to 256 samples I can only select 256 samples in Cabbage. If I change Jack to 64, Cabbage also selects 64. Perhaps you need to restart Jack?

---

<div class="post-metadata">

**Author:** ![vallste](https://forum.cabbageaudio.com/letter_avatar_proxy/v4/letter/v/bc8723/32.png) [@vallste](https://forum.cabbageaudio.com/u/vallste)\
**Post date:** [5 December 2017 08:37 UTC](https://forum.cabbageaudio.com/t/building-cabbage-2-on-ubuntu/833/5 "2017-12-05T08:37:35Z")

</div>

Yes, changing the buffer size in jack affects the buffer size in cabbage, but the number of buffer of jack are not taken in account by cabbage: if i have 512 samples in jack but i change the number of buffer from 2 to 3 or 4… cabbage shows only 512 and relative ms number. Maybe It’s correct, I don’t know.

One other problem during compilation process is that I got only CabbageLite, I didn’t found CabbageIDE anywhere in my build, If I comment out these lines in the buildCabbage script:

> ```
> make -f MakeCabbageLite clean CONFIG=Release
> make -f MakeCabbageLite -j6 CONFIG=Release
> cp ./build/CabbageLite CabbageBuild/Cabbage
> 
> ```

I (obvoiusly) don’t have CabbageLite but CabbageIDE is built and working

One more question, Is the gentable widget changed from version 1? I can’t get my older files to display 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:** [5 December 2017 10:13 UTC](https://forum.cabbageaudio.com/t/building-cabbage-2-on-ubuntu/833/6 "2017-12-05T10:13:15Z")

</div>

> [@vallste](#):
>
> cabbage shows only 512 and relative ms number

I’m not sure either, but this is how it has always worked for me. And I can get pretty good latency?

> [@vallste](#):
>
> One other problem during compilation process is that I got only CabbageLite

You can just edit that last line to look like this:  
`cp ./build/CabbageLite CabbageBuild/CabbageLite`  
It’s a typo. It’s fixed in git, but the latest tip has some other changes that might be a little unstable. best to simply edit the build script for now.

> [@vallste](#):
>
> One more question, Is the gentable widget changed from version 1? I can’t get my older files to display it.

The basic widget is the same, some identifiers have changed so it could be a colour issue. Can you send me on a basic test that fails?

---

<div class="post-metadata">

**Author:** ![vallste](https://forum.cabbageaudio.com/letter_avatar_proxy/v4/letter/v/bc8723/32.png) [@vallste](https://forum.cabbageaudio.com/u/vallste)\
**Post date:** [5 December 2017 12:47 UTC](https://forum.cabbageaudio.com/t/building-cabbage-2-on-ubuntu/833/7 "2017-12-05T12:47:35Z")

</div>

Great, renaming worked, now I have both. If you are changing stuff I’d like to advise you that only one .desktop file is created (for Cabbage, not CabbageLite).

This is one file where gentable was working in cabbage 1, now it’s not displayed.  
[TPZ\_Luppario.csd](https://forum.cabbageaudio.com/uploads/default/original/1X/76f8a1470ddeb4f364406173a69f9198ec7091e3.csd) (26.6 KB)

---

<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:** [5 December 2017 14:48 UTC](https://forum.cabbageaudio.com/t/building-cabbage-2-on-ubuntu/833/8 "2017-12-05T14:48:36Z")

</div>

That looks like an issue with macros. I’ll try to find a fix. Give me a moment…

p.s thanks for the heads up on the .desktop file…

---

<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:** [5 December 2017 16:12 UTC](https://forum.cabbageaudio.com/t/building-cabbage-2-on-ubuntu/833/9 "2017-12-05T16:12:21Z")

</div>

I have a fix for the macro issue. It actually forced me to make some bigger changes and improvements to the macro system, which I’d been putting off.

I’m sure @t_grey will be very nervous about this as his entire Cabbage empire is built on a foundation of macros! I hope I don’t cause it to tumble to the ground 😁

---

<div class="post-metadata">

**Author:** ![t\_grey](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/t_grey/32/1234_2.png) [@t\_grey](https://forum.cabbageaudio.com/u/t_grey)\
**Post date:** [5 December 2017 17:20 UTC](https://forum.cabbageaudio.com/t/building-cabbage-2-on-ubuntu/833/10 "2017-12-05T17:20:52Z")

</div>

Oh dear! 😱

Tho honestly I don’t mind at all working through the problems if you don’t… especially if it’s in support of “bigger changes and improvements”. I’ll look forward to testing a fresh beta when it’s ready.

I assume this also includes the fix for macros included in the csoundcode section of an xml plant? (discussed over here: [Slugs on Ver. 2.0.27a on OSX [resolved] - #41 by rorywalsh](http://forum.cabbageaudio.com/t/slugs-on-ver-2-0-27a-on-osx/828/41)) I hadn’t commented on that because you called it fixed… I figured you had the same thought I did; Macros in that area shouldn’t be expanded by cabbage at all anyway, but the entire block just inserted sanitized into the csound project and left for it to expand at “run time”.

---

<div class="post-metadata">

**Author:** ![vallste](https://forum.cabbageaudio.com/letter_avatar_proxy/v4/letter/v/bc8723/32.png) [@vallste](https://forum.cabbageaudio.com/u/vallste)\
**Post date:** [5 December 2017 17:49 UTC](https://forum.cabbageaudio.com/t/building-cabbage-2-on-ubuntu/833/11 "2017-12-05T17:49:26Z")

</div>

Sorry, I don’t want destroy an empire just to run my crappy code!  
When will be avaliable on github?

---

<div class="post-metadata">

**Author:** ![t\_grey](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/t_grey/32/1234_2.png) [@t\_grey](https://forum.cabbageaudio.com/u/t_grey)\
**Post date:** [5 December 2017 18:08 UTC](https://forum.cabbageaudio.com/t/building-cabbage-2-on-ubuntu/833/12 "2017-12-05T18:08:44Z")

</div>

Don’t worry, my empire is built on crappy code!

---

<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:** [5 December 2017 18:10 UTC](https://forum.cabbageaudio.com/t/building-cabbage-2-on-ubuntu/833/13 "2017-12-05T18:10:19Z")

</div>

Leave it with me. I’m not quite there yet. I’ll let you both know when I’ve something to show.

---

<div class="post-metadata">

**Author:** ![vallste](https://forum.cabbageaudio.com/letter_avatar_proxy/v4/letter/v/bc8723/32.png) [@vallste](https://forum.cabbageaudio.com/u/vallste)\
**Post date:** [5 December 2017 18:14 UTC](https://forum.cabbageaudio.com/t/building-cabbage-2-on-ubuntu/833/14 "2017-12-05T18:14:53Z")

</div>

Crappiness will wait 😁

---

<div class="post-metadata">

**Author:** ![alcomposer](https://forum.cabbageaudio.com/letter_avatar_proxy/v4/letter/a/f4b2a3/32.png) [@alcomposer](https://forum.cabbageaudio.com/u/alcomposer)\
**Post date:** [6 December 2017 05:54 UTC](https://forum.cabbageaudio.com/t/building-cabbage-2-on-ubuntu/833/15 "2017-12-06T05:54:12Z")

</div>

@rorywalsh I am guessing these issues may affect building Cabbage2 on Arch Linux as well?

---

<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:** [6 December 2017 10:08 UTC](https://forum.cabbageaudio.com/t/building-cabbage-2-on-ubuntu/833/16 "2017-12-06T10:08:54Z")

</div>

No, the latest tip should be working fine. I have pushed any of this stuff to git.

---

<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:** [7 December 2017 22:02 UTC](https://forum.cabbageaudio.com/t/building-cabbage-2-on-ubuntu/833/17 "2017-12-07T22:02:30Z")

</div>

I’m well and truly down the rabbit hole with this one. I should have something for you to test out soon. Thanks for your patience.

---

<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:** [8 December 2017 11:56 UTC](https://forum.cabbageaudio.com/t/building-cabbage-2-on-ubuntu/833/18 "2017-12-08T11:56:28Z")

</div>

Ok @vallste, if you pull from the latest master and rebuild you should be good to go.

@alcomposer, what problems are you having building on Arch? Perhaps you could start a new thread?

@t_grey, don’t worry, the changes to the macro system shouldn’t affect anything you’ve done (apart from point 4 maybe), in summary:

1. users can now place them where they like in the line as long as they come after the widget type.
2. Cabbage no longer reorders identifiers when working with the GUI editor.
3. The GUI editor now works fine with macros and won’t overwrite them.
4. To override an identifier in a macro text simply add the identifier after the macro appears. This is different to what was there before, but is much easier to implement and I think it’s more intuitive too considering identifiers are read from left to right.

I’m just in the process of updating the docs.

---

<div class="post-metadata">

**Author:** ![alcomposer](https://forum.cabbageaudio.com/letter_avatar_proxy/v4/letter/a/f4b2a3/32.png) [@alcomposer](https://forum.cabbageaudio.com/u/alcomposer)\
**Post date:** [8 December 2017 15:07 UTC](https://forum.cabbageaudio.com/t/building-cabbage-2-on-ubuntu/833/19 "2017-12-08T15:07:35Z")

</div>

@rorywalsh Im able to build Csound but it doesn’t build with MIDI ALSA Midi on Arch. (mainly wanting to build to test aftouch FL(0.0) as opposed to FL(127.0))  
Wanting to know if there are any special libraries to install, but Arch tends to install mainly DEV versions?

---

<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:** [8 December 2017 15:20 UTC](https://forum.cabbageaudio.com/t/building-cabbage-2-on-ubuntu/833/20 "2017-12-08T15:20:23Z")

</div>

Sorry, are you talking about Csound or Cabbage?

[Next page](https://forum.cabbageaudio.com/t/building-cabbage-2-on-ubuntu/833.md?page=2)
