Csound Csound-dev Csound-tekno Search About

[Csnd] csnd.jar and the native libraries

Date2011-10-21 16:13
FromMichele Nasti
Subject[Csnd] csnd.jar and the native libraries
Hello everybody,
Is there a way to use csnd.jar without having to install csound first? The problem is that, when I use csnd.jar, it complains about _jcsound.so (on linux, but it's the same for all other operative systems).
If I "get" this three library files, for linux mac and windows, I can point to them when starting the application (via the -D flag).
So, is this going to work? Do you know wich files are the only necessary for my program to work?
Michele

Date2011-10-21 17:25
FromAdam Puckett
SubjectRe: [Csnd] csnd.jar and the native libraries
It depends on the user's CLASSPATH and OS.

On 10/21/11, Michele Nasti  wrote:
> Hello everybody,
> Is there a way to use csnd.jar without having to install csound first? The
> problem is that, when I use csnd.jar, it complains about _jcsound.so (on
> linux, but it's the same for all other operative systems).
> If I "get" this three library files, for linux mac and windows, I can point
> to them when starting the application (via the -D flag).
> So, is this going to work? Do you know wich files are the only necessary for
> my program to work?
> Michele
>
> Send bugs reports to the Sourceforge bug tracker
>             https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> csound"
>
>


Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2011-10-21 23:41
FromMichele Nasti
SubjectRe: [Csnd] csnd.jar and the native libraries
Is there any way to take this libraries out of the classpath (incorporating them in my project) and calling them depending on the OS ?
for example, if I am on windows, I include with my project the csndlib.dll (don't know if the name is right) and, without csound, it should work ... is this possible ??


2011/10/21 Adam Puckett <adotsdothmusic@gmail.com>
It depends on the user's CLASSPATH and OS.

On 10/21/11, Michele Nasti <michele.nasti@gmail.com> wrote:
> Hello everybody,
> Is there a way to use csnd.jar without having to install csound first? The
> problem is that, when I use csnd.jar, it complains about _jcsound.so (on
> linux, but it's the same for all other operative systems).
> If I "get" this three library files, for linux mac and windows, I can point
> to them when starting the application (via the -D flag).
> So, is this going to work? Do you know wich files are the only necessary for
> my program to work?
> Michele
>
> Send bugs reports to the Sourceforge bug tracker
>             https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> csound"
>
>


Send bugs reports to the Sourceforge bug tracker
           https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"



Date2011-10-21 23:46
FromSteven Yi
SubjectRe: [Csnd] csnd.jar and the native libraries
Yes.  You should be able to put them in a directory and make a script
that starts your app that does something like:

java -Djava.library.path=placeWhereYouHaveCsoundlibs -jar myApp.jar

But you'll still need all the opcode libraries, then anything they
themselves depend on.

On Fri, Oct 21, 2011 at 11:41 PM, Michele Nasti  wrote:
> Is there any way to take this libraries out of the classpath (incorporating
> them in my project) and calling them depending on the OS ?
> for example, if I am on windows, I include with my project the csndlib.dll
> (don't know if the name is right) and, without csound, it should work ... is
> this possible ??
>
>
> 2011/10/21 Adam Puckett 
>>
>> It depends on the user's CLASSPATH and OS.
>>
>> On 10/21/11, Michele Nasti  wrote:
>> > Hello everybody,
>> > Is there a way to use csnd.jar without having to install csound first?
>> > The
>> > problem is that, when I use csnd.jar, it complains about _jcsound.so (on
>> > linux, but it's the same for all other operative systems).
>> > If I "get" this three library files, for linux mac and windows, I can
>> > point
>> > to them when starting the application (via the -D flag).
>> > So, is this going to work? Do you know wich files are the only necessary
>> > for
>> > my program to work?
>> > Michele
>> >
>> > Send bugs reports to the Sourceforge bug tracker
>> >             https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> > Discussions of bugs and features can be posted here
>> > To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>> > csound"
>> >
>> >
>>
>>
>> Send bugs reports to the Sourceforge bug tracker
>>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>> csound"
>>
>
>


Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"


Date2011-10-21 23:50
FromVictor Lazzarini
SubjectRe: [Csnd] csnd.jar and the native libraries
I think the best way would be to base your application on an installation of Csound. For instance, when Csound is installed on OSX,
the required native library and the jar will be in the usual paths for Java. So you might not need to set special paths. It will be found.
I guess this is what happens in Linux, e.g. Debian, Ubuntu, Fedora, the packages install everything in the right places. 
On Windows, I don't know, but you can ask Michael Gogins.

Victor

On 21 Oct 2011, at 23:41, Michele Nasti wrote:

Is there any way to take this libraries out of the classpath (incorporating them in my project) and calling them depending on the OS ?
for example, if I am on windows, I include with my project the csndlib.dll (don't know if the name is right) and, without csound, it should work ... is this possible ??


2011/10/21 Adam Puckett <adotsdothmusic@gmail.com>
It depends on the user's CLASSPATH and OS.

On 10/21/11, Michele Nasti <michele.nasti@gmail.com> wrote:
> Hello everybody,
> Is there a way to use csnd.jar without having to install csound first? The
> problem is that, when I use csnd.jar, it complains about _jcsound.so (on
> linux, but it's the same for all other operative systems).
> If I "get" this three library files, for linux mac and windows, I can point
> to them when starting the application (via the -D flag).
> So, is this going to work? Do you know wich files are the only necessary for
> my program to work?
> Michele
>
> Send bugs reports to the Sourceforge bug tracker
>             https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> csound"
>
>


Send bugs reports to the Sourceforge bug tracker
           https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"



Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie




Date2011-10-22 01:17
FromMichele Nasti
SubjectRe: [Csnd] csnd.jar and the native libraries

Steve has catched the point, the problem is that I have to link everythink that is needed by something, and this will take me to the full csound libs.
However, from my small experience , Java is not always finding the libs in the Java path, ecpecially on win and Mac. So I have to use the script solution (and hope it will work on every system).

Il giorno 21/ott/2011 23:49, "Victor Lazzarini" <Victor.Lazzarini@nuim.ie> ha scritto:
I think the best way would be to base your application on an installation of Csound. For instance, when Csound is installed on OSX,
the required native library and the jar will be in the usual paths for Java. So you might not need to set special paths. It will be found.
I guess this is what happens in Linux, e.g. Debian, Ubuntu, Fedora, the packages install everything in the right places. 
On Windows, I don't know, but you can ask Michael Gogins.

Victor

On 21 Oct 2011, at 23:41, Michele Nasti wrote:

Is there any way to take this libraries out of the classpath (incorporating them in my project) and calling them depending on the OS ?
for example, if I am on windows, I include with my project the csndlib.dll (don't know if the name is right) and, without csound, it should work ... is this possible ??


2011/10/21 Adam Puckett <adotsdothmusic@gmail.com>
It depends on the user's CLASSPATH and OS.

On 10/21/11, Michele Nasti <michele.nasti@gmail.com> wrote:
> Hello everybody,
> Is there a way to use csnd.jar without having to install csound first? The
> problem is that, when I use csnd.jar, it complains about _jcsound.so (on
> linux, but it's the same for all other operative systems).
> If I "get" this three library files, for linux mac and windows, I can point
> to them when starting the application (via the -D flag).
> So, is this going to work? Do you know wich files are the only necessary for
> my program to work?
> Michele
>
> Send bugs reports to the Sourceforge bug tracker
>             https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> csound"
>
>


Send bugs reports to the Sourceforge bug tracker
           https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"



Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
Victor dot Lazzarini AT nuim dot ie




Date2011-10-22 07:58
FromVictor Lazzarini
SubjectRe: [Csnd] csnd.jar and the native libraries
On the Mac, it should find it. If it doesn't we need to make sure the packaging does it for you,

Victor
On 22 Oct 2011, at 01:17, Michele Nasti wrote:

Steve has catched the point, the problem is that I have to link everythink that is needed by something, and this will take me to the full csound libs.
However, from my small experience , Java is not always finding the libs in the Java path, ecpecially on win and Mac. So I have to use the script solution (and hope it will work on every system).

Il giorno 21/ott/2011 23:49, "Victor Lazzarini" <Victor.Lazzarini@nuim.ie> ha scritto:
I think the best way would be to base your application on an installation of Csound. For instance, when Csound is installed on OSX,
the required native library and the jar will be in the usual paths for Java. So you might not need to set special paths. It will be found.
I guess this is what happens in Linux, e.g. Debian, Ubuntu, Fedora, the packages install everything in the right places. 
On Windows, I don't know, but you can ask Michael Gogins.

Victor

On 21 Oct 2011, at 23:41, Michele Nasti wrote:

Is there any way to take this libraries out of the classpath (incorporating them in my project) and calling them depending on the OS ?
for example, if I am on windows, I include with my project the csndlib.dll (don't know if the name is right) and, without csound, it should work ... is this possible ??


2011/10/21 Adam Puckett <adotsdothmusic@gmail.com>
It depends on the user's CLASSPATH and OS.

On 10/21/11, Michele Nasti <michele.nasti@gmail.com> wrote:
> Hello everybody,
> Is there a way to use csnd.jar without having to install csound first? The
> problem is that, when I use csnd.jar, it complains about _jcsound.so (on
> linux, but it's the same for all other operative systems).
> If I "get" this three library files, for linux mac and windows, I can point
> to them when starting the application (via the -D flag).
> So, is this going to work? Do you know wich files are the only necessary for
> my program to work?
> Michele
>
> Send bugs reports to the Sourceforge bug tracker
>             https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> csound"
>
>


Send bugs reports to the Sourceforge bug tracker
           https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"



Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
Victor dot Lazzarini AT nuim dot ie




Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie