| Of course realtime audio is just a matter of writing
a module. Should be no problem on Solaris. In fact
I was considering installing solaris in a spare machine to
try it out. (Summer project?)
Victor
----- Original Message -----
From: "Anthony Kozar"
To: "Csound mailing list address"
Sent: Sunday, March 16, 2008 6:10 PM
Subject: [Csnd] Re: Plugins not loading on Solaris
I was looking through the plugin loading code in Csound today and remembered
this problem that Sergio was having. The answer to why none of the plugins
are loading is that there is no plugin support for Solaris!
Csound only has code for loading plugins on Windows, Linux, MacOS X, and
MacOS 9. When compiled on any other platform, it uses a dummy function for
csoundOpenLibrary() that always returns -1 -- thus the error message. (See
line 1176 in Top/csmodule.c).
The solution is to do one of the following:
a) If Solaris uses the same methods for loading modules that Linux does,
then change the #elif defined(LINUX) on line 899 of csmodule.c to include a
test for Solaris too. (Might be prudent for us to add tests for BSD Unices
as well if appropriate). Also, the #if defined(LINUX) tests on line 81 and
in csoundLoadExternal() should probably be changed (?).
b) Otherwise, a new #elif case needs to be added with Solaris-specific
versions of the functions csoundOpenLibrary(), csoundCloseLibrary(), and
csoundGetLibrarySymbol().
Other factors should also be checked, such as the assumptions in
csoundLoadModules() about filename extensions for plugin libraries (line
673).
There may be many other parts of Csound 5 that test for LINUX when what is
really meant is "any non-MacOSX Unix". It may be expedient to simply define
LINUX during the build process on Solaris or BSD but I do not know for sure
that this will work. It would be nice if Csound 5 would gracefully build on
these platforms, supporting the features that it can and ignoring those it
cannot (like real-time audio?).
Anthony Kozar
mailing-lists-1001 AT anthonykozar DOT net
http://anthonykozar.net/
> Re: Plugins
> by cochedelaferte :: Rate this Message:
>
> Hi Steven,
>
>> What Linux are you using?
>
> - Solaris x86-64 : not Linux, but also not very different in this kind of
> problems.
>
> [...]
>
> Best regards,
>
> Sergio
On Sun, Mar 9, 2008 at 6:42 PM, cochedelaferte wrote:
> WARNING: could not open library
> '/usr/pkg/lib/csound/plugins/libampmidid.so'
> (-1)
> (and all plugins).
> What can mean this "(-1)" ? I builded csound with only the default
> options,
> but it recognized as well my installed Jack, and other hand it builded
> itself all plugins.
Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
csound"=
|