Hello All,

I would like to compile a stand alone application using CLAM library on Ubuntu 
8.10. CLAM library and tools were installed by apt-get. There are some 
approaches I followed but have some header file problem though I am not 
familiar with scons. Since it is recommended by document, I am using it.

1. copied an example file from CLAM source code:
 
FileInfo_example.cxx 

2. rename it to 
main.cxx

3. copy the minimal Sconstruct file from wiki
http://clam-project.org/wiki/Minimal_SConstruct_to_build_with_CLAM_and_Qt4

then I type 

scons clam_prefix=/usr

(in ubuntu clam seems to be installed at /usr/include and /usr/lib)

It seems scons didnot sort the head file links for CLAM, we have error:
.............
g++ -o main.o -c -g -O3 -Wall -DQT_CORE_LIB -DQT_GUI_LIB -DQT_SHARED 
-DCLAM_FLOAT -DUSE_PTHREADS=1 -DUSE_XERCES=1 -DCLAM_USE_XML -DUSE_LADSPA=1 
-DUSE_SNDFILE=1 -DUSE_OGGVORBIS=1 -DWITH_VORBIS=1 -DUSE_MAD=1 -DWITH_MAD=1 
-DUSE_ID3=1 -DUSE_ALSA=1 -DUSE_JACK=1 -DUSE_PORTAUDIO=1 -DUSE_FFTW3=1 
-I/usr/include/qt4 -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui 
-I/usr/local/include -I/usr/include/alsa main.cxx
main.cxx:29:25: error: AudioFile.hxx: No such file or directory
main.cxx: In function ‘int main(int, char**)’:

But the /usr/include/CLAM/AudioFile.hxx is in my machine. And from the output 
it seems the scons did not add "-I/usr/include/CLAM". So I am confused, do we 
need to customise the sconstruct file from the wiki?

Any help will be appreciated!

regards

Yonghao



_______________________________________________
CLAM mailing list
[email protected]
http://clam.iua.upf.edu

Reply via email to