# Juce compile error Linux

**URL:** <https://forum.juce.com/t/juce-compile-error-linux/4069>\
**Category:** Audio Plugins\
**Created:** [July 3, 2009, 4:19pm UTC](https://forum.juce.com/t/juce-compile-error-linux/4069 "2009-07-03T16:19:27Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![kyriacos](https://avatars.discourse-cdn.com/v4/letter/k/e19adc/32.png) [@kyriacos](https://forum.juce.com/u/kyriacos)\
**Post date:** [July 3, 2009, 4:19pm UTC](https://forum.juce.com/t/juce-compile-error-linux/4069/1 "2009-07-03T16:19:27Z")

</div>

Hi,

I just tried the latest tip 739 and juce does not compile with the following error:

platform\_specific\_code/juce\_linux\_AudioCDReader.cpp:66: error: no ‘bool juce::AudioCDReader::read(int\*\*, juce::int64, int)’ member function declared in class ‘juce::AudioCDReader’

Thanks  
Kyriacos

---

<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:** [July 3, 2009, 4:31pm UTC](https://forum.juce.com/t/juce-compile-error-linux/4069/2 "2009-07-03T16:31:30Z")

</div>

Oh, sorry - it should look like this:

[code]bool AudioCDReader::readSamples (int\*\* destSamples, int numDestChannels, int startOffsetInDestBuffer,  
int64 startSampleInFile, int numSamples)  
{  
return false;  
}

[/code]

I’ll check a fix in very soon…

---

<div class="post-metadata">

**Author:** ![kyriacos](https://avatars.discourse-cdn.com/v4/letter/k/e19adc/32.png) [@kyriacos](https://forum.juce.com/u/kyriacos)\
**Post date:** [July 6, 2009, 2:43pm UTC](https://forum.juce.com/t/juce-compile-error-linux/4069/3 "2009-07-06T14:43:40Z")

</div>

Thanks Jules!

Juce library compiled ok.

Now for compiling the audio plugin in juce\_amalgamated.cpp lines 259981  
should changed also for the same function (AudioCDReader::readSamples).

Also premake.lua for audio plugin is missing the freetype2 include plus I think the paths for vstsdk must be for older version so I included my own path.

my premake.lua file

package.includepaths = {  
"/usr/include",  
"…/…/…/…/…/",  
"…/…/…/…/…/…/…/vstsdk2.4",  
"/usr/include/freetype2",  
"…/…/src"  
}

So plugin compiled ok to [libjuceplugindemo.so](http://libjuceplugindemo.so) file.  
I tried this in jost 0.5.4 but it is not loading.

Also I compiled the jucepluginhost successfully but the application is not opening (no errors, nothing happens when you run it.)

the jucedemo app compiles and runs ok.

I am using ubuntu 810 and vst 2.4

Thanks  
Kyriacos

---

<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:** [July 6, 2009, 4:09pm UTC](https://forum.juce.com/t/juce-compile-error-linux/4069/4 "2009-07-06T16:09:14Z")

</div>

Thanks for that, I’ll update the premake.lua.

Don’t think I’ve ever actually tried running the plugin host on linux, so you’re on your own debugging that one! If you can step into it, shouldn’t be hard to see where it gets to before it stops…

---

<div class="post-metadata">

**Author:** ![kyriacos](https://avatars.discourse-cdn.com/v4/letter/k/e19adc/32.png) [@kyriacos](https://forum.juce.com/u/kyriacos)\
**Post date:** [July 7, 2009, 3:34pm UTC](https://forum.juce.com/t/juce-compile-error-linux/4069/5 "2009-07-07T15:34:25Z")

</div>

Hi Jules,

What about the actual plugin? I have tried to compile with both vstsdk 2.3 and 2.4, it compiles ok to [libjuceplugindemo.so](http://libjuceplugindemo.so) but it does not load in both Jost and energy XT.

Thanks  
Kyriacos

---

<div class="post-metadata">

**Author:** ![jpo](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/jpo/32/503_2.png) [@jpo](https://forum.juce.com/u/jpo)\
**Post date:** [July 11, 2009, 11:32am UTC](https://forum.juce.com/t/juce-compile-error-linux/4069/6 "2009-07-11T11:32:30Z")

</div>

In need to apply the following change in src/host/MainHostWindow.cpp in order to prevent a crash of the audio plugin host on linux

```auto
- deviceManager.initialise (256, 256, savedAudioState, true);
+ deviceManager.initialise (2, 2, savedAudioState, true);
```

I believe this is due to hardcoded max nb of channels such as  
"static const int maxNumChans = 64;" in juce\_linux\_Audio.cpp but I did not really try to understand the details to be honest…

---

<div class="post-metadata">

**Author:** ![kyriacos](https://avatars.discourse-cdn.com/v4/letter/k/e19adc/32.png) [@kyriacos](https://forum.juce.com/u/kyriacos)\
**Post date:** [July 15, 2009, 11:48am UTC](https://forum.juce.com/t/juce-compile-error-linux/4069/7 "2009-07-15T11:48:09Z")

</div>

Hi jpo. I have tried your mod and now plugin host is opening ok.  
I have noticed in the linux version when you select “edit the list of available plugins” in the “options” button menu the item “scan for new vst plugins” is missing so you can not change the directory for scanning your plugins. I will check some more and post the results.

Thanks  
Kyriacos
