# 答复: [CLAM] again(just now code errors):problems with scons configure, thks

David García Garzón dgarcia at iua.upf.edu
Wed Sep 3 17:54:55 PDT 2008

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()]
>
> ...
> 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(杨素娟) > > > > -----Original Message----- > From: David García Garzón [mailto:dgarcia at iua.upf.edu] > Sent: Wednesday, September 03, 2008 1:41 AM > To: Yang Sujuan ("杨素娟") > Cc: clam at iua.upf.edu > Subject: Re: 答复: [CLAM] again(just now code errors):problems with scons > configure, thks > > xerces might be included but we chose xmlpp just because we were unable to > make it work, so use the xmlpp backend. > > Anyway still not the issue. pthread.h should be at d:\mingw\local\include > that if you properly specify the sandbox_path to d:\mingw\ it shoudl be > added automatically. On the other side your mingw folder looks like messed > up. It looks like if you had copied the inner content of local/include > within the tarbal into the top of the mingw/ directory. You just have to > uncompress the zip and you will get: > > local/include > local/share > local/bin > > you just have to make those folders to be > > d:/mingw/local/include > d:/mingw/local/bin > d:/mingw/local/share > > all those fltk fftw dlls cppunit CLAM libospack.... folders shouldn't have > to be there. > > On Tuesday 02 September 2008 12:10:00 Yang Sujuan wrote: > > thks. > > > > I reinstalled the system, including mingw,msys... following Jun's notes, > > together with windows-external-libs.tar.gz(xercesc included). GCC version > > is 4.3.0. > > > > But the system can not find "INCLUDE" dir. > > I export INCLUDE path in /etc/profile with > > ""D:\MinGW\include:D:\MinGW\local\include:D:\MinGW\lib\gcc\mingw32\4.3.0\in > > >c lude:D:\MinGW\pthreads\include"" or with "\\", or any of them. Another > > error happens: it still can not find pthread.h. > > > > > > > > I checked the SConstruct file. It supports xmlpp and xercesc at the same > > time. I also modified the "prefix", sandbox_path, etc as the command > > below in SConstruct file. > > > > maybe at4 directory should be under mingw? > > > > thks > > > > 1. "INCLUDE" can not be found > > y34807 at Y34807 /MinGW/CLAM/scons/libs > >$ scons configure prefix='d:\\mingw'
> > prefix_for_packaging='d:\\mingw\\local' sandbox_path='d:\\mingw'
> > verbose=True xmlbackend='xercesc'
> > audio_backend=portaudio
> > scons: Reading SConscript files ...
> > Version:  1.0.0
> > Package version:  1.0.0
> > ############################################
> > ### CLAM GLOBAL DEPENDENCIES CHECKING    ###
> > ############################################
> > include path: d:\\mingw\fltk\include
> > lib path: d:\\mingw\fltk\lib
> > include path: d:\\mingw\xercesc\include
> > lib path: d:\\mingw\xercesc\lib
> > include path: d:\\mingw\fftw\include
> > lib path: d:\\mingw\fftw\lib
> > include path: d:\\mingw\dxsdk\include
> > lib path: d:\\mingw\dxsdk\lib
> > include path: d:\\mingw\id3lib\include
> > lib path: d:\\mingw\id3lib\lib
> > include path: d:\\mingw\libmad\include
> > lib path: d:\\mingw\libmad\lib
> > include path: d:\\mingw\libsndfile\include
> > lib path: d:\\mingw\libsndfile\lib
> > include path: d:\\mingw\oggvorbis\include
> > lib path: d:\\mingw\oggvorbis\lib
> > include path: d:\\mingw\portmidi\include
> > lib path: d:\\mingw\portmidi\lib
> > include path: d:\\mingw\portaudio\include
> > lib path: d:\\mingw\portaudio\lib
> > include path: d:\\mingw\pthreads\include
> > lib path: d:\\mingw\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()]
> >
> >
> > 2. pthread.h can not be found
> > y34807 at Y34807 /MinGW/CLAM/scons/libs
> > $scons configure prefix='d:\\mingw' > > prefix_for_packaging='d:\\mingw\\local' sandbox_path='d:\\mingw' > > verbose=True xmlbackend='xercesc' aud > > io_backend=portaudio > > scons: Reading SConscript files ... > > Version: 1.0.0 > > Package version: 1.0.0 > > ############################################ > > ### CLAM GLOBAL DEPENDENCIES CHECKING ### > > ############################################ > > include path: d:\\mingw\fltk\include > > lib path: d:\\mingw\fltk\lib > > include path: d:\\mingw\xercesc\include > > lib path: d:\\mingw\xercesc\lib > > include path: d:\\mingw\fftw\include > > lib path: d:\\mingw\fftw\lib > > include path: d:\\mingw\dxsdk\include > > lib path: d:\\mingw\dxsdk\lib > > include path: d:\\mingw\id3lib\include > > lib path: d:\\mingw\id3lib\lib > > include path: d:\\mingw\libmad\include > > lib path: d:\\mingw\libmad\lib > > include path: d:\\mingw\libsndfile\include > > lib path: d:\\mingw\libsndfile\lib > > include path: d:\\mingw\oggvorbis\include > > lib path: d:\\mingw\oggvorbis\lib > > include path: d:\\mingw\portmidi\include > > lib path: d:\\mingw\portmidi\lib > > include path: d:\\mingw\portaudio\include > > lib path: d:\\mingw\portaudio\lib > > include path: d:\\mingw\pthreads\include > > lib path: d:\\mingw\pthreads\lib > > adding include dir from windows config: D:\MinGW\pthreads > > include before pthread checking:$QT_CPPPATH
> > include before pthread checking: d:\\mingw\fltk\include
> > include before pthread checking: d:\\mingw\xercesc\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\pthreads
> > Checking for C header file pthread.h... no
> > Could not find pthread (Posix Threads) library headers!
> >
> > 3.the current folder of mingw is:
> > y34807 at Y34807 /mingw
> > $ll > > total 125 > > 0 drwxr-xr-x 5 y34807 Administ 0 Sep 2 15:50 xercesc > > 0 drwxr-xr-x 25 y34807 Administ 0 Sep 2 15:50 . > > 0 drwxr-xr-x 4 y34807 Administ 0 Sep 2 15:50 portmidi > > 0 drwxr-xr-x 4 y34807 Administ 0 Sep 2 15:50 pthreads > > 0 drwxr-xr-x 5 y34807 Administ 0 Sep 2 15:50 oggvorbis > > 0 drwxr-xr-x 4 y34807 Administ 0 Sep 2 15:50 libmad > > 0 drwxr-xr-x 4 y34807 Administ 0 Sep 2 15:50 liboscpack > > 0 drwxr-xr-x 5 y34807 Administ 0 Sep 2 15:50 libsndfile > > 0 drwxr-xr-x 4 y34807 Administ 0 Sep 2 15:50 id3lib > > 0 drwxr-xr-x 4 y34807 Administ 0 Sep 2 15:50 fltk > > 0 drwxr-xr-x 5 y34807 Administ 0 Sep 2 15:50 fftw > > 0 drwxr-xr-x 2 y34807 Administ 0 Sep 2 15:50 dlls > > 0 drwxr-xr-x 5 y34807 Administ 0 Sep 2 15:50 cppunit > > 0 drwxr-xr-x 9 y34807 Administ 0 Sep 2 15:46 CLAM > > 0 drwxr-xr-x 5 y34807 Administ 0 Sep 2 15:41 share > > 0 drwxr-xr-x 7 y34807 Administ 0 Sep 2 15:41 lib > > 0 drwxr-xr-x 2 y34807 Administ 0 Sep 2 15:40 bin > > 0 drwxr-xr-x 2 y34807 Administ 0 Sep 2 15:40 info > > 0 drwxr-xr-x 6 y34807 Administ 0 Sep 2 15:21 local > > 0 drwxr-xr-x 8 y34807 Administ 0 Sep 2 14:49 .. > > 1 -rw-r--r-- 1 y34807 Administ 46 Sep 2 14:46 MinGW.url > > 0 drwxr-xr-x 4 y34807 Administ 0 Sep 2 14:46 doc > > 1 -rw-r--r-- 1 y34807 Administ 355 Sep 2 14:46 > > installed.ini 34 -rwxr-xr-x 1 y34807 Administ 67620 Sep 2 14:46 > > uninst.exe 0 drwxr-xr-x 10 y34807 Administ 0 Sep 2 14:46 > > include 0 drwxr-xr-x 5 y34807 Administ 0 Sep 2 14:46 man 0 > > drwxr-xr-x 3 y34807 Administ 0 Sep 2 14:46 libexec 0 > > drwxr-xr-x 4 y34807 Administ 0 Sep 2 14:46 mingw32 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 > > > > > > > > Best Regards, > > Yang Sujuan(杨素娟) > > > > > > > > -----Original Message----- > > From: David García Garzón [mailto:dgarcia at iua.upf.edu] > > Sent: Monday, September 01, 2008 7:26 PM > > To: Yang Sujuan(杨素娟); clam at iua.upf.edu > > Subject: Re: 答复: [CLAM] again(just now code errors):problems with scons > > configure, thks > > > > Jun's procedure configures with xmlpp as xmlbackend not xerces as xerces > > is > > > not included in the third party library tarball. It also configures the > > PKG_CONFIG_PATH environment variable properly and suggest an upgrade for > > the gcc version to 4.X to avoid some problems you can get later. So, yes, > > please, take that page and follow it step by step. > > http://iua-share.upf.edu/wikis/clam/index.php/Devel/Windows_MinGW_build#Jun > > >_ install_notes > > > > On Dilluns 01 Setembre 2008, Yang Sujuan(杨素娟) wrote: > > > I use the same tarball and the same local folder. gcc version is gcc > > > version is 3.4.5 > > > > > > and the errors the same...headache... > > > > > > > > > y34807 at Y34807 /mingw/clam/scons/libs > > >$ scons prefix='d:\\mingw\\local' prefix_for_packing='d:\\mingw\\local'
> > > sandbox
> > > _path='d:\\mingw' verbose=True xmlbackend='xercesc'
> > > audio_backend=portaudio
> > > scons: Reading SConscript files ...
> > > Version:  1.0.0
> > > Package version:  1.0.0
> > > ############################################
> > > ### CLAM GLOBAL DEPENDENCIES CHECKING    ###
> > > ############################################
> > > include path: d:\\mingw\fltk\include
> > > lib path: d:\\mingw\fltk\lib
> > > include path: d:\\mingw\xercesc\include lib path:
> > > d:\\mingw\xercesc\lib include path: d:\\mingw\fftw\include lib path:
> > > d:\\mingw\fftw\lib include path: d:\\mingw\dxsdk\include lib path:
> > > d:\\mingw\dxsdk\lib include path: d:\\mingw\id3lib\include lib path:
> > > d:\\mingw\id3lib\lib include path: d:\\mingw\libmad\include lib path:
> > > d:\\mingw\libmad\lib include path: d:\\mingw\libsndfile\include lib
> > > path: d:\\mingw\libsndfile\lib include path:
> > > d:\\mingw\oggvorbis\include lib path: d:\\mingw\oggvorbis\lib include
> > > path: d:\\mingw\portmidi\include lib path: d:\\mingw\portmidi\lib
> > > include path: d:\\mingw\portaudio\include lib path:
> > > d:\\mingw\portaudio\lib include path: d:\\mingw\pthreads\include lib
> > > path: d:\\mingw\pthreads\lib adding include dir from windows config:
> > > d:\Program Files\Microsoft Visual Studio \VC98\atl\include adding
> > > include dir from windows config: d:\Program Files\Microsoft Visual
> > > Studio \VC98\mfc\include adding include dir from windows config:
> > > d:\Program Files\Microsoft Visual Studio \VC98\include include before
> > > pthread checking: $QT_CPPPATH include before pthread checking: > > > d:\\mingw\fltk\include include before pthread checking: > > > d:\\mingw\xercesc\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:\Program > > > Files\Microsoft Visual Studio\VC98\a tl\include include before pthread > > > checking: d:\Program Files\Microsoft Visual Studio\VC98\m fc\include > > > include before pthread checking: d:\Program Files\Microsoft Visual > > > Studio\VC98\i nclude Checking for C header file pthread.h... yes > > > Checking for pthread_join() in C library pthreadVCE... yes Checking > > > that pthread sample program compiles...yes Checking that pthread > > > sample program links...yes Checking that pthread sample program > > > runs... yes ######################################### > > > ### CLAM CORE DEPENDENCIES CHECKING ### > > > ######################################### > > > Checking for C++ header file xercesc/util/PlatformUtils.hpp... yes > > > path of app: > > > .;D:\MSYS\1.0\local\bin;d:\MinGW\bin;D:\MSYS\1.0\bin;c:\WINDOWS\sys > > > tem32;c:\WINDOWS;c:\WINDOWS\System32\Wbem;d:\Program > > > Files\Java\jdk1.6.0_02\bin; > > > d:\Program > > > Files\Java\jdk1.6.0_02\jre\bin;%CATALINA_HOME%\bin;d:\PROGRA~1\ULTRAE > > > ~1;d:\Program Files\apache-ant-1.7.0\bin;d:\Program > > > Files\QuickTime\QTSystem\;d: > > > \Program Files\MySQL\MySQL Server 5.0\bin;d:\Program > > > Files\MATLAB704\bin\win32;d > > > > > > :\Program Files\Microsoft Visual Studio\Common\Tools\WinNT;d:\Program > > > > > > Files\Micr > > > > osoft > > > > > Visual Studio\Common\MSDev98\Bin;d:\Program Files\Microsoft Visual > > > Studio\ Common\Tools;d:\Program Files\Microsoft Visual > > > Studio\VC98\bin;d:\Python25;d:\Py > > > thon25\Scripts;d:\MinGW\local\bin;d:\MinGW\dlls;d:\MinGW\bin > > > Checking that xerces-c sample program compiles...no xerces c code > > > compile/link/run test failed! Check config.log for details... > > > > > > > > > > > > Best Regards, > > > Yang Sujuan(杨素娟) > > > > > > > > > > > > -----Original Message----- > > > From: David García Garzón [mailto:dgarcia at iua.upf.edu] > > > Sent: Monday, September 01, 2008 5:37 PM > > > To: Yang Sujuan(杨素娟) > > > Subject: Re: 答复: [CLAM] again(just now code errors):problems with > > > scons configure, thks > > > > > > So i deduce that you have not installed the 3rd party libraries. From > > > the tarball. Let's start from a common starting point. Which guide are > > > you using to compile CLAM? > > > > > > I suggest you to follow Wang Jun notes at: > > > > > >http://iua-share.upf.edu/wikis/clam/index.php/Devel/Windows_MinGW_build > > >#Jun > > >_ install_notes > > > > > > I just put it in a more prominent place and did some edits so that > > > they are more easily followed. > > > > > > On Dilluns 01 Setembre 2008, Yang Sujuan(杨素娟) wrote: > > > > 1. I have "mingw/lib/pkgconfig" folder, and it only has one file > > > > "libgcj.pc". I don't know how to change to "mingw/local/lib". > > > > 2. about the prefix in Struct file. Need I modify the > > > > "install_prefix"? > > > > > > > > opts.Add( PathOption( 'prefix', 'Install location for CLAM', > > > > '/mingw')) > > > > opts.Add( PathOption( 'install_prefix', 'Install location when > > > > packaging (just for .deb creation)', '.')) > > > > if sys.platform == 'win32' : #!= 'linux2' : > > > > opts.Add( PathOption( 'sandbox_path', 'Path to sandbox', > > > > 'D:\\mingw' ) ) > > > > > > > > > > > > 3.scons is not successful. I checked config.log and there are also > > > > errors when conftest_6.cxx is compiled. it's correct from conftest_0 > > > > ... conftest_5. I compared the process of conftest_5 and conftest_6. > > > > the difference is file content. So I think maybe the "Initialize" has > > > > some problem? > > > > > > > > ######################################### > > > > ### CLAM CORE DEPENDENCIES CHECKING ### > > > > ######################################### > > > > Checking for C++ header file xercesc/util/PlatformUtils.hpp... yes > > > > path of app: > > > > > > .;D:\MSYS\1.0\local\bin;d:\MinGW\bin;D:\MSYS\1.0\bin;.;D:\MSYS\1.0\loc > > > al\bi > > > > > > >n > > > > > > ;d:\MinGW\bin;D:\MSYS\1.0\bin;c:\WINDOWS\system32;c:\WINDOWS;c:\WINDOW > > > S\Sys > > > > > > >t em32\Wbem;d:\Program Files\Java\jdk1.6.0_02\bin;d:\Program > > > > > > Files\Java\jdk1.6.0_02\jre\bin;%CATALINA_HOME%\bin;d:\PROGRA~1\ULTRAE~ > > > 1;d:\ > > > > > > >P rogram Files\apache-ant-1.7.0\bin;d:\Program > > > > Files\QuickTime\QTSystem\;d:\Program Files\MySQL\MySQL Server > > > >5.0\bin;d:\Program Files\MATLAB704\bin\win32;d:\Program > > > >Files\Microsoft Visual Studio\Common\Tools\WinNT;d:\Program > > > >Files\Microsoft Visual Studio\Common\MSDev98\Bin;d:\Program > > > >Files\Microsoft Visual Studio\Common\Tools;d:\Program > > > >Files\Microsoft Visual > > > > > > Studio\VC98\bin;d:\Python25;d:\Python25\Scripts;d:\MinGW\local\bin;d:\ > > > MinGW > > > > > > >\ > > > > > > dlls;d:\MinGW\bin;d:\Python25;d:\Python25\Scripts;d:\MinGW\local\bin;d > > > > > > :\Min > > > : > > > >G W\dlls;d:\MinGW\bin > > > > Checking that xerces-c sample program compiles...no xerces c code > > > >compile/link/run test failed! Check config.log for > > > > > > details... > > > > > > > Part of config.log as follwing: > > > > scons: Configure: Checking that xerces-c sample program compiles... > > > > .sconf_temp\conftest_6.cxx <- > > > > > > > > |#include <xercesc/util/PlatformUtils.hpp> > > > > | > > > > |int main( int argc, char** argv ) > > > > |{ > > > > | namespace xercesc=XERCES_CPP_NAMESPACE; > > > > | > > > > | xercesc::XMLPlatformUtils::Initialize(); > > > > | > > > > | return 0; > > > > |} > > > > > > > > cl /nologo /D /FD /GR /GX /GZ /MDd /Od /W3 /ZI /Zm1000 /TP > > > > -D_USE_MATH_DEFINES -DCLAM_FLOAT -DWIN32 -D_DEBUG -DUSE_PTHREADS=1 > > > > -DWIN32 /ID:\MinGW\qt-win-opensource-src-4.4.1\include > > > > /ID:\MinGW\fltk\include /ID:\MinGW\xercesc\include > > > > /ID:\MinGW\fftw\include > > > > > > /ID:\MinGW\dxsdk\include > > > > > > > /ID:\MinGW\id3lib\include /ID:\MinGW\libmad\include > > > > /ID:\MinGW\libsndfile\include /ID:\MinGW\oggvorbis\include > > > > /ID:\MinGW\portmidi\include /ID:\MinGW\portaudio\include > > > > /ID:\MinGW\pthreads\include "/ID:\Program Files\Microsoft Visual > > > > Studio\VC98\atl\include" "/ID:\Program Files\Microsoft Visual > > > > Studio\VC98\mfc\include" "/ID:\Program Files\Microsoft Visual > > > > Studio\VC98\include" /c .sconf_temp\conftest_6.cxx > > > > /Fo.sconf_temp\conftest_6.obj 'cl' is not an internal or external > > > > command, nor a bat command > > > > scons: Configure: no > > > > > > > > > > > > thks > > > > > > > > > > > > Best Regards, > > > > Yang Sujuan(杨素娟) > > > > > > > > > > > > -----Original Message----- > > > > From: David García Garzón [mailto:dgarcia at iua.upf.edu] > > > > Sent: Saturday, August 30, 2008 9:44 PM > > > > To: Yang Sujuan(杨素娟) > > > > Cc: clam at iua.upf.edu > > > > Subject: Re: 答复: [CLAM] again(just now code errors):problems with > > > > scons configure, thks > > > > > > > > Did you issued 'scons install' after 'scons' in CLAM libs? > > > > > > > > do you have such a mingw/lib/pkgconfig folder? > > > > > > > > why not mingw/local/lib? have you set the clam_prefix to mingw/ > > > > instead of mingw/local? > > > > > > > > On Dissabte 30 Agost 2008, Yang Sujuan(杨素娟) wrote: > > > > > to compile SMSTools, I used scons command. please see below... > > > > > > > > > > > > > > > thks for your hardwork, especially on Saturday... > > > > > > > > > > > > > > > > > > > > > > > > > y34807 at Y34807 /mingw/SMSTools-0.4.9$ ls -asl total 14
> > > > >    0 drwxr-xr-x    9 y34807   Administ        0 Aug 28 18:18 .
> > > > >    0 drwxr-xr-x   35 y34807   Administ        0 Aug 30 16:43 ..
> > > > >    1 -rw-r--r--    1 y34807   Administ     1141 Feb  7  2008
> > > > > CHANGES 2 -rw-r--r--    1 y34807   Administ     2220 May 19  2006
> > > > > COPYING 1 -rw-r--r--    1 y34807   Administ      754 Jan 21  2006
> > > > > INSTALL 0 -rw-r--r--    1 y34807   Administ        0 Dec 17  2005
> > > > > README 5 -rwxr-xr-x    1 y34807   Administ     9443 Aug 28 18:18
> >
> > SConstruct
> >
> > > > >    5 -rwxr-xr-x    1 y34807   Administ     9363 Aug 28 11:29
> > > >
> > > > SConstruct.bak
> > > >
> > > > >    1 -rw-r--r--    1 y34807   Administ        6 Feb  8  2008
> > >
> > > SVN_REVISION
> > >
> > > > >    0 drwxr-xr-x    2 y34807   Administ        0 Aug 11 17:14 debian
> > > > >    0 drwxr-xr-x    4 y34807   Administ        0 Aug 11 17:14 draft
> > > > >    0 drwxr-xr-x    2 y34807   Administ        0 Aug 11 17:14
> > >
> > > example-data
> > >
> > > > >    0 -rw-r--r--    1 y34807   Administ        0 Aug 28 18:18
> > > > > options.cache 0 drwxr-xr-x    4 y34807   Administ        0 Aug 11
> >
> > 17:14
> >
> > > > > resources 0 drwxr-xr-x    5 y34807   Administ        0 Aug 28 18:18
> >
> > src
> >
> > > 0
> > >
> > > > > drwxr-xr-x    2 y34807   Administ        0 Aug 11 17:14 test 0
> > >
> > > drwxr-xr-x
> > >
> > > > >    3 y34807   Administ        0 Aug 11 17:14 vmqt
> > > > >
> > > > > y34807 at Y34807 /mingw/SMSTools-0.4.9 \$ scons
> > > > > scons: Reading SConscript files ...
> > > > > Loading nsis tool...
> > > > > Lodading dmg tool...
> > > > > Version:  0.4.9
> > > > > Package version:  0.4.9
> > > > > IOError: [Errno 2] No such file or directory:
> > > > > '/mingw\\lib\\pkgconfig\\clam_core                  .pc':
> > > > >   File "D:\MinGW\SMSTools-0.4.9\SConstruct", line 78:
> > > > >     ] , CLAMInstallDir)
> > > > >   File "D:\mingw\clam\scons\sconstools\clam.py", line 21:
> > > > >     instream = open( desc_file )
> > > > >   File
> > > > > "D:\Python25\Lib\site-packages\scons-0.98.5\SCons\Platform\win32.p
> > > > > y",
> > >
> > > lin
> > >
> > > > >                e 79:
> > > > >     fp = apply(_builtin_open, args, kw)
> > > > >
> > > > > y34807 at Y34807 /mingw/SMSTools-0.4.9
> > > > >
> > > > >
> > > > > Best Regards,
> > > > > Yang Sujuan(杨素娟)
> > > > >
> > > > > -----Original Message-----
> > > > > From: David García Garzón [mailto:dgarcia at iua.upf.edu]
> > > > > Sent: Saturday, August 30, 2008 5:41 PM
> > > > > To: Yang Sujuan(杨素娟)
> > > > > Cc: clam at iua.upf.edu
> > > > > Subject: Re: 答复: [CLAM] again(just now code errors):problems with
> > >
> > > scons
> > >
> > > > > configure, thks
> > > > >
> > > > > Can you be more specific on the command you issue and the error
> > > > > you get?
> > > > >
> > > > > On Dissabte 30 Agost 2008, Yang Sujuan(杨素娟) wrote:
> > > > > > thank you very much.
> > > > > >
> > > > > > I found that I must begin with scons...
> > > > > >
> > > > > > but now the problems is where to find clam_core? I can not find
> > > > > > all the
> > > > > > clam_* files
> > > > > >
> > > > > > thks:)
> > > > > >
> > > > > > Best Regards,
> > > > > > Yang Sujuan(杨素娟)
> > > > > >
> > > > > > 华为技术有限公司  huawei_logo（Huawei Technologies）
> > > > > >
> > > > > >
> > > > > >
> > > > > > -----Original Message-----
> > > > > > From: David García Garzón [mailto:dgarcia at iua.upf.edu]
> > > > > > Sent: Tuesday, August 19, 2008 7:48 PM
> > > > > > To: Yang Sujuan ("杨素娟")
> > > > > > Cc: clam at iua.upf.edu
> > > > > > Subject: Re: 答复: [CLAM] again(just now code errors):problems
> > > > > > with scons configure, thks
> > > > > >
> > > > > > As far i can understand there was no need to uninstall visual
> >
> > studio.
> >
> > > > > > The error you get is the error that normally SCons issues when
> > > > > > you run scons from the wrong path. You should run it from a
> > > > > > directory containing a file named 'SConstruct'.
> > > > > >
> > > > > > On Tuesday 19 August 2008 08:28:46 Yang Sujuan wrote:
> > > > > > >  Thanks a lot
> > > > > > >
> > > > > > > I've installed mingw already and gcc works well.(According to
> > > > > > > the INSTALL file I installed visual studio but I think scons
> > > > > > > error has no relation with
> > > > > > > c1.exe)
> > > > > > >
> > > > > > > I uninstalled visual studio but scons still reports the same
> >
> > error:
> > > > > > > scons:  *** No SConstruct file found.
> > > > > > > File
> > > > > > > "D:\Python25\Lib\site-packages\scons-0.98.5\SCons\Script\Main.
> > > > > > > py",
> > > > > > > line 817, in_main
> > > > > > >
> > > > > > >
> > > > > > > so, how to next?
> > > > > > >
> > > > > > >
> > > > > > > Best Regards,
> > > > > > > Yang Sujuan(杨素娟)
> > > > > > >
> > > > > > >
> > > > > > > -----邮件原件-----
> > > > > > > 发件人: David García Garzón [mailto:dgarcia at iua.upf.edu]
> > > > > > > 发送时间: 2008年8月18日 23:28
> > > > > > > 收件人: clam at iua.upf.edu
> > > > > > > 抄送: Yang Sujuan ("杨素娟"); clam at iua.upf.edu
> > > > > > > 主题: Re: [CLAM] again(just now code errors):problems with scons
> > > > > > > configure, thks
> > > > > > >
> > > > > > > Visual Studio is not supported anymore. Install mingw.
> > > > > > >
> > > > > > > On Dilluns 18 Agost 2008, Yang Sujuan wrote:
> > > > > > > > Hi,
> > > > > > > >
> > > > > > > > I've checked with INSTALL under CLAM.
> > > > > > > >
> > > > > > > > Command "scons --help" works well. However, other scons
> > > > > > > > commands like "scons configure""scons"can not work. I have
> > > > > > > > "cl.exe" with VC8(Visual studio 2005)
> > > > > > > >
> > > > > > > > who can help to configure the ENV varibles?
> > > > > > > >
> > > > > > > > ps:my env   is Win XP SP2, with visual studio 2005,
>
> CLAM-1.0.0.
>
> > > And
> > >
> > > > > my
> > > > >
> > > > > > > > install directory is:
> > > > > > > >
> > > > > > > >  mingw\CLAM\
> > > > > > > >  mingw\xercesc\
> > > > > > > >  mingw\fftw\
> > > > > > > >  mingw\...
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > Best Regards,
> > > > > > > > Yang Sujuan(杨素娟)
> > > > > > > >
> > > > > > > > 华为技术有限公司  huawei_logo（Huawei Technologies）
> > > > > > > >
> > > > > > > >
> > > > > > > > 地址：深圳市龙岗区坂田华为基地 邮编：518129
> > > > > > > > Add:  Section B, Huawei Industrial Base, Bantian, Longgang,
> > > > > > > > Shenzhen,
> > > > > > > > 518129 P.R.China
> > > > > > > > tel：+86-755-28780808(28787196)/+86-755-13824396653(m)
> > > > > > > > FAX: +86-755-28787435
> > > > > > > > http://www.huawei.com
> > > > > > > >
> > > > > > > >-------------------------------------------------------------
> > > > > > > >-----
> > > > > > > >- --
> > > > > > > >--
> > > > > > > >----
> > > > > > > >- ---------------------------------------------------------
> > > > > > > > 本邮件及其附件含有华为公司的保密信息，仅限于发送给上面地址中列
>
> 出
>
> > 的
> >
> > > 个
> > >
> > > > 人
> > > >
> > > > > 或
> > > > >
> > > > > > 群
> > > > > >
> > > > > > > > 组。禁止任何其他人以任何形式使用（包括但不限于全部或部分地泄
>
> 露、
>
> > 复
> >
> > > > 制、
> > > >
> > > > > 或
> > > > >
> > > > > > 散
> > > > > >
> > > > > > > > 发）本邮件中的信息。如果您错收了本邮件，请您立即电话或邮件通知
>
> 发
>
> > 件
> >
> > > 人
> > >
> > > > 并
> > > >
> > > > > 删
> > > > >
> > > > > > 除
> > > > > >
> > > > > > > 本
> > > > > > >
> > > > > > > > 邮件！
> > > > > > > > This e-mail and its attachments contain confidential
> > > > > > > >information from HUAWEI, which is intended only for the
> > > > > > > >person or entity whose address is  listed above. Any use of
> > > > > > > >the information contained herein in any way  (including, but
> > > > > > > >not limited to, total or  partial disclosure, reproduction,
> > > > > > > >or dissemination) by persons  other than the intended
> > > > > > > >recipient(s) is  prohibited. If you receive this e-mail in
> > > > > > > >error, please notify the sender  by phone or email
> > > > > > > >immediately and delete
> > > >
> > > > it!
> > > >
> > > > > > > --
> > > > > > > David García Garzón
> > > > > > > (Work) dgarcia at iua dot upf anotherdot es
> > > > > > > http://www.iua.upf.edu/~dgarcia
> > > > >
> > > > > --
> > > > > David García Garzón
> > > > > (Work) dgarcia at iua dot upf anotherdot es
> > > >
> > > > http://www.iua.upf.edu/~dgarcia
> >
> > --
> > David García Garzón
> > (Work) dgarcia at iua dot upf anotherdot es
>
> http://www.iua.upf.edu/~dgarcia

--
David García Garzón
(Work) dgarcia at iua dot upf anotherdot es
http://www.iua.upf.edu/~dgarcia