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

David García Garzón dgarcia at iua.upf.edu
Mon Sep 1 04:25:36 PDT 2008


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\local\bi
>
> >n
>
> ;d:\MinGW\bin;D:\MSYS\1.0\bin;c:\WINDOWS\system32;c:\WINDOWS;c:\WINDOWS\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.py",
>
> 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.clam-project.org/pipermail/clam-users-clam-project.org/attachments/20080901/c8587a0d/attachment-0001.sig>


More information about the clam-users mailing list