Re: compile stand alone application using CLAM library
David García Garzón <dgarcia@...
2009-06-30 15:52:55 GMT
Yeep, you are rigth. The real problem is on the example. That header should be
included as <CLAM/AudioFile.hxx> which is the suggested include style for
applications using CLAM. Although the costumization you did should work.
We should update all the examples to use that convention so that when somebody
thake them out to their projects they still work.
On Tuesday 30 June 2009 17:25:39 Leo Wang wrote:
> 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
> 1. copied an example file from CLAM source code:
> 2. rename it to
> 3. copy the minimal Sconstruct file from wiki
> 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!