[Csnd] building for blue w api fails : cannot find -lcsnd
| Date | 2009-12-22 18:44 |
| From | Atte André Jensen |
| Subject | [Csnd] building for blue w api fails : cannot find -lcsnd |
Hi
I'm trying to build csound 5.11.1 for use with blue2 with the csound
API. I call scons like this:
scons \
useDouble=1 \
buildJavaWrapper=1 \
buildInterfaces=1 \
buildVirtual=1 \
noDebug=0 \
dynamicCsoundLibrary=1 \
useOSC=1 \
useFLTK=1
And I have added the last two lines of the following to custom.py:
if sys.platform[:5] == 'linux':
platform = 'linux'
customCPPPATH.append('/usr/include/fltk-1.1')
customLIBPATH.append('/usr/lib/fltk-1.1')
customCPPPATH.append('/usr/lib/jvm/java-6-sun/include')
customCPPPATH.append('/usr/lib/jvm/java-6-sun/include/linux')
Here's the last error from scons:
g++ -o lib_jcsound.so -Wl,-Bdynamic -Wl,-rpath-link,interfaces -shared
interfaces/java_interface_wrap.os -L. -L. -L/usr/local/lib -L. -L.
-L/usr/lib/fltk-1.1 -lcsnd -lstdc++ -lutil libcsound64.so.5.2 -lsndfile
-lsndfile -lpthread -lpthread -lm -lportaudio -lfltk -lasound -llo
-lsndfile -ldl -lm -lpthread
/usr/bin/ld: cannot find -lcsnd
collect2: ld returned 1 exit status
scons: *** [lib_jcsound.so] Error 1
scons: building terminated because of errors.
Hmmm, "cannot find -lcsnd", isn't that what I'm building? Any idea what
I'm missing? |
| Date | 2009-12-22 18:50 |
| From | Andres Cabrera |
| Subject | [Csnd] Re: building for blue w api fails : cannot find -lcsnd |
Hi, Are you sure the interfaces are being built? Maybe libcnsd has a different name and you need a symlink? Cheers, Andres On Tue, Dec 22, 2009 at 6:44 PM, Atte André Jensen |
| Date | 2009-12-22 19:08 |
| From | Atte André Jensen |
| Subject | [Csnd] Re: Re: building for blue w api fails : cannot find -lcsnd |
Andres Cabrera wrote:
Thanks for a swift reply!
> Are you sure the interfaces are being built?
No, I'm not sure of much, does this help:
CONFIGURATION DECISION: Not building with new parser
CONFIGURATION DECISION: Building dynamic Csound library
Checking for gcc version 4 or later... (cached) yes
CONFIGURATION DECISION: Building Csound C++ interface library.
CONFIGURATION DECISION: Not building Lua wrapper to Csound C++ interface
library.
CONFIGURATION DECISION: Building Java wrapper to Csound C++ interface
library.
LangSubDir: java
Search paths:
./
./
./H/
/usr/include/fltk-1.1/
/usr/lib/jvm/java-6-sun/include/
/usr/lib/jvm/java-6-sun/include/linux/
/usr/local/include/
/usr/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:449: 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:77: Warning(813): Warning for CppSound proxy:
Base CsoundFile ignored. Multiple inheritance is not supported in Java.
CONFIGURATION DECISION: Not building Python wrapper to Csound C++
interface library.
CONFIGURATION DECISION: Not generating Csound API PDF documentation.
Checking for C library png... (cached) yes
CONFIGURATION DECISION: Building image opcodes
CONFIGURATION DECISION: Not building linear algebra opcodes.
CONFIGURATION DECISION: Building Virtual Keyboard plugin.
CONFIGURATION DECISION: Not building CoreAudio plugin.
CONFIGURATION DECISION: Building ALSA plugin.
CONFIGURATION DECISION: Building PortAudio module.
Adding Jack library for PortAudio
CONFIGURATION DECISION: Building JACK plugin.
CONFIGURATION DECISION: Not building with PortMIDI.
CONFIGURATION DECISION: Building OSC plugin.
CONFIGURATION DECISION: Building UDP plugins.
Checking for C header file fluidsynth.h... (cached) no
CONFIGURATION DECISION: Not building fluid opcodes.
CONFIGURATION DECISION: Not building vst4cs opcodes.
Checking for C header file ladspa.h... (cached) yes
Checking for C header file dssi.h... (cached) no
CONFIGURATION DECISION: Not building DSSI plugin host 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 Csound Text Editor.
CONFIGURATION DECISION: Not building CsoundAC extension module for
Csound with algorithmic composition.
CONFIGURATION DECISION: Not building CsoundVST plugin and standalone.
CONFIGURATION DECISION: Not building Tclcsound
CONFIGURATION DECISION: Not building Winsound
CONFIGURATION DECISION: Not building OSX GUI frontend
CONFIGURATION DEFAULT: Building csLadspa.
CONFIGURATION DECISION: Not calling TAGS
scons: done reading SConscript files.
scons: Building targets ...
g++ -o lib_jcsound.so -Wl,-Bdynamic -Wl,-rpath-link,interfaces -shared
interfaces/java_interface_wrap.os -L. -L. -L/usr/local/lib -L. -L.
-L/usr/lib/fltk-1.1 -lcsnd -lstdc++ -lutil libcsound64.so.5.2 -lsndfile
-lsndfile -lpthread -lpthread -lm -lportaudio -lfltk -lasound -llo
-lsndfile -ldl -lm -lpthread
/usr/bin/ld: cannot find -lcsnd
collect2: ld returned 1 exit status
scons: *** [lib_jcsound.so] Error 1
scons: building terminated because of errors.
|
| Date | 2009-12-22 19:13 |
| From | Steven Yi |
| Subject | [Csnd] Re: Re: Re: building for blue w api fails : cannot find -lcsnd |
Hi Atte, I'm going to try to build on Linux now to see if I can help. Are you using Ubuntu? steven On Tue, Dec 22, 2009 at 2:08 PM, Atte André Jensen |
| Date | 2009-12-22 19:37 |
| From | Atte André Jensen |
| Subject | [Csnd] Re: Re: Re: Re: building for blue w api fails : cannot find -lcsnd |
Steven Yi wrote: > I'm going to try to build on Linux now to see if I can help. Are you > using Ubuntu? Thanks Steven. Yes, I'm using ubuntu 9.10. |
| Date | 2009-12-22 19:42 |
| From | PINOT Francois |
| Subject | [Csnd] Re: Re: building for blue w api fails : cannot find -lcsnd |
Atte André Jensen a écrit :
> Steven Yi wrote:
>
>> I'm going to try to build on Linux now to see if I can help. Are you
>> using Ubuntu?
>
> Thanks Steven. Yes, I'm using ubuntu 9.10.
>
Here's how I build csound with java wrapper on ubuntu 9.10. Hope it helps
Francois Pinot
Packages installed:
g++-4.4
swig
libsndfile1-dev
portaudio19-dev
libasound2-dev (for alsa)
libjack0.100.0-dev
libportmidi-dev
libfltk1.1-dev
libfluidsynth-dev
libboost-dev (1,38)
libgmm-dev
liblo0-dev (for OSC)
ladspa-sdk
dssi-dev
tcl8.4-dev
tk8.4-dev
gettext
Python-dev (2.6.4)
sun-java6-jdk
scons 1.2.0
These two lines added in custom.py after the line customCPPPATH=[]:
customCPPPATH.append('/usr/lib/jvm/java-6-sun/include')
customCPPPATH.append('/usr/lib/jvm/java-6-sun/include/linux')
I use the following script from the csound5 source directory to build
csound:
scons \
useDouble=1 \
noFLTKThreads=0 \
useOSC=1 \
buildPythonOpcodes=1 \
buildRelease=1 \
dynamicCsoundLibrary=1 \
buildTclcsound=1 \
buildInterfaces=1 \
buildPythonWrapper=1 \
buildJavaWrapper=1 \
gcc4opt=native \
2>&1 | tee ../csound5build.log
When csound is built, I run this command:
sudo python install.py
Then I run this command from /usr/local/lib to add a symlink that is
missing:
sudo ln -s libcsnd.so.5.2 libcsnd.so
And finally I run this command from /usr/lib to create a symlink for the
java
wrapper lib:
sudo ln -s /usr/local/lib/lib_jcsound.so lib_jcsound.so
Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound" |
| Date | 2009-12-22 19:43 |
| From | Andres Cabrera |
| Subject | [Csnd] Re: Re: Re: Re: Re: building for blue w api fails : cannot find -lcsnd |
I think you need to create a symlink for libcsnd. Cheers, Andrés On Tue, Dec 22, 2009 at 7:37 PM, Atte André Jensen |
| Date | 2009-12-22 20:05 |
| From | Steven Yi |
| Subject | [Csnd] Re: Re: Re: building for blue w api fails : cannot find -lcsnd |
Hmmm... I keep getting: /usr/bin/ld: cannot find -lmusicxml2 Anyone know what this is for and how to remedy? steven On Tue, Dec 22, 2009 at 2:42 PM, PINOT Francois |
| Date | 2009-12-22 20:17 |
| From | Victor Lazzarini |
| Subject | [Csnd] Re: Re: Re: Re: building for blue w api fails : cannot find -lcsnd |
Sounds like Mike Gogin's MusicXML additions. On 22 Dec 2009, at 20:05, Steven Yi wrote: > Hmmm... I keep getting: > > /usr/bin/ld: cannot find -lmusicxml2 > > Anyone know what this is for and how to remedy? > > steven > > On Tue, Dec 22, 2009 at 2:42 PM, PINOT Francois |
| Date | 2009-12-22 20:43 |
| From | Atte André Jensen |
| Subject | [Csnd] Re: Re: Re: building for blue w api fails : cannot find -lcsnd |
PINOT Francois wrote: > I use the following script from the csound5 source directory to build > csound: > > gcc4opt=native Bingo! That made it build, but for some reason I wasn't able to use the API from blue with only that added to my build options. However using all of your scons options, blue runs just fine with the API here. Thanks alot for all your help, everybody! |