答复: [CLAM] again(just now code errors):problems with scons configure, thks
David García Garzón
dgarcia at iua.upf.edu
Thu Sep 4 04:08:37 PDT 2008
On Thursday 04 September 2008, Jun Jun wrote:
> FYI, the clam-related environmentIncludes in my system,(i.e.,in the user's
> environmental variable) are as below:
> d:\MinGW\bin;d:\MinGW\local\bin;d:\MinGW\local\lib;d:\MinGW\local\include;d
>:\MinGW\include;d:\MinGW\lib;
> d:\msys\1.0\bin;C:\Python25\scons-0.96.96\SCons;C:\Python25\Scripts;C:\Pyth
>on25;d:\devel;D:\Qt\4.4.1\bin
>
> Maybe some of them are not necessary yet some are.
>
> Jun
The only that has sense are d:\MinGW\local\include and d:\MinGW\include
The others are like the entries you had to have in the PATH environment. So
ignore them, Sujuan.
>
> > ----- Original Message -----
> > From: "David García Garzón" <dgarcia at iua.upf.edu>
> > To: "Yang Sujuan(杨素娟)" <yangsujuan at huawei.com>
> > Cc: <clam at iua.upf.edu>; "Jun Jun" <wangjun at dsp.ac.cn>
> > Sent: Thursday, September 04, 2008 8:54 AM
> > Subject: Re: 答复: [CLAM] again(just now code errors):problems with scons
> > configure, thks
> >
> >
> > Just to clarify:
> > - the double '\\' is needed in order to escape the \ in python and in
> > command line. \m is a carry return \l is a line feed and \{whateverchar}
> > is just the char if there is no other substitution so to get a single \
> > you need to place two \\. Once you feed the double slash, python or the
> > shell understand single. - As the pthread.h is in d:\MinGW\local\include,
> > that is the path that is missing. The scons script does that by two ways:
> > by appending 'local\\include' to the sandbox (and sandbox_path being
> > 'd:\\MinGW\\')
> > clam_env.AppendUnique( CPPPATH = [os.path.join(clam_env['sandbox_path'],
> > 'local', 'include')] )
> > - The line that is giving you the error about the INCLUDE environment var
> > in the svn states:
> > if os.environ.has_key('INCLUDE') : environmentIncludes =
> > os.environ['INCLUDE'] But the error states that your copy just has:
> > environmentIncludes = os.environ['INCLUDE']
> > So it seems that you removed the condition that makes using such var just
> > if it exists. Double check which are the differences with the original
> > files.
> >
> > Besides that i don't know exactly what could be the problem. I am carbon
> > copying to Jun. Maybe she could give you more information, for example
> > what does contain INCLUDE in her system (we added it because her but i
> > don't remember why). Keep the mailing list CC, please.
> >
> > By looking at the logs, you seem to have added D:\MinGW\local to your
> > INCLUDE while it should have been D:\MinGW\local\include in order to
> > work. Anyway, try the sandbox option.
> >
> > On Wednesday 03 September 2008, Yang Sujuan(杨素娟) wrote:
> >> thks.
> >>
> >> I reinstall the system again just now and the errors the same.
> >>
> >> I used the same parameter for the command scons configure as the
> >> SConstruct file. for sandbox_path, I used "d:\\mingw\\local" or
> >> "d:\\mingw" it reports "KeyError: 'INCLUDE'". If I "export
> >> INCLUDE="D:\MinGW\local"" or export INCLUDE="D:\MinGW" it reports
> >> pthread.h canot be found. But I'm sure pthread.h is in
> >> "D:\MinGW\local\include".
> >>
> >> I found that when it checks pthread.h, it reports "include before
> >> pthread checking: D:\MinGW\local", why not "\\"? before this line, all
> >> the reports is "\\", like "d:\\mingw\pthreads\include"...
> >>
> >> 1. command:
> >> scons configure prefix='d:\\mingw\\local'
> >> prefix_for_packaging='d:\\mingw\\local' sandbox_path='d:\\mingw\\local'
> >> verbose=True xmlbackend='xmlpp' audio_backend=portaudio
> >>
> >>
> >> 2.KeyError: 'INCLUDE':
> >> ...
> >> lib path: d:\\mingw\\local\pthreads\lib
> >> KeyError: 'INCLUDE':
> >> File "D:\mingw\clam\scons\libs\SConstruct", line 337:
> >> configureModules(clam_env)
> >> File "D:\mingw\clam\scons\libs\SConstruct", line 164:
> >> configure_clam(clam_env)
> >> File "D:\mingw\clam\scons\libs\SConstruct", line 67:
> >> environmentIncludes = os.environ['INCLUDE']
> >> File "D:\Python25\lib\os.py", line 432:
> >> return self.data[key.upper()]
> >>
> >> 3.pthread.h error:
> >> ...
> >> lib path: d:\\mingw\pthreads\lib
> >> adding include dir from windows config: D:\MinGW\local
> >> include before pthread checking: $QT_CPPPATH
> >> include before pthread checking: d:\\mingw\fltk\include
> >> include before pthread checking: d:\\mingw\xmlpp\include
> >> include before pthread checking: d:\\mingw\fftw\include
> >> include before pthread checking: d:\\mingw\dxsdk\include
> >> include before pthread checking: d:\\mingw\id3lib\include
> >> include before pthread checking: d:\\mingw\libmad\include
> >> include before pthread checking: d:\\mingw\libsndfile\include
> >> include before pthread checking: d:\\mingw\oggvorbis\include
> >> include before pthread checking: d:\\mingw\portmidi\include
> >> include before pthread checking: d:\\mingw\portaudio\include
> >> include before pthread checking: d:\\mingw\pthreads\include
> >> include before pthread checking: D:\MinGW\local
> >> Checking for C header file pthread.h... no
> >> Could not find pthread (Posix Threads) library headers!
> >>
> >> 4. directory of /mingw and /mingw/local:
> >> y34807 at Y34807 /mingw
> >> $ ll
> >> total 125
> >> 0 drwxr-xr-x 13 y34807 Administ 0 Sep 3 11:05 .
> >> 0 drwxr-xr-x 5 y34807 Administ 0 Sep 3 11:03 share
> >> 0 drwxr-xr-x 6 y34807 Administ 0 Sep 3 11:02 lib
> >> 0 drwxr-xr-x 2 y34807 Administ 0 Sep 3 11:02 bin
> >> 0 drwxr-xr-x 2 y34807 Administ 0 Sep 3 11:02 info
> >> 0 drwxr-xr-x 9 y34807 Administ 0 Sep 3 10:52 CLAM
> >> 0 drwxr-xr-x 6 y34807 Administ 0 Sep 3 10:52 local
> >> 0 drwxr-xr-x 8 y34807 Administ 0 Sep 3 10:47 ..
> >> 34 -rwxr-xr-x 1 y34807 Administ 67620 Sep 3 10:46 uninst.exe
> >> 1 -rw-r--r-- 1 y34807 Administ 46 Sep 3 10:46 MinGW.url
> >> 1 -rw-r--r-- 1 y34807 Administ 228 Sep 3 10:46
> >> installed.ini 0 drwxr-xr-x 3 y34807 Administ 0 Sep 3 10:46
> >> libexec 0 drwxr-xr-x 5 y34807 Administ 0 Sep 3 10:46 man 0
> >> drwxr-xr-x 4 y34807 Administ 0 Sep 3 10:46 mingw32 0
> >> drwxr-xr-x 5 y34807 Administ 0 Sep 3 10:46 include 0
> >> drwxr-xr-x 3 y34807 Administ 0 Sep 3 10:46 doc 69
> >> -rwxr-xr-x 1 y34807 Administ 140095 Aug 1 17:26
> >> MinGW-5.1.4.exe 13 -rw-r--r-- 1 y34807 Administ 26430 Jan 29
> >> 2001 COPYING.LIB 9 -rw-r--r-- 1 y34807 Administ 17992 Dec 19
> >> 2000 COPYING
> >>
> >> y34807 at Y34807 /mingw/local
> >> $ ll
> >> total 0
> >> 0 drwxr-xr-x 13 y34807 Administ 0 Sep 3 11:05 ..
> >> 0 drwxr-xr-x 14 y34807 Administ 0 Sep 3 10:52 lib
> >> 0 drwxr-xr-x 7 y34807 Administ 0 Sep 3 10:52 share
> >> 0 drwxr-xr-x 6 y34807 Administ 0 Sep 3 10:52 .
> >> 0 drwxr-xr-x 35 y34807 Administ 0 Sep 3 10:52 include
> >> 0 drwxr-xr-x 2 y34807 Administ 0 Sep 3 10:51 bin
> >>
> >>
> >>
> >>
> >> Best Regards,
> >> Yang Sujuan(杨素娟)
--
David García Garzón
(Work) dgarcia at iua dot upf anotherdot es
http://www.iua.upf.edu/~dgarcia
More information about the clam-users
mailing list