[Clam-devel] Re: clam 0.98 src and suse packages (was Re: [linux-audio-dev] Re: linux-audio-dev Digest, Vol 41, Issue 8)

Fernando Lopez-Lezcano nando at ccrma.Stanford.EDU
Thu Feb 22 10:02:38 PST 2007


On Thu, 2007-02-22 at 18:54 +0100, David García Garzón wrote:
> We did a commit for the NetworkEditor to use the QTDIR when available. In 
> FedoraCore you should define QTDIR=/usr

Do you also use QTINC? Because that seems to be part of the problem in
this case (ie: includes are in /usr/include/Qt, not /usr/qt4/include)

> We also removed the use of cppunit since it is not needed for NetworkEditor.

ok

> We also found some other build dependencies, gcc-c++ and qt4-devel (for the 
> network editor and the annotator). The symptom for gcc-c++ dependency failure 
> is very strange, it complaints about pthreads. We should take a look at the 
> modconf setting.

I had already added those (c++ is implicit in a normal Fedora build
system). I think there are missing includes for some of the build
targets you have... I'll take a more detailed look later today. 

-- Fernando


> On Thursday 22 February 2007 01:52:40 Fernando Lopez-Lezcano wrote:
> > On Wed, 2007-02-21 at 15:38 -0800, Fernando Lopez-Lezcano wrote:
> > > On Wed, 2007-02-21 at 22:42 +0100, David García Garzón wrote:
> > > > On Dimecres 21 Febrer 2007, Fernando Lopez-Lezcano wrote:
> > > > > Sorry, I just realized I ommited the main clam spec file... here it
> > > > > goes
> > > > >
> > > > > > (I'm just starting to try to build 0.99 packages).
> > > > >
> > > > > I'm hitting a problem with networkeditor (trying to build on fc6)...
> > > > >
> > > > > /usr/bin/moc-qt4 -I/usr/include/qt4 -o
> > > > > src/clamWidgetsPlugin/generated/moc_KeySpacePlugin.cxx
> > > > > src/clamWidgetsPlugin/KeySpacePlugin.hxx
> > > > > src/clamWidgetsPlugin/KeySpacePlugin.hxx:33: Error: Undefined
> > > > > interface scons: ***
> > > > > [src/clamWidgetsPlugin/generated/moc_KeySpacePlugin.cxx] Error 1
> > > > > scons: building terminated because of errors.
> > > > >
> > > > > (qt4 is version 4.2.2)
> > > > > Is there some build dependency I'm missing?
> > > >
> > > > Moc error is quite ofuscated. When i got this error the reason was that
> > > > moc is missing some include path. And normally the one that is missing
> > > > is Qt one. I suppose that the patch i did for linux
> > > > (NetworkEditor/SConstruct:167) doesn't work for all linux but just for
> > > > debian based linux.
> > > >
> > > > I suppose that for RH to be something similar to the version i wrote
> > > > for Mac.
> > >
> > > Ok, I'll take a look around and see what I can find out...
> >
> > This is how far I got...
> >
> > SConstruct hardwires /usr/include/qt4 as an include path, I started by
> > replacing it with /usr/include/Qt as that is where the qt4 fc6 package
> > installs the includes. I first tried setting QTINC but that is ignored.
> >
> > But I still get the error.
> >
> > The call that fails is:
> > /usr/bin/moc-qt4 -I/usr/include/Qt -o
> > src/clamWidgetsPlugin/generated/moc_KeySpacePlugin.cxx
> > src/clamWidgetsPlugin/KeySpacePlugin.hxx
> > src/clamWidgetsPlugin/KeySpacePlugin.hxx:33: Error: Undefined interface
> >
> > But right before other compile calls have a lot more includes, for
> > example:
> >
> > g++ -DCLAM_FLOAT -DUSE_PTHREADS=1 -DUSE_XMLPP_TRUE -DCLAM_USE_XML
> > -DUSE_LADSPA=1 -DUSE_FFTW=1 -DUSE_SNDFILE=1 -DUSE_OGGVORBIS=1
> > -DUSE_MAD=1 -DUSE_ID3=1 -DUSE_ALSA=1 -DUSE_JACK=1 -DWITH_MAD=1
> > -DWITH_VORBIS=1 -DQT_SHARED -g -O3 -Wall -fPIC -DQT_GUI_LIB
> > -DDATA_EXAMPLES_PATH="\"/usr/share/networkeditor/example-data\""
> > -DQT_PLUGIN -DQT_NO_DEBUG -DQT_CORE_LIB -DQT_OPENGL_LIB -DQT_XML_LIB
> > -DQDESIGNER_EXPORT_WIDGETS -D_REENTRANT -I/usr/include
> > -I//var/tmp/clam-0.99.0-1.fc6.ccrma-root-machbuild/usr/include
> > -I/usr/include -I/usr/local/include -I/usr/include/libxml++-2.6
> > -I/usr/include/libxml2 -I/usr/include/glibmm-2.4
> > -I/usr/lib/glibmm-2.4/include -I/usr/include/sigc++-2.0 -I/usr/lib/sigc
> > ++-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
> > -I/usr/include/qt4 -I/usr/include/qt4/QtUiTools -I/usr/include/QtCore
> > -I/usr/include/QtGui -I/usr/include/QtOpenGL -I/usr/include/QtXml -Isrc
> > -Isrc/generated -Isrc/processing -Isrc/prototyper -Isrc/chordWidgets
> > -Isrc/chordWidgets/generated -Isrc/clamWidgetsPlugins
> > -Isrc/clamWidgetsPlugins/generated -I/usr/include -I/usr/include/CLAM
> > -Isrc/clamWidgetsPlugin -Isrc/clamWidgetsPlugin/generated -c -o
> > src/generated/qrc_images.os src/generated/qrc_images.cxx
> >
> > If I add the last part to the previous failing line it succeeds. This
> > call works:
> >
> > /usr/bin/moc-qt4 -I/usr/include/Qt  -I/usr/include/qt4/QtUiTools
> > -I/usr/include/QtCore -I/usr/include/QtGui -I/usr/include/QtOpenGL
> > -I/usr/include/QtXml -Isrc -Isrc/generated -Isrc/processing
> > -Isrc/prototyper -Isrc/chordWidgets -Isrc/chordWidgets/generated
> > -Isrc/clamWidgetsPlugins -Isrc/clamWidgetsPlugins/generated
> > -I/usr/include -I/usr/include/CLAM -Isrc/clamWidgetsPlugin
> > -Isrc/clamWidgetsPlugin/generated -o
> > src/clamWidgetsPlugin/generated/moc_KeySpacePlugin.cxx
> > src/clamWidgetsPlugin/KeySpacePlugin.hxx
> >
> > So something in the build system is not adding the proper includes. What
> > is it I'm not yet sure.






More information about the clam-devel mailing list