[Clam-devel] Can't find the Flags!

Pau Arumi parumi at iua.upf.edu
Fri Apr 27 08:11:15 PDT 2007


En/na Eichler, Bruno ha escrit:
> Hi CLAM!
> 
> I trying to compile CLAM with ming32...
> I allready compiled the libaries: 	- fltk
> 						- xercesc
> 						- fftw
> 						- libsndfile
> 						- portaudio
> 						- pthreads (I used msys
> from mingw for building of every libary pthread was different
> 								but it
> shows the compiled .dll .a so i copied them in the folder to the 
> 								other
> libs)

Hi Bruno,

i hope you are keeping track of all the steps you are doing
because we are interested to support mingw. Why don't you write
it in this wiki page (still empty). When you're done we'll try to
reproduce it and polish things if necessary.
http://clam.iua.upf.edu/wikis/clam/index.php?title=Devel/Windows_MinGW_build



> But i got still the same Erorr -->
> ------------------------------------------------------------------------
> -----------------------------------------------------
> D:\home\CLAMmingw\scons\libs>scons configure
> scons: Reading SConscript files ...
> Version:  1.0.0
> Package version:  1.0.0
> ############################################
> ### CLAM GLOBAL DEPENDENCIES CHECKING    ###
> ############################################
> include path: D:\home\CLAMmingw\windows-external-libs\fltk\include
> lib path: D:\home\CLAMmingw\windows-external-libs\fltk\lib
> include path: D:\home\CLAMmingw\windows-external-libs\xercesc\include
> lib path: D:\home\CLAMmingw\windows-external-libs\xercesc\lib
> include path: D:\home\CLAMmingw\windows-external-libs\fftw\include
> lib path: D:\home\CLAMmingw\windows-external-libs\fftw\lib
> include path: D:\home\CLAMmingw\windows-external-libs\dxsdk\include
> lib path: D:\home\CLAMmingw\windows-external-libs\dxsdk\lib
> include path: D:\home\CLAMmingw\windows-external-libs\libsndfile\include
> lib path: D:\home\CLAMmingw\windows-external-libs\libsndfile\lib
> include path: D:\home\CLAMmingw\windows-external-libs\portaudio\include
> lib path: D:\home\CLAMmingw\windows-external-libs\portaudio\lib
> include path: D:\home\CLAMmingw\windows-external-libs\pthreads\include
> lib path: D:\home\CLAMmingw\windows-external-libs\pthreads\lib
> adding include dir from windows config:
> include before pthread checking: $QTDIR\include
> include before pthread checking:
> D:\home\CLAMmingw\windows-external-libs\fltk\include
> include before pthread checking:
> D:\home\CLAMmingw\windows-external-libs\xercesc\include
> include before pthread checking:
> D:\home\CLAMmingw\windows-external-libs\fftw\include
> include before pthread checking:
> D:\home\CLAMmingw\windows-external-libs\dxsdk\include
> include before pthread checking:
> D:\home\CLAMmingw\windows-external-libs\libsndfile\include
> include before pthread checking:
> D:\home\CLAMmingw\windows-external-libs\portaudio\include
> include before pthread checking:
> D:\home\CLAMmingw\windows-external-libs\pthreads\include
> Checking for C header file pthread.h... no
> Could not find pthread (Posix Threads) library headers!
> D:\home\CLAMmingw\scons\libs>
> ------------------------------------------------------------------------
> -----------------------------------------------------
> 
> I searched in Sconstruct...
> In line 63 you say # if flags is not defined it will crash while loading
> flags.conf
> Where can I find this conf?

There are 5 such files:

~/clam/CLAM$ find | grep flags.conf
./scons/libs/flags.conf
./scons/libs/vmqt/flags.conf
./scons/libs/core/flags.conf
./scons/libs/audioio/flags.conf
./scons/libs/processing/flags.conf

However, when you get stuck it's better to send the last part of 
CLAM/config.log

> The next problem is that I want to compile with mingw32 and not cl.exe
> where/how can a fixed that?

In theory scons uses mingw compiler when it does not find cl.exe. 
  Since I guess you have cl.exe installed you should modify 
SConstruct to force so using the mingw tool. I'd try modifying 
SConstruct line 233 like this:

clam_env = Environment( ENV=os.environ, tools=['default', 'mingw'])

See the scons manual to learn how it works: 
http://www.scons.org/doc/0.96.1/HTML/scons-man.html

> Thank you a lot for your support!

Good luck!

Pau




More information about the clam-devel mailing list