# Unable to build AU with CLion while Xcode builds without problems

**URL:** <https://forum.juce.com/t/unable-to-build-au-with-clion-while-xcode-builds-without-problems/31092>\
**Category:** Audio Plugins\
**Created:** [January 2, 2019, 7:45pm UTC](https://forum.juce.com/t/unable-to-build-au-with-clion-while-xcode-builds-without-problems/31092 "2019-01-02T19:45:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rmoetwil](https://avatars.discourse-cdn.com/v4/letter/r/cdc98d/32.png) [@rmoetwil](https://forum.juce.com/u/rmoetwil)\
**Post date:** [January 2, 2019, 7:45pm UTC](https://forum.juce.com/t/unable-to-build-au-with-clion-while-xcode-builds-without-problems/31092/1 "2019-01-02T19:45:37Z")

</div>

I started using Juce together with CLion and I can’t get AU projects to build.

I’m using:

- Juce 5.4.1
- Clion 2018.3
- XCode 10.1

After creating a default AudioPlugin Projucer project (VST, AU, Standalone) and adding XCode and Clion as exporters I start Clion.  
The CMake process already gives an error which I think is the root of the problem.

> /Applications/CLion.app/Contents/bin/cmake/mac/bin/cmake -DCMAKE\_BUILD\_TYPE=Debug -G “CodeBlocks - Unix Makefiles” /Users/ronaldmoetwil/data/audio-development/NewProject/Builds/CLion  
> failed to find AudioUnit/AudioUnit.r  
> /Applications/JUCE/modules/juce\_audio\_plugin\_client/juce\_audio\_plugin\_client\_AU.r:28: ### /Library/Developer/CommandLineTools/usr/bin/Rez - SysError 2 during open of “AudioUnit/AudioUnit.r”.  
> Fatal Error!  
> /Applications/JUCE/modules/juce\_audio\_plugin\_client/juce\_audio\_plugin\_client\_AU.r:28: ### /Library/Developer/CommandLineTools/usr/bin/Rez - Fatal Error, can’t recover.  
> /Applications/JUCE/modules/juce\_audio\_plugin\_client/juce\_audio\_plugin\_client\_AU.r: ### /Library/Developer/CommandLineTools/usr/bin/Rez - Since errors occurred, /Users/ronaldmoetwil/data/audio-development/NewProject/Builds/CLion/cmake-build-debug/NewProject.rsrc’s resource fork was not written.  
> – Configuring done  
> – Generating done  
> – Build files have been written to: /Users/ronaldmoetwil/data/audio-development/NewProject/Builds/CLion/cmake-build-debug  
> [Finished]

The project builds fine in XCode.

---

<div class="post-metadata">

**Author:** ![t0m](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/t0m/32/16413_2.png) [@t0m](https://forum.juce.com/u/t0m)\
**Post date:** [January 18, 2019, 4:00pm UTC](https://forum.juce.com/t/unable-to-build-au-with-clion-while-xcode-builds-without-problems/31092/2 "2019-01-18T16:00:15Z")

</div>

> <https://github.com/WeAreROLI/JUCE/commit/020f3aa5121ed4bc5be2335b3b412bf6e30e7319>

---

<div class="post-metadata">

**Author:** ![rmoetwil](https://avatars.discourse-cdn.com/v4/letter/r/cdc98d/32.png) [@rmoetwil](https://forum.juce.com/u/rmoetwil)\
**Post date:** [January 19, 2019, 7:47am UTC](https://forum.juce.com/t/unable-to-build-au-with-clion-while-xcode-builds-without-problems/31092/3 "2019-01-19T07:47:29Z")

</div>

I verified the change by building Projucer from develop and I’m now able to build AU with CLion.  
Thx!
