Csound Csound-dev Csound-tekno Search About

Re: [Cs-dev] csound-java Ubuntu

Date2007-04-12 14:56
FromMichael Gogins
SubjectRe: [Cs-dev] csound-java Ubuntu
export OPCODEDIR=$OPCODEDIR/usr/local/lib/csound/plugins
export CSSTRINGS=$CSSTRNGS/usr/local/share/csound/xmg
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH/usr/local/lib

should be

export OPCODEDIR=/usr/local/lib/csound/plugins
export CSSTRINGS=/usr/local/share/csound/xmg
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib

Note the colon (:) in the LD_LIBRARY_PATH setting.

Regards,
Mike

>
>
>-------------------------------------------------------------------------
>Take Surveys. Earn Cash. Influence the Future of IT
>Join SourceForge.net's Techsay panel and you'll get the chance to share your
>opinions on IT & business topics through brief surveys-and earn cash
>http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>_______________________________________________
>Csound-devel mailing list
>Csound-devel@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/csound-devel




-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2007-04-12 16:17
FromCarsten Høyer
SubjectRe: [Cs-dev] csound-java Ubuntu
No luck yet. but thats it for today. sigh
I changed the lines in .bashrc to

export OPCODEDIR=/usr/local/lib/csound/plugins
export CSSTRINGS=/usr/local/share/csound/xmg
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib

I had lib_jcsound.so, so i created a symlink from _jcsound.so to lib_jcsound.so - no problem there.

I then tried compiling and running the program from netbeans. Getting this error (close to the one i had earlier):

_jcsound native code library failed to load.
java.lang.UnsatisfiedLinkError: no _jcsound in java.library.path

I then tried adding -Djava.library.path=/usr/local/lib which made no difference.

Then i tried running the program from the terminal (without the -D flag).
The GUI turned, but as soon as i used the startbutton it shut down. in the terminal i had this message: 

*Csound tidy up: Segmentation fault*

When running from terminal with the -D flag, the program would should down right away, giving me the same message.

Is lib_jcsound.so corrupted?

Thanks again
Carsten

PS: just to show that the environment variables are in order:
root@carsten-laptop:/home/carsten/netbeans/SliderDemo/dist# echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/games
root@carsten-laptop:/home/carsten/netbeans/SliderDemo/dist# echo $LD_LIBRARY_PATH
:/usr/local/lib
root@carsten-laptop:/home/carsten/netbeans/SliderDemo/dist# echo $OPCODEDIR
/usr/local/lib/csound/plugins
root@carsten-laptop:/home/carsten/netbeans/SliderDemo/dist# 




-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net