| I put everything in /usr/local as su and untar it. Then I do ./configure;
make; make install. make install puts headers and libs where they belong.
Original Message:
-----------------
From: iainduncan@telus.net
Date: Sat, 8 May 2004 00:34:54 -0700
To: csound-dev@eartha.mills.edu
Subject: [CSOUND-DEV:4617] RE: Csound 5 compile on gentoo
> I'm not sure how python installs on gentoo, but I know Redhat systems
> usually separate binary packages and dev packages. It might be the case
> that when installing on gentoo you may only installed what was necessary
> to use python but not the dev libs/headers needed to compile programs to
> link with python.
Thanks Steven. I downloaded the sources from python.org and installed
manually.
However, still I can find no file called python.h. I found python.c and
python.o, but not .h. Any clue where this file should be or why I don't
have it?
I just downloaded the sources, did ./configure, make, make install. Didn't
specify anything to configure.
By the way ( stupid linux newbie question ), where is it customary in linux
to
install dev tools anyway? /usr?
Thanks
Iain
> steven
>
>
> On Fri, 2004-05-07 at 20:51, iainduncan@telus.net wrote:
> > > 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/ . |