Csound Csound-dev Csound-tekno Search About

Re: [Cs-dev] [Csnd] Python API on macIntel

Date2007-04-01 20:52
FromVictor Lazzarini
SubjectRe: [Cs-dev] [Csnd] Python API on macIntel
Ah, you need SWIG...

Sorry there are so many components that I forget
what they are.

That's pretty easy now. Just get the latest swig
from swig.sf.net, build and install it and then
run scons with buildInterfaces=1 as well as
 buildRelease etc

Victor



>
>
>
>
>
> There's no lib_csnd in the Intel build.  I figure from the
> note on   the main list that there's supposed to be one.
> Here's the output   from scons when I'm doing a build.
> It looks like the important   stuff is all there, is
> something missing?
>
>
> scons: Reading SConscript files ...
>
> C S O U N D 5
>
> SCons build file for Csound 5:
> API library, plugin opcodes, utilities, and front ends.
>
> By Michael Gogins 
>
> For custom options, run 'scons -h'.
> For default options, run 'scons -H'.
> If headers or libraries are not found, edit 'custom.py'.
> For Linux, run in the standard shell
>      with standard Python and just run 'scons'.
> For MinGW, run in the MSys shell
>      and use www.python.org WIN32 Python to run scons.
>
> System platform is 'darwin'.
> Using options from 'custom.py.'
> Build platform is 'darwin'.
> SCons tools on this platform:  ['default', 'gnulink',
> 'gcc', 'g++',   'g77', 'gas', 'ar', 'CVS', 'jar', 'javac',
> 'javah', 'lex', 'm4',   'RCS', 'rmic', 'tar', 'yacc',
> 'zip'] CONFIGURATION DECISION: Using single-precision
> floating point for   audio samples.
> Checking for C header file stdio.h... yes
> Checking for C header file sndfile.h... yes
> Checking for C header file portaudio.h... yes
> Checking for C header file portmidi.h... yes
> Checking for C++ header file FL/Fl.H... yes
> Checking for C++ header file FL/Fl_Spinner.H... yes
> Checking for C++ header file boost/any.hpp... no
> Checking for C header file alsa/asoundlib.h... no
> Checking for C header file jack/jack.h... no
> Checking for C header file lo/lo.h... yes
> Checking for C++ header file Opcodes/stk/include/Stk.h...
> yes Checking for C header file m_pd.h... yes
> Checking for C header file tcl.h... yes
> Checking for C header file lua.h... no
> Checking for SWIG... no
> Checking for C header file Python.h... yes
> Checking for C++ header file /System/Library/Frameworks/
> JavaVM.Framework/Headers/jni.h... yes
> Checking for C header file io.h... no
> Checking for C header file fcntl.h... yes
> Checking for C header file unistd.h... yes
> Checking for C header file stdint.h... yes
> Checking for C header file sys/time.h... yes
> Checking for C header file sys/types.h... yes
> Checking for C header file termios.h... yes
> Checking for C header file sys/socket.h... yes
> Checking for libsndfile version 1.0.16 or later... ok
> CONFIGURATION DECISION: Not building with new parser
> csound opcode dir
> -DCS_DEFAULT_PLUGINDIR=\"/Library/Frameworks/CsoundLib.Fra
> mework/  Versions/5.1/Resources/Opcodes\"
> CONFIGURATION DECISION: Building dynamic Csound library
> CONFIGURATION DECISION: Not building Csound interfaces
> library. CONFIGURATION DECISION: Not generating PDF
> documentation. CONFIGURATION DECISION: Building Virtual
> Keyboard plugin. CONFIGURATION DECISION: Building
> CoreAudio plugin. CONFIGURATION DECISION: Not building
> ALSA plugin. CONFIGURATION DECISION: Building PortAudio
> module. CONFIGURATION DECISION: Not building JACK plugin.
> CONFIGURATION DECISION: Building with PortMIDI.
> CONFIGURATION DECISION: Building OSC plugin.
> CONFIGURATION DECISION: Building UDP plugins.
> Checking for C header file fluidsynth.h... no
> CONFIGURATION DECISION: Not building fluid opcodes.
> Checking for C header file Opcodes/Loris/src/loris.h...
> yes Checking for C header file fftw3.h... yes
> CONFIGURATION DECISION: Building Loris Python extension
> and Csound   opcodes.
> CONFIGURATION DECISION: Building STK opcodes.
> CONFIGURATION DECISION: Building Python opcodes.
> CONFIGURATION DECISION: Not building FLTK CSOUND5GUI
> frontend. CONFIGURATION DECISION: Not building CsoundVST
> plugin and standalone. CONFIGURATION DECISION: Building
> Tclcsound frontend CONFIGURATION DECISION: Not building
> Winsound CONFIGURATION DECISION: building OSX GUI frontend
> CONFIGURATION DECISION: Not building DSSI plugin host
> opcodes. CONFIGURATION DECISION: Not calling TAGS
> CONFIGURATION DECISION: Calling makedb
> CONFIGURATION DECISION: Not compiling zip file for
> release. CONFIGURATION DECISION: Adding resource fork for
> csound scons: done reading SConscript files.
>
>
>
> On 1 Apr 2007, at 09:57, Victor Lazzarini wrote:
>
> > I think lib_csnd.dylib is probably in you
> > /usr/local/lib. If so, just make a link to it in the
> frameworks dir: >
> > sudo ln -s /usr/local/lib/lib_csnd.dylib
> > /Library/Frameworks/Csoundlib.framework/lib_csnd.dylib
> >
> > Victor
> >
> >>
> >> Hi all,
> >>
> >> I would really like to get the Python API working on my
> >> macbook pro.  I've  tried it with my own build of
> Csound >> and the recent build by Jim Credland.   The
> result is the >> same when importing csnd:
> >>
> >>>>> import csnd
> >> ImportError: Failure linking new module:
> >>
> /Library/Frameworks/Python.framework/Versions/2.4/lib/pyth
> >> on2.4/site-packages/_csnd.so:  Library not loaded: >>
> /Library/Frameworks/CsoundLib.framework/Versions/5.1/lib_c
> >> snd.dylib >>   Referenced from:
> >>
> /Library/Frameworks/Python.framework/Versions/2.4/lib/pyth
> >> on2.4/site-packages/_csnd.so >>   Reason: image not
> found >>
> >> I looked around a little and noticed that I'm missing
> >> lib_csnd.dylib,  although I do have Csoundlib in the
> same >> folder.  So... how can I get this  dylib?  Do any
> of you >> have further thoughts on this issue, or ideas
> for >> debugging?  Is the lib_csnd.dylib even likely to
> solve my >> problem?
> >>
> >> Thanks in advance for any help,
> >>
> >> Isaac
> >>
> >>
> __________________________________________________________
> >> _______ Interest Rates near 39yr lows! $430,000
> Mortgage >> for $1,399/mo - Calculate  new payment
> >>
> > http://www.lowermybills.com/lre/index.jsp?
> > sourceid=lmb-9632-18466&moid=7581
> >>
> >> --
> >> Send bugs reports to this list.
> >> To unsubscribe, send email to
> >> csound-unsubscribe@lists.bath.ac.uk
> > --
> > Send bugs reports to this list.
> > To unsubscribe, send email to
> csound-unsubscribe@lists.bath.ac.uk
>
>
>
>
> ----------------------------------------------------------
> --------------- Take Surveys. Earn Cash. Influence the
> Future of IT Join SourceForge.net's Techsay panel and
> you'll get the chance to share your opinions on IT &
> business topics through brief surveys-and earn cash
>
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
>
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
> [Attachment: smime.p7s]

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2007-04-02 10:55
From"Jim Credland"
SubjectRe: [Cs-dev] [Csnd] Python API on macIntel
AttachmentsNone