Csound Csound-dev Csound-tekno Search About

[CSOUND-DEV:4619] RE: Csound 5 compile on gentoo

Date2004-05-08 13:08
From"gogins@pipeline.com"
Subject[CSOUND-DEV:4619] RE: Csound 5 compile on gentoo
Comes with Python, it's the main header; on Linux could be in one of the
standard places (/usr/include, /usr/local/include, maybe even
/usr/lib/config). Try the "locate" command. If you have Python, you have
this file; if you don't have this file you don't have Python.

Original Message:
-----------------
From:  iainduncan@telus.net
Date: Fri,  7 May 2004 20:51:04 -0700
To: csound-dev@eartha.mills.edu
Subject: [CSOUND-DEV:4615] RE: Csound 5 compile on gentoo


> In custom.py tell CPPPATH where python.h is.

Thanks. However, locate ( I did do updatedb ) doesn't find a python.h. Is
this a
file that comes with python, or is this something that should have come from
csound5 cvs? I didn't install python 'cause it was already on my gentoo
install.

Iain


 
> Original Message:
> -----------------
> From:  iainduncan@telus.net
> Date: Fri,  7 May 2004 12:25:44 -0700
> To: csound-dev@eartha.mills.edu
> Subject: [CSOUND-DEV:4610] Csound 5 compile on gentoo
> 
> 
> 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/l
> d:
> 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
> 
> 
>  
> 
> 
> 
> --------------------------------------------------------------------
> mail2web - Check your email from the web at
> http://mail2web.com/ .
> 
> 




--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ .