[Ardour-Dev] building A3 on OSX; patches

Robin Gareus robin at gareus.org
Mon Nov 28 13:49:43 PST 2011


Hi *,

How do you guys build the universal OSX binary of Ardour3?


Obviously dependencies like glib/gtk are the time-consuming part; but
except for glib/glibconfig.h all libs are multi-arch.

I managed to compile ardour3 PPC/i386/x86_64 (with videotimeline) but
without core-audio / AU effect support. Works fine, too! It required a
few minor changes to ardour on OSX 10.5, i686-apple-darwin10-gcc-4.2.1.

 * replace all <glib/FILENAME.h> includes with <glib.h> for glib-2.31.2
   #error "Only <glib.h> can be included directly."
 * work around "looses precision" and implicit typecast errors:
   size_t/SInt32 for OSX and void*/int for 32/64bit
 * fix the wscript's --universal parameters

The 2nd patch fixes compilation of the FPU code for universal builds.
and last but not least #3 adds a wscript option to disable AU-plugins
because..

The AU-plugin code fails in two places:
  * audio_unit.cc: undefined symbols (was not declared in this scope)
     GetCurrentEventLoop() and GetCFRunLoopFromEventLoop()
  * au_pluginui.mm: error: '_preset_box' was not declared in this scope
    furthermore it is not 64bit compatible because it uses Carbon :(

OK, so 64bit is off the table; but where does _preset_box and
GetCurrentEventLoop() come from?  Any hints?

thanks,
robin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-OSX-typecasts-and-glib-includes.patch
Type: text/x-patch
Size: 7547 bytes
Desc: not available
URL: <http://lists.ardour.org/private.cgi/ardour-dev-ardour.org/attachments/20111128/7465d3b9/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-multi-arch-universal-FPU-defines.patch
Type: text/x-patch
Size: 629 bytes
Desc: not available
URL: <http://lists.ardour.org/private.cgi/ardour-dev-ardour.org/attachments/20111128/7465d3b9/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-allow-to-build-w-o-audio-unit-support.patch
Type: text/x-patch
Size: 5541 bytes
Desc: not available
URL: <http://lists.ardour.org/private.cgi/ardour-dev-ardour.org/attachments/20111128/7465d3b9/attachment-0002.bin>


More information about the Ardour-Dev mailing list