[Cs-dev] building on os x, how to make scons find macports libraries?
Date | 2012-02-05 07:12 |
From | Iain Duncan |
Subject | [Cs-dev] building on os x, how to make scons find macports libraries? |
Attachments | None None |
Hope someone who has built Csound from source on os x can help, I'm very new to os x ( hackintosh success, yay!) I installed MacPorts, and have installed dependencies from there, libsndfile, liblo, etc. I can see them in /opt/local/lib.
I copied custom-osx.py to custom.py, and then edited it to (I hoped) tell it to look there: customLIBPATH = ["/opt/local/lib"] customSHLINKFLAGS = []
customSWIGFLAGS = [] ## This seems to do nothing if sys.platform != 'darwin': customSHLINKFLAGS.append('-Wl,--as-needed') if sys.platform[:5] == 'linux':
platform = 'linux' customCPPPATH.append('/usr/lib/jvm/java-1.5.0/include') customCPPPATH.append('/usr/lib/jvm/java-1.5.0/include/linux') customCCFLAGS.append('-I/usr/local/include/libcwiimote-0.4.0/libcwiimote')
elif sys.platform == 'darwin': platform = 'darwin' customCPPPATH.append('/usr/include/malloc') customCPPPATH.append('/opt/local/include/boost-1_32/')
customCPPPATH.append('/usr/include/python2.6') customLIBPATH.append('/opt/local/lib') customCXXFLAGS.append('-fabi-version=0') But, when I try to run scons I get Checking for C library sndfile... no The sndfile library is required to build Csound 5. Any one know what I'm missing?
thanks! Iain
|
Date | 2012-02-05 11:57 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] building on os x, how to make scons find macports libraries? |
What does your config.log say? Victor On 5 Feb 2012, at 07:12, Iain Duncan wrote: > Hope someone who has built Csound from source on os x can help, I'm very new to os x ( hackintosh success, yay!) > > I installed MacPorts, and have installed dependencies from there, libsndfile, liblo, etc. I can see them in /opt/local/lib. > > I copied custom-osx.py to custom.py, and then edited it to (I hoped) tell it to look there: > > customLIBPATH = ["/opt/local/lib"] > customSHLINKFLAGS = [] > customSWIGFLAGS = [] > > ## This seems to do nothing > if sys.platform != 'darwin': > customSHLINKFLAGS.append('-Wl,--as-needed') > if sys.platform[:5] == 'linux': > platform = 'linux' > customCPPPATH.append('/usr/lib/jvm/java-1.5.0/include') > customCPPPATH.append('/usr/lib/jvm/java-1.5.0/include/linux') > customCCFLAGS.append('-I/usr/local/include/libcwiimote-0.4.0/libcwiimote') > elif sys.platform == 'darwin': > platform = 'darwin' > customCPPPATH.append('/usr/include/malloc') > customCPPPATH.append('/opt/local/include/boost-1_32/') > customCPPPATH.append('/usr/include/python2.6') > customLIBPATH.append('/opt/local/lib') > customCXXFLAGS.append('-fabi-version=0') > > > But, when I try to run scons I get > > Checking for C library sndfile... no > The sndfile library is required to build Csound 5. > > Any one know what I'm missing? > > thanks! > Iain > ------------------------------------------------------------------------------ > Try before you buy = See our experts in action! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-dev2_______________________________________________ > 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 ------------------------------------------------------------------------------ Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2012-02-05 17:52 |
From | Iain Duncan |
Subject | Re: [Cs-dev] building on os x, how to make scons find macports libraries? |
Attachments | None None |
Thanks Victor, here is my config.log contents. I don't see and -L flags in the test calls to gcc, but nor do I know how to get them in there... 1 file /usr/local/src/Csound5.15.0/SConstruct,line 396:
2 Configure(confdir = .sconf_temp) 3 scons: Configure: Checking for C header file libintl.h... 4 .sconf_temp/conftest_0.c <- 5 | 6 |#include <libintl.h>
7 | 8 | 9 gcc -o .sconf_temp/conftest_0.o -c -I. -IH -I/usr/include/malloc -I/opt/local/include/boost-1_32 -I/usr/include/python2.6 .sconf_temp/conftest_0.c 10 .sconf_temp/conftest_0.c:2:21: error: libintl.h: No such file or directory
11 scons: Configure: no 12 13 14 file /usr/local/src/Csound5.15.0/SConstruct,line 687: 15 Configure(confdir = .sconf_temp) 16 scons: Configure: Checking for C header file stdio.h...
17 .sconf_temp/conftest_1.c <- 18 | 19 |#include <stdio.h> 20 | 21 | 22 gcc -o .sconf_temp/conftest_1.o -c -Wno-format -g -fomit-frame-pointer -freorder-blocks -DMACOSX -DPIPES -DBETA -I. -IH -I/usr/include/malloc -I/opt/local/include/boost-1_32 -I/usr/include/python2.6 -I/usr/
23 scons: Configure: yes 24 25 scons: Configure: Checking for C library sndfile... 26 .sconf_temp/conftest_2.c <- 27 | 28 | 29 |#include "sndfile.h"
30 | 31 |int 32 |main() { 33 | 34 |return 0; 35 |} 36 | 37 gcc -o .sconf_temp/conftest_2.o -c -Wno-format -g -fomit-frame-pointer -freorder-blocks -DMACOSX -DPIPES -DBETA -I. -IH -I/usr/include/malloc -I/opt/local/include/boost-1_32 -I/usr/include/python2.6 -I/usr/
38 .sconf_temp/conftest_2.c:3:21: error: sndfile.h: No such file or directory 39 scons: Configure: no 40 |
Date | 2012-02-05 17:58 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] building on os x, how to make scons find macports libraries? |
Add this to custom.py: customCPPPATH.append('/usr/opt/include') or wherever your headers are supposed to be. Victor On 5 Feb 2012, at 17:52, Iain Duncan wrote: > Thanks Victor, here is my config.log contents. I don't see and -L flags in the test calls to gcc, but nor do I know how to get them in there... > > 1 file /usr/local/src/Csound5.15.0/SConstruct,line 396: > 2 Configure(confdir = .sconf_temp) > 3 scons: Configure: Checking for C header file libintl.h... > 4 .sconf_temp/conftest_0.c <- > 5 | > 6 |#include |
Date | 2012-02-05 18:24 |
From | Iain Duncan |
Subject | Re: [Cs-dev] building on os x, how to make scons find macports libraries? |
Attachments | None None |
Thanks! that did it. That was relatively painless actually, I was able to install all the dependencies with MacPorts. It doesn't seem to like the MacPorts jack install, but one thing at a time. Iain
On Sun, Feb 5, 2012 at 9:58 AM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote: Add this to custom.py: |
Date | 2012-02-05 18:46 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] building on os x, how to make scons find macports libraries? |
Attachments | None None |
If you install JackOSX, then you get all you need (in /usr/local). On 5 Feb 2012, at 18:24, Iain Duncan wrote: Thanks! that did it. That was relatively painless actually, I was able to install all the dependencies with MacPorts. It doesn't seem to like the MacPorts jack install, but one thing at a time. Dr Victor Lazzarini Senior Lecturer Dept. of Music NUI Maynooth Ireland tel.: +353 1 708 3545 Victor dot Lazzarini AT nuim dot ie |
Date | 2012-02-06 04:26 |
From | Iain Duncan |
Subject | Re: [Cs-dev] building on os x, how to make scons find macports libraries? |
Attachments | None None |
On Sun, Feb 5, 2012 at 10:46 AM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
Thanks. Do you have pref one way or the other for the 'apple way' or unix way? I got jack apps building ok with -framework Jackmp.
thanks Iain |