Csound Csound-dev Csound-tekno Search About

Re: [Cs-dev] csound5gui Error

Date2006-05-06 20:33
FromMichael Gogins
SubjectRe: [Cs-dev] csound5gui Error
I'm having problems getting the Python to actually work. No problem loading Python and calling the Python API dynamically. The problem comes when actually running Python scripts. Code that works in CsoundVST doesn't work in csound5gui. Probably the threading or message callback stuff is too different.

At this point, we can fix this or just revert to csound5gui without Python. I'm happy either way, I'd like to know what others think.

Regards,
Mike

-----Original Message-----
>From: Istvan Varga 
>Sent: May 6, 2006 1:20 PM
>To: csound-devel@lists.sourceforge.net
>Subject: Re: [Cs-dev] csound5gui Error
>
>There is a new source package now here:
>  http://csound.sourceforge.net/csound5-20060506.tar.gz
>This also includes the new stack opcodes and the maximum number of
>output arguments for user defined opcodes has been increased to 24
>by fixing the bug that previously made it one less. Note that the
>GUI frontend has some currently incomplete code for loading Python
>scripts, and it is now built using SConstruct which was not tested
>on the Mac yet.
>There are a few things that may be worth testing to fix possible
>bugs before the 5.02 release:
>  - the csound5gui frontend tries to load the Python library from
>    /System/Library/Frameworks/Python.Framework/Versions/Current/lib/libpython2.4.dylib
>    on MacOS X. Check the message printed at start-up to find out
>    if loading Python was successful; if it was not, sending the
>    correct path to the library would be welcome.
>  - problems were reported about using the JACK plugin on OS X.
>    I made some attempts to fix/improve this, but do not know if
>    the changes have any useful effect.
>  - FLTK graphs and widgets in the GUI frontend.
>
>On Saturday 06 May 2006 01:42, David Akbari wrote:
>
>> Hi Istvan,
>> 
>> First off, please accept my sincerest apologies for not specifying this 
>> information in the original email.
>> 
>> I was using the csound5-20060430 tarball that had the csound5gui 
>> program in the "fltk_gui" directory. Also I was using FLTK-1.1.5 on Mac 
>> OS 10.4 that was configured with --enable-shared --enable-threads.
>> 
>> Using FLTK-1.1.7 on Mac OS 10.3.9, I experienced no problems at all. 
>> Just now, I trashed the old Csound5 directory and freshly compiled the 
>> csound5-20060430 sources and everything compiled without issue 
>> (including manually going to the frontends/fltk_gui and doing make -f 
>> Makefile-OSX)
>> 
>> Perhaps important to note is that I was unable to get FLTK-1.1.7 or 
>> FLTK-1.1.6 compiling on Mac OS 10.4 Tiger. It would get all the way to 
>> the link phase of fluid-shared and then error out with a single 
>> undefined symbol in Fl::widget.
>> 
>> I emailed Victor off-list and he suggested to use FLTK-1.1.5 which 
>> definitely worked, and allowed for compiling all SConstruct enabled 
>> targets, however it was the first time I had compilation errors with 
>> the csound5gui program (original email).
>> 
>> Is this simply an FLTK version mismatch ? Perhaps it is worth 
>> formulating some empirical evidence to bring to the attention to the 
>> FLTK developers...
>> 
>> For one thing, on *all* versions of FLTK I've compiled on OS X, they 
>> are missing a link flag to link with libstdc++ and it always errors out 
>> with undefined symbols related to the stdc++ library.
>> 
>> Specifically, ./configure in FLTK generates this line
>> 
>> DSOCOMMAND	= $(CC)  -dynamiclib -lc -o
>> 
>> which should nominally be
>> 
>> DSOCOMMAND	= $(CC)  -dynamiclib -lc -lstdc++ -L../lib -o
>> 
>> on OS X (all versions). Using the former results in undefined symbols 
>> [0], which means the "stable release" 1.1.7 does not work out of the 
>> box.
>> 
>> Specifically concerning the csound5gui frontend, I have been using it 
>> with FLTK-1.1.7 on OS X 10.3 and Debian Linux 2.6 kernel. Disabling a 
>> separate thread for audio allows instantiation of the FLTK widgets from 
>> the frontend (they respond to mouse input) however there is no audio. 
>> Leaving a separate thread enabled for audio processing produces audio 
>> output but the FLTK window hangs and does not respond to interrupts 
>> (spinning beach ball) forcing a Ctrl+C of the program. Frankly, I don't 
>> use FLTK too much so I find this frontend to be most useful for quickly 
>> compiling Csound5 orchestras. The message level by default is also 
>> nice.
>> 
>> Is there a way to change the message color using #FFFFFF 6 digit hex 
>> notation ? Just curious.
>
>
>-------------------------------------------------------
>Using Tomcat but need to do more? Need to support web services, security?
>Get stuff done quickly with pre-integrated technology to make your job easier
>Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
>http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>_______________________________________________
>Csound-devel mailing list
>Csound-devel@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/csound-devel





-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2006-05-07 14:55
FromIstvan Varga
SubjectRe: [Cs-dev] csound5gui Error
AttachmentsNone