Csound Csound-dev Csound-tekno Search About

[Cs-dev] Building Csound on OSX Lion 10.7

Date2011-08-05 16:12
FromSteven Yi
Subject[Cs-dev] Building Csound on OSX Lion 10.7
Hi All,

Just FYI: I'm currently building Csound on OSX Lion and have come up
against a few issues.  I'm currently building with universalX86 to
build i386/x86_64.  I committed some fixes to SConstruct to handle
address issues with Lion.

So far, libsndfile required some manual work to build a fat binary for
i386/x86_64.  The latest stable tarball release of PortAudio does not
compile on Lion, but using the latest snapshot from SVN has been fixed
up for Lion and does build.

Also, one thing we may want to look at is using
-mmacosx-version-min=10.4 when building.  I ran into an issue a while
back while building cmask for Jan Jacob where I did not give a min
version for my build and he was using an earlier OSX than the machine
I was building on and was unable to run the files I built.

I've written a small wiki page to collect the things I've done so far:

https://sourceforge.net/apps/mediawiki/csound/index.php?title=Building_Csound_on_OSX_Lion

I'll add more as I go along.

Thanks!
steven

------------------------------------------------------------------------------
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts. 
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2011-08-05 16:16
Fromjpff@cs.bath.ac.uk
SubjectRe: [Cs-dev] Building Csound on OSX Lion 10.7
> Hi All,
>
> Just FYI: I'm currently building Csound on OSX Lion and have come up
> against a few issues.  I'm currently building with universalX86 to
> build i386/x86_64.  I committed some fixes to SConstruct to handle
> address issues with Lion.
>

Hope they do not clash with my local changes which I cannoyt commit (no
ssh access)
==John


------------------------------------------------------------------------------
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts. 
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2011-08-05 16:36
FromVictor Lazzarini
SubjectRe: [Cs-dev] Building Csound on OSX Lion 10.7
yes, libsndfile always needs to be built for separate archs and then  
lipo'd together. Eric has explained this before.

What are the issues with portaudio? Is there a new version of  
coreaudio that is not compatible anymore? What about csound what
were the issues?

Victor
On 5 Aug 2011, at 16:12, Steven Yi wrote:

> Hi All,
>
> Just FYI: I'm currently building Csound on OSX Lion and have come up
> against a few issues.  I'm currently building with universalX86 to
> build i386/x86_64.  I committed some fixes to SConstruct to handle
> address issues with Lion.
>
> So far, libsndfile required some manual work to build a fat binary for
> i386/x86_64.  The latest stable tarball release of PortAudio does not
> compile on Lion, but using the latest snapshot from SVN has been fixed
> up for Lion and does build.
>
> Also, one thing we may want to look at is using
> -mmacosx-version-min=10.4 when building.  I ran into an issue a while
> back while building cmask for Jan Jacob where I did not give a min
> version for my build and he was using an earlier OSX than the machine
> I was building on and was unable to run the files I built.
>
> I've written a small wiki page to collect the things I've done so far:
>
> https://sourceforge.net/apps/mediawiki/csound/index.php?title=Building_Csound_on_OSX_Lion
>
> I'll add more as I go along.
>
> Thanks!
> steven
>
> ------------------------------------------------------------------------------
> BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
> The must-attend event for mobile developers. Connect with experts.
> Get tools for creating Super Apps. See the latest technologies.
> Sessions, hands-on labs, demos & much more. Register early & save!
> http://p.sf.net/sfu/rim-blackberry-1
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie




------------------------------------------------------------------------------
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts. 
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2011-08-05 16:49
FromSteven Yi
SubjectRe: [Cs-dev] Building Csound on OSX Lion 10.7
For portaudio, the stable build was hardcoded to check only for 10.5
SDK and other would try to build with min sdk 10.3.  With Lion and
XCode installed from App store, the SDK's installed are 10.6 and 10.7.
 The configure file in the latest from SVN is modified to look for
10.6 and 10.7 and will use -arch i386 and -arch x86_64 (and drops
ppc).  It also uses 10.4 for min osx version. (Using min osx version <
10.4 will cause the build to fail, as 10.6 and 10.7 work with min 10.4
and up).

For Csound, the link flags for the dynamic libraries was not taking
into account the arch settings.  When it was going to link the Java
interface build, I was getting a problem with not getting the files
built for both x86_64 and i386.

That's what I've run into so far at least. :)

steven


On Fri, Aug 5, 2011 at 11:36 AM, Victor Lazzarini
 wrote:
> yes, libsndfile always needs to be built for separate archs and then
> lipo'd together. Eric has explained this before.
>
> What are the issues with portaudio? Is there a new version of
> coreaudio that is not compatible anymore? What about csound what
> were the issues?
>
> Victor
> On 5 Aug 2011, at 16:12, Steven Yi wrote:
>
>> Hi All,
>>
>> Just FYI: I'm currently building Csound on OSX Lion and have come up
>> against a few issues.  I'm currently building with universalX86 to
>> build i386/x86_64.  I committed some fixes to SConstruct to handle
>> address issues with Lion.
>>
>> So far, libsndfile required some manual work to build a fat binary for
>> i386/x86_64.  The latest stable tarball release of PortAudio does not
>> compile on Lion, but using the latest snapshot from SVN has been fixed
>> up for Lion and does build.
>>
>> Also, one thing we may want to look at is using
>> -mmacosx-version-min=10.4 when building.  I ran into an issue a while
>> back while building cmask for Jan Jacob where I did not give a min
>> version for my build and he was using an earlier OSX than the machine
>> I was building on and was unable to run the files I built.
>>
>> I've written a small wiki page to collect the things I've done so far:
>>
>> https://sourceforge.net/apps/mediawiki/csound/index.php?title=Building_Csound_on_OSX_Lion
>>
>> I'll add more as I go along.
>>
>> Thanks!
>> steven
>>
>> ------------------------------------------------------------------------------
>> BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
>> The must-attend event for mobile developers. Connect with experts.
>> Get tools for creating Super Apps. See the latest technologies.
>> Sessions, hands-on labs, demos & much more. Register early & save!
>> http://p.sf.net/sfu/rim-blackberry-1
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
> Dr Victor Lazzarini
> Senior Lecturer
> Dept. of Music
> NUI Maynooth Ireland
> tel.: +353 1 708 3545
> Victor dot Lazzarini AT nuim dot ie
>
>
>
>
> ------------------------------------------------------------------------------
> BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
> The must-attend event for mobile developers. Connect with experts.
> Get tools for creating Super Apps. See the latest technologies.
> Sessions, hands-on labs, demos & much more. Register early & save!
> http://p.sf.net/sfu/rim-blackberry-1
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts. 
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2011-08-05 22:05
FromSteven Yi
SubjectRe: [Cs-dev] Building Csound on OSX Lion 10.7
Just following up, I had to use the the same general method for
building a fat binary for liblo as I did for libsndfile.  The wiki
page has been updated with instructions and the build.sh script I used
to automate building and using lipo to create the fat binary.

Thanks!
steven

On Fri, Aug 5, 2011 at 11:49 AM, Steven Yi  wrote:
> For portaudio, the stable build was hardcoded to check only for 10.5
> SDK and other would try to build with min sdk 10.3.  With Lion and
> XCode installed from App store, the SDK's installed are 10.6 and 10.7.
>  The configure file in the latest from SVN is modified to look for
> 10.6 and 10.7 and will use -arch i386 and -arch x86_64 (and drops
> ppc).  It also uses 10.4 for min osx version. (Using min osx version <
> 10.4 will cause the build to fail, as 10.6 and 10.7 work with min 10.4
> and up).
>
> For Csound, the link flags for the dynamic libraries was not taking
> into account the arch settings.  When it was going to link the Java
> interface build, I was getting a problem with not getting the files
> built for both x86_64 and i386.
>
> That's what I've run into so far at least. :)
>
> steven
>
>
> On Fri, Aug 5, 2011 at 11:36 AM, Victor Lazzarini
>  wrote:
>> yes, libsndfile always needs to be built for separate archs and then
>> lipo'd together. Eric has explained this before.
>>
>> What are the issues with portaudio? Is there a new version of
>> coreaudio that is not compatible anymore? What about csound what
>> were the issues?
>>
>> Victor
>> On 5 Aug 2011, at 16:12, Steven Yi wrote:
>>
>>> Hi All,
>>>
>>> Just FYI: I'm currently building Csound on OSX Lion and have come up
>>> against a few issues.  I'm currently building with universalX86 to
>>> build i386/x86_64.  I committed some fixes to SConstruct to handle
>>> address issues with Lion.
>>>
>>> So far, libsndfile required some manual work to build a fat binary for
>>> i386/x86_64.  The latest stable tarball release of PortAudio does not
>>> compile on Lion, but using the latest snapshot from SVN has been fixed
>>> up for Lion and does build.
>>>
>>> Also, one thing we may want to look at is using
>>> -mmacosx-version-min=10.4 when building.  I ran into an issue a while
>>> back while building cmask for Jan Jacob where I did not give a min
>>> version for my build and he was using an earlier OSX than the machine
>>> I was building on and was unable to run the files I built.
>>>
>>> I've written a small wiki page to collect the things I've done so far:
>>>
>>> https://sourceforge.net/apps/mediawiki/csound/index.php?title=Building_Csound_on_OSX_Lion
>>>
>>> I'll add more as I go along.
>>>
>>> Thanks!
>>> steven
>>>
>>> ------------------------------------------------------------------------------
>>> BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
>>> The must-attend event for mobile developers. Connect with experts.
>>> Get tools for creating Super Apps. See the latest technologies.
>>> Sessions, hands-on labs, demos & much more. Register early & save!
>>> http://p.sf.net/sfu/rim-blackberry-1
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>> Dr Victor Lazzarini
>> Senior Lecturer
>> Dept. of Music
>> NUI Maynooth Ireland
>> tel.: +353 1 708 3545
>> Victor dot Lazzarini AT nuim dot ie
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
>> The must-attend event for mobile developers. Connect with experts.
>> Get tools for creating Super Apps. See the latest technologies.
>> Sessions, hands-on labs, demos & much more. Register early & save!
>> http://p.sf.net/sfu/rim-blackberry-1
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>

------------------------------------------------------------------------------
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts. 
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net