Csound Csound-dev Csound-tekno Search About

Re: [Cs-dev] csoundVST on OSX

Date2005-10-27 14:19
FromMichael Gogins
SubjectRe: [Cs-dev] csoundVST on OSX
As I don't have a Mac, I'm not much help here.

Perhaps you could give me remote developer access to your machine, then I could try messing around with the build system from here. I do this with RealVNC on Windows for my wife's web site, and it's a boon. There's probably something like this for OS X.

Regards,
Mike

-----Original Message-----
From: Victor Lazzarini 
Sent: Oct 27, 2005 4:34 AM
To: csound-devel@lists.sourceforge.net
Subject: Re: [Cs-dev] csoundVST on OSX

I did some more tests and this is what I got:

1. I had to build two separate libs: _CsoundVST.dylib (dynamic library
for CsoundVST linking) and _CsoundVST.so (bundle for python
import)

2. Java Wrappers compilation for CsoundVST is a mess,
but I reckon that it might be caused by a header that was not found.

3. When running (with PYTHONPATH set), CsoundVST seems to
call csoundInitialize() [I see the csound init message on stdout],
and then imports _CsoundVST module, which is OK, but then
this seems to call csoundInitialize()  again, and then it crashes.

4. When running python and then importing _CsoundVST all
seems to be normal (although I did not try any csound API calls,
but I suppose it should work as the _csnd module).

What do you reckon? Do you think the problems of item 3
have to do with using two separate dynamic modules? Well,
if that's the case, forget CsoundVST on OSX, it will not work,
because it will always require two libs, since you cannot
link to a bundle, and a python module has to be a bundle.

Victor

At 23:05 26/10/2005, you wrote:
>Setting the environment variable lets the interpreter find
>the CsoundVST module. However, as I predicted, it can't
>load it because it's a dylib not a bundle. I'm not sure now
>that building it as a bundle will then affect CsoundVST
>itself, because it might be expecting a dylib. I'll try it
>tomorrow.
>
>Compiling it and building it was surprisingly simple, as
>I only had the gcvt error.  Something is wrong with the
>java wrappers csoundVST interface though. The SWIG
>generated file throws a multitude of errors.
>
>Another funny thing is that although I have boost in the
>right place (/usr/local/include), scons is not finding it
>(I had to bypass it for compilation).
>
>Victor
>
> >
> > Did you define an environment variable PYTHONPATH pointing
> > to the directory where CsoundVST shared library is? Not
> > doing this seems the likeliest explanation.
> >
> > You can try running the Python command interpreter, then
> > trying to "import CsoundVST". You can "import sys" and
> > "sys.path.append('whatever directory I think CsoundVST is
> > in')" and then "import CsoundVST". This may be more
> > informative than just trying to run the program.
> >
> > CsoundVST creates CSOUND * _in Python_ and retrieves
> > CSOUND * _from Python_ so that it can run the same
> > instance of Csound both from its own C++ code and from the
> > user's Python code, install message callbacks so Csound
> > messages go to the Python message output and from that to
> > the edit box in the GUI, etc., hence the need to "import
> > CsoundVST" before running.
> >
> > Thanks for trying this out on OS X, I know there are at
> > least a few potential users for this on OS X.
> >
> > Regards,
> > Mike
> >
> >
> > -----Original Message-----
> > From: Victor Lazzarini 
> > Sent: Oct 26, 2005 1:51 PM
> > To: csound-devel@lists.sourceforge.net
> > Subject: [Cs-dev] csoundVST on OSX
> >
> > I have tried to build csoundVST on OSX; after fixing
> > the gcvt issue in one of the sources, it seemed to
> > build OK, except for the Java wrappers, the
> > JCsound_wrap.cc throws thousands of errors, so I am not
> > sure what the problem
> > is there.
> >
> > Now when I try to run it I get problems. This is the
> > stdin message output. Perhaps Michael can tell what
> > the problem is.
> >
> > NB: I know, for a start, that there might be a major issue
> > regarding dynamic linking. Python requires their modules
> > to be bundles, _CsoundVST.dylib is a dynamic lib; but
> > CsoundVST in turn might (?) expect it to be a dynamic lib,
> > so the same lib might not serve for both ends.
> >
> >
> > Starting CsoundVST...
> > Localisation of messages is disabled, using default
> > language.
> > time resolution is 1000.000 ns
> > BEGAN Shell::runScript()...
> > =====================================================
>==
> > =====================================================
>==
> > =====================================================
>==
> > =====================================================
>==
> > PyRun_SimpleString returned 0.
> > ENDED Shell::runScript().
> > BEGAN Shell::runScript()...
> > =====================================================
>==
> > =====================================================
>==
> > Traceback (most recent call last):
> >   File "", line 1, in ?
> > ImportError: No module named CsoundVST
> > =====================================================
>==
> > =====================================================
>==
> > PyRun_SimpleString returned -1.
> > ENDED Shell::runScript().
> > BEGAN Shell::runScript()...
> > =====================================================
>==
> > =====================================================
>==
> > AttributeError: 'module' object has no attribute 'csound'
> > =====================================================
>==
> > =====================================================
>==
> > PyRun_SimpleString returned -1.
> > ENDED Shell::runScript().
> > Csound tidy up: Segmentation fault
> >
> >
> > -------------------------------------------------------
> > This SF.Net email is sponsored by the JBoss Inc.
> > Get Certified Today * Register for a JBoss Training Course
> > Free Certification Exam for All Training Attendees Through
> > End of 2005 Visit
> > http://www.jboss.com/services/certification for more
> > information
> > _______________________________________________
> > Csound-devel mailing list
> > Csound-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/csound-devel
> >
> >
> >
> >
> >
> > -------------------------------------------------------
> > This SF.Net email is sponsored by the JBoss Inc.
> > Get Certified Today * Register for a JBoss Training Course
> > Free Certification Exam for All Training Attendees Through
> > End of 2005 Visit
> > http://www.jboss.com/services/certification for more
> > information
> > _______________________________________________
> > Csound-devel mailing list
> > Csound-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
>-------------------------------------------------------
>This SF.Net email is sponsored by the JBoss Inc.
>Get Certified Today * Register for a JBoss Training Course
>Free Certification Exam for All Training Attendees Through End of 2005
>Visit http://www.jboss.com/services/certification for more information
>_______________________________________________
>Csound-devel mailing list
>Csound-devel@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/csound-devel

Victor Lazzarini
Music Technology Laboratory
Music Department
National University of Ireland, Maynooth 



-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel





-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net