# Issues compiling the tip for AU host

**URL:** <https://forum.juce.com/t/issues-compiling-the-tip-for-au-host/11080>\
**Category:** General JUCE discussion\
**Created:** [July 15, 2011, 12:45am UTC](https://forum.juce.com/t/issues-compiling-the-tip-for-au-host/11080 "2011-07-15T00:45:22Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![AaronLeese](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/aaronleese/32/624_2.png) [@AaronLeese](https://forum.juce.com/u/AaronLeese)\
**Post date:** [July 15, 2011, 12:45am UTC](https://forum.juce.com/t/issues-compiling-the-tip-for-au-host/11080/1 "2011-07-15T00:45:22Z")

</div>

I just updated to the tip and am having trouble recompiling JUCE libs for AU hosting.

Works fine with the default flags, but setting the AU\_PLUGINHOST flag I get this:

Not really sure what to make of it, so thought I would drop it here.

---

<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 15, 2011, 8:52am UTC](https://forum.juce.com/t/issues-compiling-the-tip-for-au-host/11080/2 "2011-07-15T08:52:27Z")

</div>

I think I sorted this out in a check-in a couple of days ago…?

There are some hacks required to avoid the global “Point” symbol in the old Apple Carbon headers. Search for “define point” in the juce code for more info. I’m just in the middle of some big changes right now but will double-check that it all works when I next do a check-in.

---

<div class="post-metadata">

**Author:** ![AaronLeese](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/aaronleese/32/624_2.png) [@AaronLeese](https://forum.juce.com/u/AaronLeese)\
**Post date:** [July 17, 2011, 6:34pm UTC](https://forum.juce.com/t/issues-compiling-the-tip-for-au-host/11080/3 "2011-07-17T18:34:41Z")

</div>

Nah - looks like it’s still an issue.

Thanks for all the hard work. The improvements in Juce have been phenomenal lately, even if things get temporarily broken along the way.

---

<div class="post-metadata">

**Author:** ![AaronLeese](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/aaronleese/32/624_2.png) [@AaronLeese](https://forum.juce.com/u/AaronLeese)\
**Post date:** [August 13, 2011, 12:35am UTC](https://forum.juce.com/t/issues-compiling-the-tip-for-au-host/11080/4 "2011-08-13T00:35:43Z")

</div>

doh! This is still an issue … even after the git update a couple days back.

Any chance I can get some love for the JUCE\_PLUGINHOST\_AU compiling people?

---

<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:** [August 13, 2011, 8:33am UTC](https://forum.juce.com/t/issues-compiling-the-tip-for-au-host/11080/5 "2011-08-13T08:33:51Z")

</div>

In doing the new modularised stuff I built the host demo so fairly sure that works now.

---

<div class="post-metadata">

**Author:** ![AaronLeese](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/aaronleese/32/624_2.png) [@AaronLeese](https://forum.juce.com/u/AaronLeese)\
**Post date:** [August 14, 2011, 12:06am UTC](https://forum.juce.com/t/issues-compiling-the-tip-for-au-host/11080/6 "2011-08-14T00:06:29Z")

</div>

Hmmm … yeah, it seems the plugHost does compile fine.

Oddly though, I still get the above errors when trying to compile the Juce lib.  
Not that it matters too much, I don’t have to link compiled version of Juce of course, I can just add the amalgamated.

But still - you should give it a look - this is a fresh clone, and all I did was set the AU\_PLUGINHOST flag and try a compile.

---

<div class="post-metadata">

**Author:** ![chkn](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/chkn/32/3862_2.png) [@chkn](https://forum.juce.com/u/chkn)\
**Post date:** [August 22, 2011, 10:05am UTC](https://forum.juce.com/t/issues-compiling-the-tip-for-au-host/11080/7 "2011-08-22T10:05:03Z")

</div>

Any news on this issue (having the same problem here…)

---

<div class="post-metadata">

**Author:** ![chkn](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/chkn/32/3862_2.png) [@chkn](https://forum.juce.com/u/chkn)\
**Post date:** [August 24, 2011, 8:33am UTC](https://forum.juce.com/t/issues-compiling-the-tip-for-au-host/11080/8 "2011-08-24T08:33:53Z")

</div>

Is this fixed in the post-quake juce?

---

<div class="post-metadata">

**Author:** ![AaronLeese](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/aaronleese/32/624_2.png) [@AaronLeese](https://forum.juce.com/u/AaronLeese)\
**Post date:** [September 8, 2011, 3:37am UTC](https://forum.juce.com/t/issues-compiling-the-tip-for-au-host/11080/9 "2011-09-08T03:37:51Z")

</div>

this issue showed up shortly before the Jucequake and is yet unresolved. I am using the tip as of this morning.

---

<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 8, 2011, 8:30am UTC](https://forum.juce.com/t/issues-compiling-the-tip-for-au-host/11080/10 "2011-09-08T08:30:29Z")

</div>

I fixed the host build and checked it in yesterday, didn’t I…?

---

<div class="post-metadata">

**Author:** ![AaronLeese](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/aaronleese/32/624_2.png) [@AaronLeese](https://forum.juce.com/u/AaronLeese)\
**Post date:** [September 8, 2011, 9:14am UTC](https://forum.juce.com/t/issues-compiling-the-tip-for-au-host/11080/11 "2011-09-08T09:14:40Z")

</div>

nope … doesn’t look like it. At least, I just did a pull but still can’t compile Juce libs with AU flag on.

---

<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 8, 2011, 9:19am UTC](https://forum.juce.com/t/issues-compiling-the-tip-for-au-host/11080/12 "2011-09-08T09:19:39Z")

</div>

No, it definitely compiles now, and is definitely checked-in. Maybe you didn’t pull the right branch or something?

---

<div class="post-metadata">

**Author:** ![AaronLeese](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/aaronleese/32/624_2.png) [@AaronLeese](https://forum.juce.com/u/AaronLeese)\
**Post date:** [September 8, 2011, 3:14pm UTC](https://forum.juce.com/t/issues-compiling-the-tip-for-au-host/11080/13 "2011-09-08T15:14:49Z")

</div>

Haha! Got it. Not sure why this is an issue for me and not you … elaborate if you can.

On my machine, a new clone of the master branch definitely still yields above errors … BECAUSE:

```auto
'Point' does not name a type in file included from ....
In file included from /Users/aaronleese/Desktop/code/juce/Builds/MacOSX/../../src/audio/plugin_host/formats/juce_AudioUnitPluginFormat.mm
In file included from /Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/AudioUnit.framework/Headers/AUCocoaUIView.h
In file included from /Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h 
```

Tracing through that, I find that juce\_AudioUnitPluginFormat.mm includes …

#include “…/…/…/core/juce\_TargetPlatform.h”

Which does this at line 60ish:

```auto
#elif defined ( __APPLE_CPP__ ) || defined( __APPLE_CC__ )
  #define Point CarbonDummyPointName // (workaround to avoid definition of "Point" by old Carbon headers)
  #include <CoreFoundation/CoreFoundation.h> // (needed to find out what platform we're using)
  #undef Point
```

Which leaves Point undefined …

Not sure what magic gets it working on you’re machine, but would be very obliged if you could look at removing that last #undef line (commenting it out seems to resolve the issue).

---

<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 8, 2011, 3:17pm UTC](https://forum.juce.com/t/issues-compiling-the-tip-for-au-host/11080/14 "2011-09-08T15:17:53Z")

</div>

> [@](#):
>
> a new clone of the master branch

Sorry, I was talking about the modules branch. Will have a look at the master branch.

---

<div class="post-metadata">

**Author:** ![AaronLeese](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/aaronleese/32/624_2.png) [@AaronLeese](https://forum.juce.com/u/AaronLeese)\
**Post date:** [September 8, 2011, 3:27pm UTC](https://forum.juce.com/t/issues-compiling-the-tip-for-au-host/11080/15 "2011-09-08T15:27:25Z")

</div>

cool man, thanks. There is also some sort of scoping error in CarbonViewWrapperComponent when JUCE\_SUPPORT\_CARBON is enabled along JUCE\_PLUGINHOST\_AU. You’ll see it.

---

<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 8, 2011, 3:28pm UTC](https://forum.juce.com/t/issues-compiling-the-tip-for-au-host/11080/16 "2011-09-08T15:28:53Z")

</div>

Erm… it works fine for me in the master branch too.

But maybe you’ve got a Apple headers or something? Maybe try this, in juce\_AudioUnitPluginFormat.mm

[code]#if JUCE\_PLUGINHOST\_AU && ! (JUCE\_LINUX || JUCE\_WINDOWS)

#define Point CarbonDummyPointName // (workaround to avoid definition of “Point” by old Carbon headers)  
#include \<AudioUnit/AudioUnit.h\>  
#include \<AudioUnit/AUCocoaUIView.h\>  
#include \<CoreAudioKit/AUGenericView.h\>

#if JUCE\_SUPPORT\_CARBON  
#include \<AudioToolbox/AudioUnitUtilities.h\>  
#include \<AudioUnit/AudioUnitCarbonView.h\>  
#endif  
#undef Point

#include “…/…/…/core/juce\_StandardHeader.h”  
[/code]

---

<div class="post-metadata">

**Author:** ![AaronLeese](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/aaronleese/32/624_2.png) [@AaronLeese](https://forum.juce.com/u/AaronLeese)\
**Post date:** [September 8, 2011, 4:18pm UTC](https://forum.juce.com/t/issues-compiling-the-tip-for-au-host/11080/17 "2011-09-08T16:18:02Z")

</div>

Yeah, that seems to do the trick.

You’re the man Jules, Thanks!

---

<div class="post-metadata">

**Author:** ![AaronLeese](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/aaronleese/32/624_2.png) [@AaronLeese](https://forum.juce.com/u/AaronLeese)\
**Post date:** [September 9, 2011, 3:30am UTC](https://forum.juce.com/t/issues-compiling-the-tip-for-au-host/11080/18 "2011-09-09T03:30:22Z")

</div>

Ps - looks like it happens for juce\_VSTPluginFormat.cpp as well.

Just fixed it the same way as above (line 53):

```auto
#else
#define Point CarbonDummyPointName // (workaround to avoid definition of "Point" by old Carbon headers)
 #include <Cocoa/Cocoa.h>
 #include <Carbon/Carbon.h>
#undef Point
#endif
```

---

<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 9, 2011, 7:51am UTC](https://forum.juce.com/t/issues-compiling-the-tip-for-au-host/11080/19 "2011-09-09T07:51:49Z")

</div>

I wish I knew why it compiles for me but not for you… but thanks!

---

<div class="post-metadata">

**Author:** ![AaronLeese](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/aaronleese/32/624_2.png) [@AaronLeese](https://forum.juce.com/u/AaronLeese)\
**Post date:** [September 9, 2011, 7:59am UTC](https://forum.juce.com/t/issues-compiling-the-tip-for-au-host/11080/20 "2011-09-09T07:59:25Z")

</div>

Yeah - it’s a mystery alright.

We must have somewhat different system files somehow … not sure why that would be though. I’m OSX 10.6 of course, nothing different about any of it as far as I know.

[Next page](https://forum.juce.com/t/issues-compiling-the-tip-for-au-host/11080.md?page=2)
