[Cs-dev] troubles with lib_jcsound.so
Date | 2010-04-16 12:13 |
From | Carsten =?ISO-8859-1?Q?H=F8yer?= |
Subject | [Cs-dev] troubles with lib_jcsound.so |
Hi I am trying to use csound with java. Unfortunately this is giving me some headaches. I will try and describe what I have done, and where the problems are. First of all, I'm using Netbeans 6.8 in Ubuntu Lucid Beta $ uname -a Linux carsten-desktop 2.6.32-19-generic-pae #28-Ubuntu SMP Wed Mar 31 18:57:46 UTC 2010 i686 GNU/Linux I have created a new java application project in NetBeans (JavaApplication4) with a dummy code like this: ---------------------------------- package javaapplication4; import csnd.*; public class Main { private static Csound csound; public static void main(String[] args) { csound = new Csound(); } } --------------------------------- I have also added /usr/share/java/csnd-5.10.1~dfsg1.jar to the compile-time libraries. Under VM options i have added: -Djava.library.path=/usr/lib/jni:/usr/lib The program compiles but will not run. Running gives me this error: /usr/lib/jvm/java-6-sun/bin/java: symbol lookup error: /usr/lib/jni/lib_jcsound.so: undefined symbol: csoundCreate Java Result: 127 I tried a few debug things. ldd -d -r -name "lib_jcsound.so" will list all csound functions (I think) Here is another very useful information: /usr/lib/jni$ readelf -d lib_jcsound.so Dynamic section at offset 0x5be30 contains 27 entries: Tag Type Name/Value 0x00000001 (NEEDED) Shared library: [libstdc++.so.6] 0x00000001 (NEEDED) Shared library: [libsndfile.so.1] 0x00000001 (NEEDED) Shared library: [libcsound64.so.5.2] 0x00000001 (NEEDED) Shared library: [libpthread.so.0] 0x00000001 (NEEDED) Shared library: [libgcc_s.so.1] 0x00000001 (NEEDED) Shared library: [libc.so.6] 0x0000000e (SONAME) Library soname: [libcsound64.so.5.2] I read somewhere that libcsound64 and java would cause troubles. Is that true? My problem could be related to this bug (fixed): https://sourceforge.net/tracker/?func=detail&atid=564599&aid=2948447&group_id=81968 Hope you can help me And decipher my lengthy post Thanks Carsten ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2010-04-16 13:18 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] troubles with lib_jcsound.so |
Can you try updating your csound installation to 5.12, which Felipe has just packaged? He has indicated that Csound 5.12 is in Debian unstable repository, maybe you can get it for Ubuntu? On 16 Apr 2010, at 12:13, Carsten Høyer wrote: > Hi > I am trying to use csound with java. Unfortunately this is giving me > some headaches. I will try and describe what I have done, and where > the > problems are. > > First of all, I'm using Netbeans 6.8 in Ubuntu Lucid Beta > > $ uname -a > Linux carsten-desktop 2.6.32-19-generic-pae #28-Ubuntu SMP Wed Mar 31 > 18:57:46 UTC 2010 i686 GNU/Linux > > I have created a new java application project in NetBeans > (JavaApplication4) with a dummy code like this: > > ---------------------------------- > package javaapplication4; > > import csnd.*; > > public class Main { > private static Csound csound; > > public static void main(String[] args) { > csound = new Csound(); > } > } > --------------------------------- > > I have also added /usr/share/java/csnd-5.10.1~dfsg1.jar to the > compile-time libraries. > > Under VM options i have added: -Djava.library.path=/usr/lib/jni:/usr/ > lib > > The program compiles but will not run. Running gives me this error: > /usr/lib/jvm/java-6-sun/bin/java: symbol lookup > error: /usr/lib/jni/lib_jcsound.so: undefined symbol: csoundCreate > Java Result: 127 > > I tried a few debug things. ldd -d -r -name "lib_jcsound.so" will list > all csound functions (I think) > > Here is another very useful information: > > /usr/lib/jni$ readelf -d lib_jcsound.so > > Dynamic section at offset 0x5be30 contains 27 entries: > Tag Type Name/Value > 0x00000001 (NEEDED) Shared library: [libstdc++.so.6] > 0x00000001 (NEEDED) Shared library: [libsndfile.so.1] > 0x00000001 (NEEDED) Shared library: [libcsound64.so.5.2] > 0x00000001 (NEEDED) Shared library: [libpthread.so.0] > 0x00000001 (NEEDED) Shared library: [libgcc_s.so.1] > 0x00000001 (NEEDED) Shared library: [libc.so.6] > 0x0000000e (SONAME) Library soname: [libcsound64.so.5.2] > > I read somewhere that libcsound64 and java would cause troubles. Is > that > true? > > > My problem could be related to this bug (fixed): > https://sourceforge.net/tracker/?func=detail&atid=564599&aid=2948447&group_id=81968 > > Hope you can help me > And decipher my lengthy post > > Thanks > Carsten > > > > > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Csound-devel mailing list > Csound-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/csound-devel ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2010-04-16 16:43 |
From | Felipe Sateler |
Subject | Re: [Cs-dev] troubles with lib_jcsound.so |
2010/4/16 Carsten Høyer |
Date | 2010-04-16 17:07 |
From | Carsten =?ISO-8859-1?Q?H=F8yer?= |
Subject | Re: [Cs-dev] troubles with lib_jcsound.so |
OK. I'm trying to install from debian.org. libcsound64-5.2.deb complains about a non-satisfied dependency: python2.5 (>= 2.5) I have: $ python --version Python 2.6.5 I'm a little reluctant when it comes to compiling csound. As I remember it, it is not the most trivial task - and on top of that I need to compile it with java wrapper. I'm just sure it will take a long time. I'd rather go with .debs So. Any idea on the above problem? Thanks again fre, 16 04 2010 kl. 11:43 -0400, skrev Felipe Sateler: > 2010/4/16 Carsten Høyer |
Date | 2010-04-16 17:13 |
From | Carsten =?ISO-8859-1?Q?H=F8yer?= |
Subject | Re: [Cs-dev] troubles with lib_jcsound.so |
Please disregard. Im installing python 2.5 and 2.6 side by sidë́ fre, 16 04 2010 kl. 18:07 +0200, skrev Carsten Høyer: > OK. I'm trying to install from debian.org. libcsound64-5.2.deb complains > about a non-satisfied dependency: python2.5 (>= 2.5) > > I have: > $ python --version > Python 2.6.5 > > I'm a little reluctant when it comes to compiling csound. As I remember > it, it is not the most trivial task - and on top of that I need to > compile it with java wrapper. I'm just sure it will take a long time. > I'd rather go with .debs > > So. Any idea on the above problem? > > Thanks again > > > fre, 16 04 2010 kl. 11:43 -0400, skrev Felipe Sateler: > > 2010/4/16 Carsten Høyer |
Date | 2010-04-16 17:23 |
From | Carsten =?ISO-8859-1?Q?H=F8yer?= |
Subject | Re: [Cs-dev] troubles with lib_jcsound.so |
I have now installed Csound 5.12 $ csound --version virtual_keyboard real time MIDI plugin for Csound PortAudio real-time audio module for Csound PortMIDI real time MIDI plugin for Csound 0dBFS level = 32768.0 Csound version 5.12 (double samples) Apr 14 2010 libsndfile-1.0.21 unknown long option: '--version' Problem persists. No changes what so ever, even the SONAME is still there. Must be something wrong with my setup somehow. I will keep debugging, any suggestions are welcome. Carsten fre, 16 04 2010 kl. 18:13 +0200, skrev Carsten Høyer: > Please disregard. Im installing python 2.5 and 2.6 side by sidë́ > > > > fre, 16 04 2010 kl. 18:07 +0200, skrev Carsten Høyer: > > OK. I'm trying to install from debian.org. libcsound64-5.2.deb complains > > about a non-satisfied dependency: python2.5 (>= 2.5) > > > > I have: > > $ python --version > > Python 2.6.5 > > > > I'm a little reluctant when it comes to compiling csound. As I remember > > it, it is not the most trivial task - and on top of that I need to > > compile it with java wrapper. I'm just sure it will take a long time. > > I'd rather go with .debs > > > > So. Any idea on the above problem? > > > > Thanks again > > > > > > fre, 16 04 2010 kl. 11:43 -0400, skrev Felipe Sateler: > > > 2010/4/16 Carsten Høyer |
Date | 2010-04-16 17:26 |
From | Felipe Sateler |
Subject | Re: [Cs-dev] troubles with lib_jcsound.so |
2010/4/16 Carsten Høyer |
Date | 2010-04-16 17:33 |
From | Carsten =?ISO-8859-1?Q?H=F8yer?= |
Subject | Re: [Cs-dev] troubles with lib_jcsound.so |
Bingo! Thanks for your help Carsten > Did you install libcsnd-java? ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2010-04-16 17:53 |
From | Michael Gogins |
Subject | Re: [Cs-dev] troubles with lib_jcsound.so |
You need to install Python 2.5 and run against that. Regards, Mike 2010/4/16 Carsten Høyer |
Date | 2010-04-16 18:04 |
From | Carsten =?ISO-8859-1?Q?H=F8yer?= |
Subject | Re: [Cs-dev] troubles with lib_jcsound.so |
Yep. I got it. Thanks fre, 16 04 2010 kl. 12:53 -0400, skrev Michael Gogins: > You need to install Python 2.5 and run against that. > > Regards, > Mike ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |