Csound Csound-dev Csound-tekno Search About

[Csnd] _jcsound lib on Mac 10.5

Date2009-09-08 13:51
FromJason Timm
Subject[Csnd] _jcsound lib on Mac 10.5
I'd like to know where's the _jcsound lib file on Mac 10.5 so I can use the API with Processing(and Blue)!?

I can say that it's not in /Resources/Java with csnd.jar. But there is lib_jcsound.jnilib.

Jason.

Date2009-09-08 16:12
FromVictor.Lazzarini@nuim.ie
Subject[Csnd] Re: _jcsound lib on Mac 10.5
AttachmentsNone  None  

Date2009-09-08 16:22
FromVictor.Lazzarini@nuim.ie
Subject[Csnd] Re: _jcsound lib on Mac 10.5
AttachmentsNone  

Date2009-09-08 20:13
FromJason Timm
Subject[Csnd] Re: Re: _jcsound lib on Mac 10.5
Nope. Has anyone got this file, or the location, for certain? Do I need a particular installer?

J.

On Tue, Sep 8, 2009 at 11:22 AM, <Victor.Lazzarini@nuim.ie> wrote:
I think it might be in
/Library/Frameworks/CsoundLib.framework/Resources/Java

or somewhere else inside the framework.

Victor

(sorry for the formatting in the previous e-mail. My blessed webmail's
fault).

----- Original Message -----
From: Jason Timm <jasontimm07@gmail.com>
Date: Tuesday, September 8, 2009 1:52 pm
Subject: [Csnd] _jcsound lib on Mac 10.5
To: csound@lists.bath.ac.uk

> I'd like to know where's the _jcsound lib file on Mac 10.5 so I can use the API with Processing(and Blue)!?
> I can say that it's not in /Resources/Java with csnd.jar. But there is lib_jcsound.jnilib.
>
> Jason.


Dr Victor Lazzarini, Senior Lecturer, Dept. of Music,
National University of Ireland, Maynooth



Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"


Date2009-09-08 21:56
FromVictor.Lazzarini@nuim.ie
Subject[Csnd] Re: Re: Re: _jcsound lib on Mac 10.5
AttachmentsNone  

Date2010-12-08 06:40
From4g63gsx
Subject[Csnd] Re: Re: Re: _jcsound lib on Mac 10.5
I'm bringing this post back from the dead.

I am having the same problem using the Java API. I am running Mac OS X
10.6.5 with a 64-bit processor. I am using Eclipse as a programming
environment. When I specify the location of the native library as
"/Library/Frameworks/CsoundLib64.framework/Versions/5.2/Resources/Java/" I
get the following error: 

_jcsound native code library failed to load.
java.lang.UnsatisfiedLinkError:
/Library/Frameworks/CsoundLib64.framework/Versions/5.2/Resources/Java/lib_jcsound.jnilib: 
no suitable image found.  Did find: 
/Library/Frameworks/CsoundLib64.framework/Versions/5.2/Resources/Java/lib_jcsound.jnilib:
mach-o, but wrong architecture

I didn't know what architecture it was referring to, so I tried linking it
the non-64-bit folder, and it gave me the same results.

For your reference, here is the java code I am trying to run (very simple so
far):
import csnd.*;

public class eqrun {
	public static void main(String args[]) {
		Csound cs = new Csound();
		cs.Compile("pvsbus(mod).csd");

		int result = 0;
		while(result == 0) {
			result = cs.PerformKsmps();
		}
	}
}
 
What does the error message mean? And how can I fix this problem. Also in a
related question, is there a Javadoc that I can use for my project?

Date2010-12-08 08:44
FromVictor.Lazzarini@nuim.ie
Subject[Csnd] Re: Re: Re: Re: _jcsound lib on Mac 10.5
AttachmentsNone  

Date2010-12-08 16:52
FromSteven Yi
Subject[Csnd] Re: Re: Re: Re: Re: _jcsound lib on Mac 10.5
I'm running into the same issue with blue and Csound.  I know at one
point I had managed to get this to load, but had to make Java use
32-bit mode by default.  You can do this in
Applications/Utilities/Java Preferences. However, I don't remember if
that worked, or if I had to force it by using -d32 on the commandline.

I know that supporting i386/x86_64 in a fat binary is a pain, but that
would be the ideal solution.  For myself, I'm working on getting
Csound compiling on OSX now for x86_64 so that it can just run by
default for 10.6.


On Wed, Dec 8, 2010 at 3:44 AM,   wrote:
> I think the 'wrong-architecture' means that your Java VM is x86_64 and csound jnilib is
> i386. Not sure about the solution now.
>
> Victor
>
> ----- Original Message -----
> From: 4g63gsx 
> Date: Wednesday, December 8, 2010 6:40 am
> Subject: [Csnd] Re: Re: Re: _jcsound lib on Mac 10.5
> To: csound@lists.bath.ac.uk
>
>>
>> I'm bringing this post back from the dead.
>>
>> I am having the same problem using the Java API. I am running
>> Mac OS X
>> 10.6.5 with a 64-bit processor. I am using Eclipse as a programming
>> environment. When I specify the location of the native library as
>> "/Library/Frameworks/CsoundLib64.framework/Versions/5.2/Resources/Java/" I
>> get the following error:
>>
>> _jcsound native code library failed to load.
>> java.lang.UnsatisfiedLinkError:
>> /Library/Frameworks/CsoundLib64.framework/Versions/5.2/Resources/Java/lib_jcsound.jnilib:
>> no suitable image found.  Did find:
>> /Library/Frameworks/CsoundLib64.framework/Versions/5.2/Resources/Java/lib_jcsound.jnilib:
>> mach-o, but wrong architecture
>>
>> I didn't know what architecture it was referring to, so I tried
>> linking it
>> the non-64-bit folder, and it gave me the same results.
>>
>> For your reference, here is the java code I am trying to run
>> (very simple so
>> far):
>> import csnd.*;
>>
>> public class eqrun {
>>       public static void main(String args[]) {
>>               Csound cs = new
>> Csound();             cs.Compile("pvsbus(mod).csd");
>>
>>               int result = 0;
>>               while(result ==
>> 0) {
>>                       result = cs.PerformKsmps();
>>               }
>>       }
>> }
>>
>> What does the error message mean? And how can I fix this
>> problem. Also in a
>> related question, is there a Javadoc that I can use for my project?
>> --
>> View this message in context:
>> http://csound.1045644.n5.nabble.com/jcsound-lib-on-Mac-10-5-
>> tp1120391p3296976.htmlSent from the Csound - General mailing
>> list archive at Nabble.com.
>>
>>
>> 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,
> National University of Ireland, Maynooth
>
>
>
> 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"


Date2010-12-08 17:36
FromVictor Lazzarini
Subject[Csnd] Re: Re: Re: Re: Re: Re: _jcsound lib on Mac 10.5
At the moment, I'm building Csound for i386 and PPC; I'll investigate  
how to build it for three architectures.

The major problem with x86_64 on OSX is portmidi. It is not re-entrant  
and I don't know whether it can be
made to be. With the old dylib loading code, the problem does not show  
up. But on x86_64, dyld is used,
and that does not allow portmidi to be re-loaded without crashes.

Victor


On 8 Dec 2010, at 16:52, Steven Yi wrote:

> I'm running into the same issue with blue and Csound.  I know at one
> point I had managed to get this to load, but had to make Java use
> 32-bit mode by default.  You can do this in
> Applications/Utilities/Java Preferences. However, I don't remember if
> that worked, or if I had to force it by using -d32 on the commandline.
>
> I know that supporting i386/x86_64 in a fat binary is a pain, but that
> would be the ideal solution.  For myself, I'm working on getting
> Csound compiling on OSX now for x86_64 so that it can just run by
> default for 10.6.
>
>
> On Wed, Dec 8, 2010 at 3:44 AM,   wrote:
>> I think the 'wrong-architecture' means that your Java VM is x86_64  
>> and csound jnilib is
>> i386. Not sure about the solution now.
>>
>> Victor
>>
>> ----- Original Message -----
>> From: 4g63gsx 
>> Date: Wednesday, December 8, 2010 6:40 am
>> Subject: [Csnd] Re: Re: Re: _jcsound lib on Mac 10.5
>> To: csound@lists.bath.ac.uk
>>
>>>
>>> I'm bringing this post back from the dead.
>>>
>>> I am having the same problem using the Java API. I am running
>>> Mac OS X
>>> 10.6.5 with a 64-bit processor. I am using Eclipse as a programming
>>> environment. When I specify the location of the native library as
>>> "/Library/Frameworks/CsoundLib64.framework/Versions/5.2/Resources/ 
>>> Java/" I
>>> get the following error:
>>>
>>> _jcsound native code library failed to load.
>>> java.lang.UnsatisfiedLinkError:
>>> /Library/Frameworks/CsoundLib64.framework/Versions/5.2/Resources/ 
>>> Java/lib_jcsound.jnilib:
>>> no suitable image found.  Did find:
>>> /Library/Frameworks/CsoundLib64.framework/Versions/5.2/Resources/ 
>>> Java/lib_jcsound.jnilib:
>>> mach-o, but wrong architecture
>>>
>>> I didn't know what architecture it was referring to, so I tried
>>> linking it
>>> the non-64-bit folder, and it gave me the same results.
>>>
>>> For your reference, here is the java code I am trying to run
>>> (very simple so
>>> far):
>>> import csnd.*;
>>>
>>> public class eqrun {
>>>       public static void main(String args[]) {
>>>               Csound cs = new
>>> Csound();             cs.Compile("pvsbus(mod).csd");
>>>
>>>               int result = 0;
>>>               while(result ==
>>> 0) {
>>>                       result = cs.PerformKsmps();
>>>               }
>>>       }
>>> }
>>>
>>> What does the error message mean? And how can I fix this
>>> problem. Also in a
>>> related question, is there a Javadoc that I can use for my project?
>>> --
>>> View this message in context:
>>> http://csound.1045644.n5.nabble.com/jcsound-lib-on-Mac-10-5-
>>> tp1120391p3296976.htmlSent from the Csound - General mailing
>>> list archive at Nabble.com.
>>>
>>>
>>> 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,
>> National University of Ireland, Maynooth
>>
>>
>>
>> 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"

Date2010-12-08 17:37
FromAndres Cabrera
Subject[Csnd] Re: Re: Re: Re: Re: Re: Re: _jcsound lib on Mac 10.5
Hi,

I've used rtmidi on QuteCsound, and it is simpler to use than
PortMIDI, and I thinks it's also reentrant, maybe that's worth looking
into?

Cheers,
Andres

On Wed, Dec 8, 2010 at 5:36 PM, Victor Lazzarini
 wrote:
> At the moment, I'm building Csound for i386 and PPC; I'll investigate how to
> build it for three architectures.
>
> The major problem with x86_64 on OSX is portmidi. It is not re-entrant and I
> don't know whether it can be
> made to be. With the old dylib loading code, the problem does not show up.
> But on x86_64, dyld is used,
> and that does not allow portmidi to be re-loaded without crashes.
>
> Victor
>
>
> On 8 Dec 2010, at 16:52, Steven Yi wrote:
>
>> I'm running into the same issue with blue and Csound.  I know at one
>> point I had managed to get this to load, but had to make Java use
>> 32-bit mode by default.  You can do this in
>> Applications/Utilities/Java Preferences. However, I don't remember if
>> that worked, or if I had to force it by using -d32 on the commandline.
>>
>> I know that supporting i386/x86_64 in a fat binary is a pain, but that
>> would be the ideal solution.  For myself, I'm working on getting
>> Csound compiling on OSX now for x86_64 so that it can just run by
>> default for 10.6.
>>
>>
>> On Wed, Dec 8, 2010 at 3:44 AM,   wrote:
>>>
>>> I think the 'wrong-architecture' means that your Java VM is x86_64 and
>>> csound jnilib is
>>> i386. Not sure about the solution now.
>>>
>>> Victor
>>>
>>> ----- Original Message -----
>>> From: 4g63gsx 
>>> Date: Wednesday, December 8, 2010 6:40 am
>>> Subject: [Csnd] Re: Re: Re: _jcsound lib on Mac 10.5
>>> To: csound@lists.bath.ac.uk
>>>
>>>>
>>>> I'm bringing this post back from the dead.
>>>>
>>>> I am having the same problem using the Java API. I am running
>>>> Mac OS X
>>>> 10.6.5 with a 64-bit processor. I am using Eclipse as a programming
>>>> environment. When I specify the location of the native library as
>>>> "/Library/Frameworks/CsoundLib64.framework/Versions/5.2/Resources/Java/"
>>>> I
>>>> get the following error:
>>>>
>>>> _jcsound native code library failed to load.
>>>> java.lang.UnsatisfiedLinkError:
>>>>
>>>> /Library/Frameworks/CsoundLib64.framework/Versions/5.2/Resources/Java/lib_jcsound.jnilib:
>>>> no suitable image found.  Did find:
>>>>
>>>> /Library/Frameworks/CsoundLib64.framework/Versions/5.2/Resources/Java/lib_jcsound.jnilib:
>>>> mach-o, but wrong architecture
>>>>
>>>> I didn't know what architecture it was referring to, so I tried
>>>> linking it
>>>> the non-64-bit folder, and it gave me the same results.
>>>>
>>>> For your reference, here is the java code I am trying to run
>>>> (very simple so
>>>> far):
>>>> import csnd.*;
>>>>
>>>> public class eqrun {
>>>>      public static void main(String args[]) {
>>>>              Csound cs = new
>>>> Csound();             cs.Compile("pvsbus(mod).csd");
>>>>
>>>>              int result = 0;
>>>>              while(result ==
>>>> 0) {
>>>>                      result = cs.PerformKsmps();
>>>>              }
>>>>      }
>>>> }
>>>>
>>>> What does the error message mean? And how can I fix this
>>>> problem. Also in a
>>>> related question, is there a Javadoc that I can use for my project?
>>>> --
>>>> View this message in context:
>>>> http://csound.1045644.n5.nabble.com/jcsound-lib-on-Mac-10-5-
>>>> tp1120391p3296976.htmlSent from the Csound - General mailing
>>>> list archive at Nabble.com.
>>>>
>>>>
>>>> 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,
>>> National University of Ireland, Maynooth
>>>
>>>
>>>
>>> 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"
>
>


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"


Date2010-12-08 17:43
FromVictor Lazzarini
Subject[Csnd] Re: Re: Re: Re: Re: Re: Re: Re: _jcsound lib on Mac 10.5
yes, definitely. Would you be able to write a new rtmidi module for  
Csound? Then we could just
ditch portmidi.

Victor

On 8 Dec 2010, at 17:37, Andres Cabrera wrote:

> Hi,
>
> I've used rtmidi on QuteCsound, and it is simpler to use than
> PortMIDI, and I thinks it's also reentrant, maybe that's worth looking
> into?
>
> Cheers,
> Andres
>
> On Wed, Dec 8, 2010 at 5:36 PM, Victor Lazzarini
>  wrote:
>> At the moment, I'm building Csound for i386 and PPC; I'll  
>> investigate how to
>> build it for three architectures.
>>
>> The major problem with x86_64 on OSX is portmidi. It is not re- 
>> entrant and I
>> don't know whether it can be
>> made to be. With the old dylib loading code, the problem does not  
>> show up.
>> But on x86_64, dyld is used,
>> and that does not allow portmidi to be re-loaded without crashes.
>>
>> Victor
>>
>>
>> On 8 Dec 2010, at 16:52, Steven Yi wrote:
>>
>>> I'm running into the same issue with blue and Csound.  I know at one
>>> point I had managed to get this to load, but had to make Java use
>>> 32-bit mode by default.  You can do this in
>>> Applications/Utilities/Java Preferences. However, I don't remember  
>>> if
>>> that worked, or if I had to force it by using -d32 on the  
>>> commandline.
>>>
>>> I know that supporting i386/x86_64 in a fat binary is a pain, but  
>>> that
>>> would be the ideal solution.  For myself, I'm working on getting
>>> Csound compiling on OSX now for x86_64 so that it can just run by
>>> default for 10.6.
>>>
>>>
>>> On Wed, Dec 8, 2010 at 3:44 AM,   wrote:
>>>>
>>>> I think the 'wrong-architecture' means that your Java VM is  
>>>> x86_64 and
>>>> csound jnilib is
>>>> i386. Not sure about the solution now.
>>>>
>>>> Victor
>>>>
>>>> ----- Original Message -----
>>>> From: 4g63gsx 
>>>> Date: Wednesday, December 8, 2010 6:40 am
>>>> Subject: [Csnd] Re: Re: Re: _jcsound lib on Mac 10.5
>>>> To: csound@lists.bath.ac.uk
>>>>
>>>>>
>>>>> I'm bringing this post back from the dead.
>>>>>
>>>>> I am having the same problem using the Java API. I am running
>>>>> Mac OS X
>>>>> 10.6.5 with a 64-bit processor. I am using Eclipse as a  
>>>>> programming
>>>>> environment. When I specify the location of the native library as
>>>>> "/Library/Frameworks/CsoundLib64.framework/Versions/5.2/ 
>>>>> Resources/Java/"
>>>>> I
>>>>> get the following error:
>>>>>
>>>>> _jcsound native code library failed to load.
>>>>> java.lang.UnsatisfiedLinkError:
>>>>>
>>>>> /Library/Frameworks/CsoundLib64.framework/Versions/5.2/Resources/ 
>>>>> Java/lib_jcsound.jnilib:
>>>>> no suitable image found.  Did find:
>>>>>
>>>>> /Library/Frameworks/CsoundLib64.framework/Versions/5.2/Resources/ 
>>>>> Java/lib_jcsound.jnilib:
>>>>> mach-o, but wrong architecture
>>>>>
>>>>> I didn't know what architecture it was referring to, so I tried
>>>>> linking it
>>>>> the non-64-bit folder, and it gave me the same results.
>>>>>
>>>>> For your reference, here is the java code I am trying to run
>>>>> (very simple so
>>>>> far):
>>>>> import csnd.*;
>>>>>
>>>>> public class eqrun {
>>>>>      public static void main(String args[]) {
>>>>>              Csound cs = new
>>>>> Csound();             cs.Compile("pvsbus(mod).csd");
>>>>>
>>>>>              int result = 0;
>>>>>              while(result ==
>>>>> 0) {
>>>>>                      result = cs.PerformKsmps();
>>>>>              }
>>>>>      }
>>>>> }
>>>>>
>>>>> What does the error message mean? And how can I fix this
>>>>> problem. Also in a
>>>>> related question, is there a Javadoc that I can use for my  
>>>>> project?
>>>>> --
>>>>> View this message in context:
>>>>> http://csound.1045644.n5.nabble.com/jcsound-lib-on-Mac-10-5-
>>>>> tp1120391p3296976.htmlSent from the Csound - General mailing
>>>>> list archive at Nabble.com.
>>>>>
>>>>>
>>>>> 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,
>>>> National University of Ireland, Maynooth
>>>>
>>>>
>>>>
>>>> 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"
>>
>>
>
>
> 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"

Date2010-12-08 17:47
FromAndres Cabrera
Subject[Csnd] Re: Re: Re: Re: Re: Re: Re: Re: Re: _jcsound lib on Mac 10.5
Hi,

I couldn't do it right now for lack of time...

Cheers,
Andres

On Wed, Dec 8, 2010 at 5:43 PM, Victor Lazzarini
 wrote:
> yes, definitely. Would you be able to write a new rtmidi module for Csound?
> Then we could just
> ditch portmidi.
>
> Victor
>
> On 8 Dec 2010, at 17:37, Andres Cabrera wrote:
>
>> Hi,
>>
>> I've used rtmidi on QuteCsound, and it is simpler to use than
>> PortMIDI, and I thinks it's also reentrant, maybe that's worth looking
>> into?
>>
>> Cheers,
>> Andres
>>
>> On Wed, Dec 8, 2010 at 5:36 PM, Victor Lazzarini
>>  wrote:
>>>
>>> At the moment, I'm building Csound for i386 and PPC; I'll investigate how
>>> to
>>> build it for three architectures.
>>>
>>> The major problem with x86_64 on OSX is portmidi. It is not re-entrant
>>> and I
>>> don't know whether it can be
>>> made to be. With the old dylib loading code, the problem does not show
>>> up.
>>> But on x86_64, dyld is used,
>>> and that does not allow portmidi to be re-loaded without crashes.
>>>
>>> Victor
>>>
>>>
>>> On 8 Dec 2010, at 16:52, Steven Yi wrote:
>>>
>>>> I'm running into the same issue with blue and Csound.  I know at one
>>>> point I had managed to get this to load, but had to make Java use
>>>> 32-bit mode by default.  You can do this in
>>>> Applications/Utilities/Java Preferences. However, I don't remember if
>>>> that worked, or if I had to force it by using -d32 on the commandline.
>>>>
>>>> I know that supporting i386/x86_64 in a fat binary is a pain, but that
>>>> would be the ideal solution.  For myself, I'm working on getting
>>>> Csound compiling on OSX now for x86_64 so that it can just run by
>>>> default for 10.6.
>>>>
>>>>
>>>> On Wed, Dec 8, 2010 at 3:44 AM,   wrote:
>>>>>
>>>>> I think the 'wrong-architecture' means that your Java VM is x86_64 and
>>>>> csound jnilib is
>>>>> i386. Not sure about the solution now.
>>>>>
>>>>> Victor
>>>>>
>>>>> ----- Original Message -----
>>>>> From: 4g63gsx 
>>>>> Date: Wednesday, December 8, 2010 6:40 am
>>>>> Subject: [Csnd] Re: Re: Re: _jcsound lib on Mac 10.5
>>>>> To: csound@lists.bath.ac.uk
>>>>>
>>>>>>
>>>>>> I'm bringing this post back from the dead.
>>>>>>
>>>>>> I am having the same problem using the Java API. I am running
>>>>>> Mac OS X
>>>>>> 10.6.5 with a 64-bit processor. I am using Eclipse as a programming
>>>>>> environment. When I specify the location of the native library as
>>>>>>
>>>>>> "/Library/Frameworks/CsoundLib64.framework/Versions/5.2/Resources/Java/"
>>>>>> I
>>>>>> get the following error:
>>>>>>
>>>>>> _jcsound native code library failed to load.
>>>>>> java.lang.UnsatisfiedLinkError:
>>>>>>
>>>>>>
>>>>>> /Library/Frameworks/CsoundLib64.framework/Versions/5.2/Resources/Java/lib_jcsound.jnilib:
>>>>>> no suitable image found.  Did find:
>>>>>>
>>>>>>
>>>>>> /Library/Frameworks/CsoundLib64.framework/Versions/5.2/Resources/Java/lib_jcsound.jnilib:
>>>>>> mach-o, but wrong architecture
>>>>>>
>>>>>> I didn't know what architecture it was referring to, so I tried
>>>>>> linking it
>>>>>> the non-64-bit folder, and it gave me the same results.
>>>>>>
>>>>>> For your reference, here is the java code I am trying to run
>>>>>> (very simple so
>>>>>> far):
>>>>>> import csnd.*;
>>>>>>
>>>>>> public class eqrun {
>>>>>>     public static void main(String args[]) {
>>>>>>             Csound cs = new
>>>>>> Csound();             cs.Compile("pvsbus(mod).csd");
>>>>>>
>>>>>>             int result = 0;
>>>>>>             while(result ==
>>>>>> 0) {
>>>>>>                     result = cs.PerformKsmps();
>>>>>>             }
>>>>>>     }
>>>>>> }
>>>>>>
>>>>>> What does the error message mean? And how can I fix this
>>>>>> problem. Also in a
>>>>>> related question, is there a Javadoc that I can use for my project?
>>>>>> --
>>>>>> View this message in context:
>>>>>> http://csound.1045644.n5.nabble.com/jcsound-lib-on-Mac-10-5-
>>>>>> tp1120391p3296976.htmlSent from the Csound - General mailing
>>>>>> list archive at Nabble.com.
>>>>>>
>>>>>>
>>>>>> 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,
>>>>> National University of Ireland, Maynooth
>>>>>
>>>>>
>>>>>
>>>>> 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"
>>>
>>>
>>
>>
>> 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"


Date2010-12-08 19:23
FromVictor Lazzarini
Subject[Csnd] Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: _jcsound lib on Mac 10.5
Well, when you have time...
Otherwise, I'll have a go.

Victor
On 8 Dec 2010, at 17:47, Andres Cabrera wrote:

> Hi,
>
> I couldn't do it right now for lack of time...
>
> Cheers,
> Andres
>
> On Wed, Dec 8, 2010 at 5:43 PM, Victor Lazzarini
>  wrote:
>> yes, definitely. Would you be able to write a new rtmidi module for  
>> Csound?
>> Then we could just
>> ditch portmidi.
>>
>> Victor
>>
>> On 8 Dec 2010, at 17:37, Andres Cabrera wrote:
>>
>>> Hi,
>>>
>>> I've used rtmidi on QuteCsound, and it is simpler to use than
>>> PortMIDI, and I thinks it's also reentrant, maybe that's worth  
>>> looking
>>> into?
>>>
>>> Cheers,
>>> Andres
>>>
>>> On Wed, Dec 8, 2010 at 5:36 PM, Victor Lazzarini
>>>  wrote:
>>>>
>>>> At the moment, I'm building Csound for i386 and PPC; I'll  
>>>> investigate how
>>>> to
>>>> build it for three architectures.
>>>>
>>>> The major problem with x86_64 on OSX is portmidi. It is not re- 
>>>> entrant
>>>> and I
>>>> don't know whether it can be
>>>> made to be. With the old dylib loading code, the problem does not  
>>>> show
>>>> up.
>>>> But on x86_64, dyld is used,
>>>> and that does not allow portmidi to be re-loaded without crashes.
>>>>
>>>> Victor
>>>>
>>>>
>>>> On 8 Dec 2010, at 16:52, Steven Yi wrote:
>>>>
>>>>> I'm running into the same issue with blue and Csound.  I know at  
>>>>> one
>>>>> point I had managed to get this to load, but had to make Java use
>>>>> 32-bit mode by default.  You can do this in
>>>>> Applications/Utilities/Java Preferences. However, I don't  
>>>>> remember if
>>>>> that worked, or if I had to force it by using -d32 on the  
>>>>> commandline.
>>>>>
>>>>> I know that supporting i386/x86_64 in a fat binary is a pain,  
>>>>> but that
>>>>> would be the ideal solution.  For myself, I'm working on getting
>>>>> Csound compiling on OSX now for x86_64 so that it can just run by
>>>>> default for 10.6.
>>>>>
>>>>>
>>>>> On Wed, Dec 8, 2010 at 3:44 AM,   wrote:
>>>>>>
>>>>>> I think the 'wrong-architecture' means that your Java VM is  
>>>>>> x86_64 and
>>>>>> csound jnilib is
>>>>>> i386. Not sure about the solution now.
>>>>>>
>>>>>> Victor
>>>>>>
>>>>>> ----- Original Message -----
>>>>>> From: 4g63gsx 
>>>>>> Date: Wednesday, December 8, 2010 6:40 am
>>>>>> Subject: [Csnd] Re: Re: Re: _jcsound lib on Mac 10.5
>>>>>> To: csound@lists.bath.ac.uk
>>>>>>
>>>>>>>
>>>>>>> I'm bringing this post back from the dead.
>>>>>>>
>>>>>>> I am having the same problem using the Java API. I am running
>>>>>>> Mac OS X
>>>>>>> 10.6.5 with a 64-bit processor. I am using Eclipse as a  
>>>>>>> programming
>>>>>>> environment. When I specify the location of the native library  
>>>>>>> as
>>>>>>>
>>>>>>> "/Library/Frameworks/CsoundLib64.framework/Versions/5.2/ 
>>>>>>> Resources/Java/"
>>>>>>> I
>>>>>>> get the following error:
>>>>>>>
>>>>>>> _jcsound native code library failed to load.
>>>>>>> java.lang.UnsatisfiedLinkError:
>>>>>>>
>>>>>>>
>>>>>>> /Library/Frameworks/CsoundLib64.framework/Versions/5.2/ 
>>>>>>> Resources/Java/lib_jcsound.jnilib:
>>>>>>> no suitable image found.  Did find:
>>>>>>>
>>>>>>>
>>>>>>> /Library/Frameworks/CsoundLib64.framework/Versions/5.2/ 
>>>>>>> Resources/Java/lib_jcsound.jnilib:
>>>>>>> mach-o, but wrong architecture
>>>>>>>
>>>>>>> I didn't know what architecture it was referring to, so I tried
>>>>>>> linking it
>>>>>>> the non-64-bit folder, and it gave me the same results.
>>>>>>>
>>>>>>> For your reference, here is the java code I am trying to run
>>>>>>> (very simple so
>>>>>>> far):
>>>>>>> import csnd.*;
>>>>>>>
>>>>>>> public class eqrun {
>>>>>>>     public static void main(String args[]) {
>>>>>>>             Csound cs = new
>>>>>>> Csound();             cs.Compile("pvsbus(mod).csd");
>>>>>>>
>>>>>>>             int result = 0;
>>>>>>>             while(result ==
>>>>>>> 0) {
>>>>>>>                     result = cs.PerformKsmps();
>>>>>>>             }
>>>>>>>     }
>>>>>>> }
>>>>>>>
>>>>>>> What does the error message mean? And how can I fix this
>>>>>>> problem. Also in a
>>>>>>> related question, is there a Javadoc that I can use for my  
>>>>>>> project?
>>>>>>> --
>>>>>>> View this message in context:
>>>>>>> http://csound.1045644.n5.nabble.com/jcsound-lib-on-Mac-10-5-
>>>>>>> tp1120391p3296976.htmlSent from the Csound - General mailing
>>>>>>> list archive at Nabble.com.
>>>>>>>
>>>>>>>
>>>>>>> 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,
>>>>>> National University of Ireland, Maynooth
>>>>>>
>>>>>>
>>>>>>
>>>>>> 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"
>>>>
>>>>
>>>
>>>
>>> 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"
>



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"

Date2010-12-13 04:13
From4g63gsx
Subject[Csnd] Re: Re: Re: Re: Re: _jcsound lib on Mac 10.5
I tried to change the Java preferences and the -d32 option but I couldn't get
it to work either way. Do you have any other ideas that could work?

Date2010-12-13 04:16
From4g63gsx
Subject[Csnd] Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: _jcsound lib on Mac 10.5
So, just to clarify, for the time being there is no way to wrap Csound with
Java for a x86_64 Mac? And this is true as well for C++? I've looked into
SWIG but was a little confused as to how to use it. However, assuming I can
figure that out, would it be possible to get Csound working with Java on the
64-bit architecture? I guess, worst case scenario I can try to find a PC to
use. Thanks.

Date2010-12-13 07:33
FromVictor Lazzarini
Subject[Csnd] Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: _jcsound lib on Mac 10.5
No, with g++ you just need to use -arch i386 and it should be OK.

Victor
On 13 Dec 2010, at 04:16, 4g63gsx wrote:

>
> So, just to clarify, for the time being there is no way to wrap  
> Csound with
> Java for a x86_64 Mac? And this is true as well for C++? I've looked  
> into
> SWIG but was a little confused as to how to use it. However,  
> assuming I can
> figure that out, would it be possible to get Csound working with  
> Java on the
> 64-bit architecture? I guess, worst case scenario I can try to find  
> a PC to
> use. Thanks.
> -- 
> View this message in context: http://csound.1045644.n5.nabble.com/jcsound-lib-on-Mac-10-5-tp1120391p3302672.html
> Sent from the Csound - General mailing list archive at Nabble.com.
>
>
> 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"