OwlSim with Visual C++ 2012

Anyone managed to get OwlSim built in VC++ 2012?

Just got it all working and hope this helps others.

My working directory is “C:\VS2012” and the below guide reflect this.

=============== Prerequisites ===============
Download and install Microsoft Visual Studio 2012.
Register, Download and extract the VST Audio Plug-Ins SDK Version 2.4 to “C:\VS2012\vstsdk2.4”

Download and install the GIT GUI tools

=============== Get the source ===============
Open git bash shell and $ cd to /c/VS2012
run “git clone git://github.com/pingdynasty/OwlSim.git”

At this stage you will have OwlSim source cloned to “C:\VS2012\OwlSim”

=============== Building ===============
Launch Visual Studio
File -> Open -> Project/Solution
NOTE: If you try to build now you will get the following error
1>c:\vs2012\owlsim\modules\juce_audio_plugin_client\vst\juce_vst_wrapper.cpp(83): fatal error C1083: Cannot open include file: ‘public.sdk/source/vst2.x/audioeffectx.h’: No such file or directory
This is because Visual Studio has no idea where the VST-SDK header files are located. We need to add these to the “VC++ Directories”

To fix this within your solution explorer select the OwlSim solution and access it’s properties via the right click menu.
Configuration Properties -> VC++ Directories -> Include Directories
Edit this and add the directory “C:\VS2012\vstsdk2.4”

You should now have a successful build

1>------ Build started: Project: OwlSim, Configuration: Debug Win32 ------
1> juce_VST_Wrapper.cpp
1> juce_RTAS_DigiCode1.cpp
1> juce_RTAS_DigiCode2.cpp
1> juce_RTAS_DigiCode3.cpp
1> juce_RTAS_WinUtilities.cpp
1> juce_RTAS_Wrapper.cpp
1> Creating library .\Debug\OwlSim.lib and object .\Debug\OwlSim.exp
1> OwlSim.vcxproj → C:\VS2012\OwlSim\Builds\VisualStudio2012.\Debug\OwlSim.dll
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========

=============== Testing ===============
To test the OwlSim.dll VST I’m using Audacity along with the VST Bridge plugin.

Copy OwlSim.dll from “C:\VS2012\OwlSim\Builds\VisualStudio2012\Debug” to “C:\Program Files (x86)\Audacity\Plug-Ins”
Open Audacity and load an audio file
In the Effects menu you can now use RebelTech: OwlSim

Awesome, I would really like a similar guide for Xcode on Mac OS.

looks good, only one question:
does this work also with Visual C++ 2010 express?
Please note that I decided for this, to have C++ only - seems to me that to have 2012 you need to install all the smash - C#, sql, VB, … and I don’t really need that.
Anyway, in case I can move to 2012 with no big problems.

Thank you for the help.


I’ve built it with 2010 Express - that’s how I made the Windows binaries.
If you put the VST here:
then the build should find them without having to add an Include directory - it’s the Juce default location.
Great write-up, thanks Seb.

That’s good news. Thank you!

Awesome, I would really like a similar guide for Xcode on Mac OS.

Here are my notes. It’s taken me a few attempts and I made changes after, so I’m not sure if this is indeed the final sequence of steps; let me know if it works!

(I like to use AU Lab to then test plugins, it’s a basic multi-channel mixer that comes with the Xcode dev tools.)

OwlSim OSX build, with Xcode 4.6.3

Start as described at http://rawmaterialsoftware.com/viewtopic.php?f=8&t=9546&p=56679#p56677

  • download CoreAudio libs, place in /Library/Developer/Extras/CoreAudio
  • make symlink: sudo ln -s /Library/Developer/Extras /Applications/Xcode.app/Contents/Developer/

load OwlSim project in Xcode.

(TODO: check: ensure the build target links against these frameworks: AudioToolbox, AudioUnit, CoreAudio)

in AppConfig.h: enable AU, disable VST

in CACFData.h and AUCarbonViewBase.cpp:
fix compiler errors by explicitly adding casts