| Check to see if you have lib_jcsound.so or _jcsound.so. If not you need to run Scons to build the Java interface, and the directory containing lib_jcsound.so needs to be in LD_LIBRARY_PATH or in your Java command line with -Djava.library.path=jcsounddirectory.
Or, you may need to symbolically link whatever version of _jcsound.so you do have to the name expected by the JNI loader. In other words, if you find lib_jcsound.so you may need to create a link to just _jcsound.so, if you find _jcsound.so you may need to create a link to lib_jcsound.so.
Regards,
Mike
-----Original Message-----
>From: Carsten Hoyer
>Sent: Apr 12, 2007 3:56 AM
>To: csound-devel@lists.sourceforge.net
>Subject: Re: [Cs-dev] csound-java Ubuntu
>
>
>Compiling Csound with java is causing me some troubles.
>I am using the csound5.05 source file.
>
>it keeps saying: _jcsound native code library failed to load.
>java.lang.UnsatisfiedLinkError: /usr/lib/lib_jcsound.so: libcsound.so.5.1:
>cannot open shared object file: No such file or directory
>
>In my unpacked source folder there is a broken link called libcsound.so - am
>i missing libcsound.so.5.1?
>
>Thanks again
>Carsten
>
>Below i am posting my scons -h output (notice the csound.h warnings):
>root@carsten-laptop:/home/carsten/Desktop/Csound5.05.0# scons -h
>scons: Reading SConscript files ...
>
>C S O U N D 5
>
>SCons build file for Csound 5:
>API library, plugin opcodes, utilities, and front ends.
>
>By Michael Gogins
>
>For custom options, run 'scons -h'.
>For default options, run 'scons -H'.
>If headers or libraries are not found, edit 'custom.py'.
>For Linux, run in the standard shell
> with standard Python and just run 'scons'.
>For MinGW, run in the MSys shell
> and use www.python.org WIN32 Python to run scons.
>
>System platform is 'linux'.
>Using options from 'custom.py.'
>Build platform is 'linux'.
>SCons tools on this platform: ['default', 'gnulink', 'gcc', 'g++', 'f95',
>'gas', 'ar', 'dvipdf', 'dvips', 'gs', 'jar', 'javac', 'javah', 'latex',
>'lex', 'm4', 'pdflatex', 'pdftex', 'rmic', 'rpcgen', 'swig', 'tar', 'tex',
>'yacc', 'zip']
>CONFIGURATION DECISION: Using single-precision floating point for audio
>samples.
>Checking for C header file stdio.h... (cached) yes
>Checking for C header file sndfile.h... (cached) yes
>Checking for C header file portaudio.h... (cached) no
>Checking for C header file portmidi.h... (cached) no
>Checking for C++ header file FL/Fl.H... (cached) yes
>Checking for C++ header file FL/Fl_Spinner.H... (cached) yes
>Checking for C++ header file boost/any.hpp... (cached) yes
>Checking for C header file alsa/asoundlib.h... (cached) yes
>Checking for C header file jack/jack.h... (cached) yes
>Checking for C header file lo/lo.h... (cached) yes
>Checking for C++ header file Opcodes/stk/include/Stk.h... (cached) no
>Checking for C header file m_pd.h... (cached) yes
>Checking for C header file tcl.h... (cached) no
>Checking for C header file /usr/include/tcl8.4/tcl.h... (cached) no
>Checking for C header file /usr/include/tk8.4/tcl.h... (cached) no
>Checking for C header file lua.h... (cached) yes
>Checking for SWIG... yes
>Checking for C header file Python.h... (cached) no
>Checking for C header file /usr/include/python2.5/Python.h... (cached) yes
>Checking for C++ header file jni.h... (cached) yes
>Checking for C header file io.h... (cached) no
>Checking for C header file fcntl.h... (cached) yes
>Checking for C header file unistd.h... (cached) yes
>Checking for C header file stdint.h... (cached) yes
>Checking for C header file sys/time.h... (cached) yes
>Checking for C header file sys/types.h... (cached) yes
>Checking for C header file termios.h... (cached) yes
>Checking for C header file sys/socket.h... (cached) yes
>Checking for C header file dirent.h... (cached) yes
>Checking for libsndfile version 1.0.16 or later... (cached) yes
>CONFIGURATION DECISION: Not building with new parser
>CONFIGURATION DECISION: Building dynamic Csound library
>Parsed fltk-config.
>CONFIGURATION DECISION: Building Csound interfaces library.
>Python Version2.5
>CONFIGURATION DECISION: Building Java wrappers for Csound interfaces
>library.
>LangSubDir: java
>Search paths:
> ./
> ./
> ./H/
> /usr/lib/jvm/java-1.5.0-sun-1.5.0.11/include/
> /usr/lib/jvm/java-1.5.0-sun-1.5.0.11/include/linux/
> /usr/local/include/
> /usr/include/
> /usr/X11R6/include/
> interfaces/
> ./swig_lib/java/
> /usr/share/swig1.3/java/
> ./swig_lib/
> /usr/share/swig1.3/
>Preprocessing...
>Starting language-specific parse...
>Processing types...
>C++ analysis...
>Generating wrappers...
>./H/csound.h:243: Warning(451): Setting a const char * variable may leak
>memory.
>interfaces/cs_glue.hpp:507: Warning(473): Returning a pointer or reference
>in a director method is not recommended.
>interfaces/CppSound.hpp:80: Warning(813): Warning for CppSound proxy: Base
>CsoundFile ignored. Multiple inheritance is not supported in Java.
>CONFIGURATION DECISION: Building Csound Lua interface library.
>CONFIGURATION DECISION: Not generating PDF documentation.
>CONFIGURATION DECISION: Not building Virtual Keyboard plugin. (FLTK 1.1.7+
>required)
>CONFIGURATION DECISION: Not building CoreAudio plugin.
>CONFIGURATION DECISION: Building ALSA plugin.
>CONFIGURATION DECISION: Not building PortAudio module.
>CONFIGURATION DECISION: Building JACK plugin.
>CONFIGURATION DECISION: Not building with PortMIDI.
>CONFIGURATION DECISION: Not building OSC plugin.
>CONFIGURATION DECISION: Building UDP plugins.
>Checking for C header file fluidsynth.h... (cached) no
>CONFIGURATION DECISION: Not building fluid opcodes.
>Checking for C header file Opcodes/Loris/src/loris.h... (cached) no
>CONFIGURATION DECISION: Not building Loris Python extension and Csound
>opcodes.
>CONFIGURATION DECISION: Not building STK opcodes.
>CONFIGURATION DECISION: Not building Python opcodes.
>CONFIGURATION DECISION: Not building FLTK CSOUND5GUI frontend.
>CONFIGURATION DECISION: Not building CsoundVST plugin and standalone.
>CONFIGURATION DECISION: Not building Csound Text Editor.
>CONFIGURATION DECISION: Not building Tclcsound
>CONFIGURATION DECISION: Not building Winsound
>CONFIGURATION DECISION: Not building OSX GUI frontend
>CONFIGURATION DECISION: Building DSSI plugin host opcodes.
>CONFIGURATION DECISION: Not calling TAGS
>CONFIGURATION DECISION: Calling makedb
>CONFIGURATION DECISION: Not compiling zip file for release.
>scons: done reading SConscript files.
>
>CC:
> default: None
> actual: gcc
>
>CXX:
> default: None
> actual: g++
>
>LINK:
> default: None
> actual: gcc
>
>LINKFLAGS:
> default: None
> actual:
>
>useDouble: Set to 1 to use double-precision floating point for audio
>samples.
> default: 0
> actual: 0
>
>usePortAudio: Set to 1 to use PortAudio for real-time audio input and
>output.
> default: 1
> actual: 1
>
>usePortMIDI: Build PortMidi plugin for real time MIDI input and output.
> default: 1
> actual: 1
>
>useALSA: Set to 1 to use ALSA for real-time audio and MIDI input and output.
> default: 1
> actual: 1
>
>useJack: Set to 1 if you compiled PortAudio to use Jack; also builds Jack
>plugin.
> default: 1
> actual: 1
>
>useFLTK: Set to 1 to use FLTK for graphs and widget opcodes.
> default: 1
> actual: 1
>
>noFLTKThreads: Set to 1 to disable use of a separate thread for FLTK
>widgets.
> default: 1
> actual: 1
>
>pythonVersion: Set to the Python version to be used.
> default: 2.5
> actual: 2.5
>
>buildCsoundVST: Set to 1 to build CsoundVST (needs FLTK, boost, Python,
>SWIG).
> default: 0
> actual: 0
>
>buildCsound5GUI: Build FLTK GUI frontend (requires FLTK 1.1.7 or later).
> default: 0
> actual: 0
>
>generateTags: Set to 1 to generate TAGS
> default: 0
> actual: 0
>
>generatePdf: Set to 1 to generate PDF documentation
> default: 0
> actual: 0
>
>generateXmg: Set to 1 to generate string database
> default: 1
> actual: 1
>
>generateZip: Set to 1 to generate zip archive
> default: 0
> actual: 0
>
>buildLoris: Set to 1 to build the Loris Python extension and opcodes
> default: 1
> actual: 1
>
>useOSC: Set to 1 if you want OSC support
> default: 0
> actual: 0
>
>useUDP: Set to 0 if you do not want UDP support
> default: 1
> actual: 1
>
>buildPythonOpcodes: Set to 1 to build Python opcodes
> default: 0
> actual: 0
>
>prefix: Base directory for installs. Defaults to /usr/local.
> default: /usr/local
> actual: /usr/local
>
>buildRelease: Set to 1 to build for release (implies noDebug).
> default: 0
> actual: 0
>
>noDebug: Build without debugging information.
> default: 0
> actual: 0
>
>gcc3opt: Enable gcc 3.3.x or later optimizations for the specified CPU
>architecture (e.g. pentium3); implies noDebug.
> default: 0
> actual: 0
>
>gcc4opt: Enable gcc 4.0 or later optimizations for the specified CPU
>architecture (e.g. pentium3); implies noDebug.
> default: 0
> actual: 0
>
>useLrint: Use lrint() and lrintf() for converting floating point values to
>integers.
> default: 0
> actual: 0
>
>useGprof: Build with profiling information (-pg).
> default: 0
> actual: 0
>
>Word64: Build for 64bit computer
> default: 0
> actual: 0
>
>dynamicCsoundLibrary: Build dynamic Csound library instead of libcsound.a
> default: 1
> actual: 1
>
>buildStkOpcodes: Build opcodes encapsulating Perry Cook's Synthesis Toolkit
>in C++ instruments and effects
> default: 0
> actual: 0
>
>install: Enables the Install targets
> default: 1
> actual: 1
>
>buildPDClass: build csoundapi~ PD class (needs m_pd.h in the standard
>places)
> default: 0
> actual: 0
>
>useCoreAudio: Set to 1 to use CoreAudio for real-time audio input and
>output.
> default: 1
> actual: 1
>
>useAltivec: On OSX use the gcc AltiVec optmisation flags
> default: 0
> actual: 0
>
>buildDSSI: Build DSSI/LADSPA host opcodes
> default: 1
> actual: 1
>
>buildUtilities: Build stand-alone executables for utilities that can also be
>used with -U
> default: 1
> actual: 1
>
>buildTclcsound: Build Tclcsound frontend (cstclsh, cswish and tclcsound
>dynamic module). Requires Tcl/Tk headers and libs
> default: 0
> actual: 0
>
>buildWinsound: Build Winsound frontend. Requires FLTK headers and libs
> default: 0
> actual: 0
>
>buildVirtual: Build Virtual MIDI keyboard. Requires FLTK 1.1.7 headers and
>libs
> default: 0
> actual: 0
>
>buildInterfaces: Build interface library for Python, JAVA, Lua, C++, and
>other languages.
> default: 1
> actual: 1
>
>buildJavaWrapper: Set to 1 to build Java wrapper for the interface library.
> default: 1
> actual: 1
>
>buildOSXGUI: On OSX, set to 1 to build the basic GUI frontend
> default: 1
> actual: 1
>
>buildCSEditor: Set to 1 to build the Csound syntax highlighting text editor.
>Requires FLTK headers and libs
> default: 0
> actual: 0
>
>withMSVC: On Windows, set to 1 to build with Microsoft Visual C++, or set to
>0 to build with MinGW
> default: 0
> actual: 0
>
>buildNewParser: Enable building new parser (requires Flex/Bison)
> default: 0
> actual: 0
>
>Use scons -H for help about command-line options.
>r
>--
>View this message in context: http://www.nabble.com/csound-java-Ubuntu-tf3433327.html#a9954754
>Sent from the Csound - Dev mailing list archive at Nabble.com.
>
>
>-------------------------------------------------------------------------
>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 |