Csound Csound-dev Csound-tekno Search About

[Cs-dev] csound5 and python2.5

Date2007-08-06 18:38
FromOlivier Bélanger
Subject[Cs-dev] csound5 and python2.5
Hi all,

I sent this message to Victor but maybe someone in the group can help  
me...

> I'm trying again to link python2.5 and csound5 and I have some  
> difficulties...
>
> The binary installer create a 2.3 version in the Python.framework  
> so I installed csound5 from sources.
>
> I changed the path in custom.py to link /usr/include/python2.5  
> instead of python2.3. csound install correctly but I don't have  
> csnd.py and _csnd.so in my Python.framework even if I got this at  
> the installation:
>
> "
> g++ -o lib_csnd.dylib -framework python -dynamiclib -Xlinker - 
> compatibility_version -Xlinker 5.1 -Xlinker -current_version - 
> Xlinker 5.1 -install_name /Library/Frameworks/CsoundLib.framework/ 
> Versions/5.1/lib_csnd.dylib interfaces/pyMsgCb.os interfaces/ 
> CppSound.os interfaces/CsoundFile.os interfaces/Soundfile.os  
> interfaces/csPerfThread.os interfaces/cs_glue.os interfaces/ 
> filebuilding.os Engine/auxfd.os Engine/cfgvar.os Engine/entry1.os  
> Engine/envvar.os Engine/express.os Engine/extract.os Engine/ 
> fgens.os Engine/insert.os Engine/linevent.os Engine/memalloc.os  
> Engine/memfiles.os Engine/musmon.os Engine/namedins.os Engine/ 
> otran.os Engine/rdorch.os Engine/rdscor.os Engine/scsort.os Engine/ 
> scxtract.os Engine/sort.os Engine/sread.os Engine/swrite.os Engine/ 
> twarp.os InOut/libsnd.os InOut/libsnd_u.os InOut/midifile.os InOut/ 
> midirecv.os InOut/midisend.os InOut/winascii.os InOut/windin.os  
> InOut/window.os InOut/winEPS.os OOps/aops.os OOps/bus.os OOps/ 
> cmath.os OOps/diskin.os OOps/diskin2.os OOps/disprep.os OOps/ 
> dumpf.os OOps/fftlib.os OOps/goto_ops.os OOps/midiinterop.os OOps/ 
> midiops.os OOps/midiout.os OOps/mxfft.os OOps/oscils.os OOps/ 
> pstream.os OOps/pvfileio.os OOps/pvsanal.os OOps/random.os OOps/ 
> remote.os OOps/schedule.os OOps/sndinfUG.os OOps/str_ops.os OOps/ 
> ugens1.os OOps/ugens2.os OOps/ugens3.os OOps/ugens4.os OOps/ 
> ugens5.os OOps/ugens6.os OOps/ugrw1.os OOps/ugrw2.os OOps/vdelay.os  
> Top/argdecode.os Top/cscore_internal.os Top/cscorfns.os Top/ 
> csmodule.os Top/csound.os Top/getstring.os Top/main.os Top/ 
> new_opts.os Top/one_file.os Top/opcode.os Top/threads.os Top/ 
> utility.os -L/System/Library/Frameworks/Python.Framework/Versions/ 
> Current/lib -L/System/Library/Frameworks/Python.Framework/Versions/ 
> Current/lib/python2.5/config -L. -L. -L/usr/local/lib -L. -L. -lstdc 
> ++ -lsndfile
> g++ -o interfaces/python_interface_wrap.os -c -fexceptions -fabi- 
> version=0 -Wall -g -O2 -DMACOSX -DPIPES -faltivec -fPIC - 
> DHAVE_LIBSNDFILE=1016 -DBETA -DHAVE_FCNTL_H -DHAVE_UNISTD_H - 
> DHAVE_STDINT_H -DHAVE_SYS_TIME_H -DHAVE_SYS_TYPES_H - 
> DHAVE_TERMIOS_H -DHAVE_SOCKETS -DHAVE_DIRENT_H - 
> D__BUILDING_LIBCSOUND -I. -IH -I/usr/include/malloc -I/opt/local/ 
> include/boost-1_32 -I/usr/include/python2.5 -I/usr/local/include - 
> Iinterfaces -I/System/Library/Frameworks/Python.Framework/Headers  
> interfaces/python_interface_wrap.cc
> g++ -o _csnd.so -bundle -framework python interfaces/ 
> python_interface_wrap.os -L/System/Library/Frameworks/ 
> Python.Framework/Versions/Current/lib -L/System/Library/Frameworks/ 
> Python.Framework/Versions/Current/lib/python2.5/config -L. -L. -L/ 
> usr/local/lib -L. -L. -lstdc++ -lsndfile -l_csnd
>
> "
> Do you have an idea of what I maybe did wrong?
>
> I don't know the difference between dynamic librairy and  
> libcsound.a... which one I should use to build?
>
> Sorry to bug you again!
>
> Olivier

I'm on OS X Intel...

thanks!

Olivier

>
>
> Le 06-09-20 à 10:43, Victor Lazzarini a écrit :
>
>> OK, we will have to wait for the SWIG guys to come round to 2.5.
>>
>> Victor
>>
>> At 15:36 20/09/2006, you wrote:
>>> It doesn't work...
>>>
>>> Olivier
>>>
>>>
>>> There might be a problem with python2.5 and csound, as we are not
>>> sure whether SWIG supports it. But if you want to try it, perhaps
>>> you can just copy the files by hand.
>>>
>>> Victor
>>>
>>> At 03:48 20/09/2006, you wrote:
>>> >Hi Victor,
>>> >
>>> >I installed python2.5 and try to make it work with csound5 but I  
>>> don't
>>> >know how to tell csound to installed csnd.py and _csnd.so in  
>>> python2.5
>>> >framework...
>>> >
>>> >Is there a solution?
>>> >
>>> >Thanks
>>> >
>>> >Olivier
>>>
>>> Victor Lazzarini
>>> Music Technology Laboratory
>>> Music Department
>>> National University of Ireland, Maynooth
>>
>> Victor Lazzarini
>> Music Technology Laboratory
>> Music Department
>> National University of Ireland, Maynooth
>


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net