| Wow, this is a LOT more fun on linux, especially gentoo. I'm following all the
instructions in the pdf file. I emerged boost, fltk ( configured with
-enable-threads ), libsndfile, portaudio 19 ( from cvs snapshot ), SWIG, and
scons. Checked out the csound5 sources from cvs. Because I don't know where to
put things, I did all this as root and installed everything in my / dir. ( If
this is wrong could someone tell me? ) All the above was dead easy compared to
cigwin or mingw.
On to Csound5. Using the default scons, which wants to build CsoundVST as well,
I hang on the following:
frontends/CsoundVST/CsoundVST.cpp:247: error: `PySys_SetArgv' undeclared (first
use this function)
frontends/CsoundVST/CsoundVST.cpp:247: error: (Each undeclared identifier is
reported only once for each function it appears in.)
frontends/CsoundVST/CsoundVST.cpp:248: error: `PyObject' undeclared (first use
this function)
frontends/CsoundVST/CsoundVST.cpp:248: error: `mainModule' undeclared (first
use this function)
frontends/CsoundVST/CsoundVST.cpp:248: error: `PyImport_ImportModule'
undeclared (first use this function)
frontends/CsoundVST/CsoundVST.cpp:252: error: `PyErr_Print' undeclared (first
use this function)
frontends/CsoundVST/CsoundVST.cpp:269: error: `pyCsound' undeclared (first use
this function)
frontends/CsoundVST/CsoundVST.cpp:269: error: `PyObject_GetAttrString'
undeclared (first use this function)
frontends/CsoundVST/CsoundVST.cpp:272: error: `pyCppSound' undeclared (first
use this function)
frontends/CsoundVST/CsoundVST.cpp:272: error: `PyObject_CallMethod' undeclared
(first use this function)
frontends/CsoundVST/CsoundVST.cpp:273: error: `PyLong_AsLong' undeclared (first
use this function)
scons: *** [frontends/CsoundVST/CsoundVST.os] Error 1
scons: building terminated because of errors.
Changin Scons to not try to build CsoundVST, I get further ( I think ) and hang
on the section where a whole slew of tags appear, specifically here:
frontends/CsoundVST/Silence.hpp frontends/CsoundVST/StrangeAttractor.hpp
frontends/CsoundVST/System.hpp
sh: line 1: etags: command not found
scons: *** [TAGS] Error 127
scons: building terminated because of errors.
Changing Scons again to not generate tags, I get the below:
util1/cscore/cscore_main.c: In function `main':
util1/cscore/cscore_main.c:28: warning: implicit declaration of function `lcount'
gcc -static -o cscore util1/cscore/cscore_main.o -L. -L. -L. -L/usr/lib
-L/usr/local/lib -L/usr/local/lib -L/usr/X11R6/lib -lcsound -lsndfile -lfltk
-lpthread -lm -lXext -lX11 -lsupc++ -lportaudio -lasound -lfltk -lstdc++
-lpthread -lm -ldl
/usr/lib/gcc-lib/i386-pc-linux-gnu/3.3.2/../../../../i386-pc-linux-gnu/bin/ld:
cannot find -lasound
collect2: ld returned 1 exit status
scons: *** [cscore] Error 1
scons: building terminated because of errors.
Does the above mean that my alsa stuff is not being found? And if so, any hints
on how to solve this? I know very little about linking and paths on linux.
And lastly, changing SConstruct to not use PortAudio ( I assume that's what
wants to find asound ), I get:
ranlib libcsound.a
gcc -static -o cscore util1/cscore/cscore_main.o -L. -L. -L. -L/usr/lib
-L/usr/local/lib -L/usr/local/lib -L/usr/X11R6/lib -lcsound -lsndfile -lfltk
-lpthread -lm -lXext -lX11 -lsupc++
./libcsound.a(main.o)(.text+0x4f7): In function `csoundCompile':
Top/main.c:423: warning: the use of `tmpnam' is dangerous, better use `mkstemp'
./libcsound.a(dl_opcodes.o)(.text+0x29): In function `csoundOpenLibrary':
Top/dl_opcodes.c:88: undefined reference to `dlopen'
./libcsound.a(dl_opcodes.o)(.text+0x44):Top/dl_opcodes.c:90: undefined reference
to `dlerror'
./libcsound.a(dl_opcodes.o)(.text+0x80): In function `csoundGetLibrarySymbol':
Top/dl_opcodes.c:106: undefined reference to `dlsym'
./libcsound.a(dl_opcodes.o)(.text+0x9a):Top/dl_opcodes.c:108: undefined
reference to `dlerror'
./libcsound.a(dl_opcodes.o)(.text+0x69): In function `csoundCloseLibrary':
Top/dl_opcodes.c:99: undefined reference to `dlclose'
collect2: ld returned 1 exit status
scons: *** [cscore] Error 1
scons: building terminated because of errors.
Hope that helps track down something or another, or at least sheds some light on
what further instructions might be good to have in the how to file.
Thanks
Iain
|