[Clam-devel] Problem compiling the network editor
yushen.han at gmail.com
Mon Apr 7 15:27:26 PDT 2008
Hi, Greg and Pau
I encountered this problem too when I was trying to install it on my
Mac OS 10.5.2.
I am not sure if you use Mac as well, my way to pass the compiling is to
(1) Install Qt4 (it has a .dmg file available for Mac)
(2) find out the path of your Qt4
You could simply do something like "locate qt4".
(3) do "export QTDIR=... " before you scons.
In my case, CLAM was fine in installation but the Network Editor had
trouble in finding Qt4.
(I did the installation by both port and .dmg. I don't really know if
that makes a difference.)
On Mon, Apr 7, 2008 at 4:46 PM, Pau Arumí <parumi at iua.upf.edu> wrote:
> On dl, 2008-04-07 at 22:37 +0200, Greg Kellum wrote:
> > Hi all,
> > I was trying to build and install the NetworkEditor from scratch
> > tonight, and I had a problem compiling it. It complained that it
> > couldn't find certain Qt header files even though it included the
> > correct paths to the Qt directories in its compile statement. I'm
> > sure I've done something stupid here, but I'm not sure what... Does
> > this error look familiar to anyone?
> > Best,
> > Greg
> > mare:NetworkEditor greg$ scons prefix=/usr/local/
> > clam_prefix=/usr/local/ verbose=true
> > scons: Reading SConscript files ...
> > Loading nsis tool...
> > Loading Bundle tool
> > Lodading dmg tool...
> > Version: 1.2.1
> > Package version: 1.2.1~svn11289
> > scons: done reading SConscript files.
> > scons: Building targets ...
> > g++ -o src/main.o -c -DQT_PLUGIN -DQT_NO_DEBUG -DQT_CORE_LIB
> > -DQT_GUI_LIB -DQT_OPENGL_LIB -DQT_XML_LIB -DQDESIGNER_EXPORT_WIDGETS
> > -D_REENTRANT -DCLAM_FLOAT -D_DEBUG -DUSE_PTHREADS=1 -DUSE_XERCES=1
> > -DCLAM_USE_XML -DUSE_SNDFILE=1 -DUSE_MAD=1 -DWITH_MAD=1 -DUSE_ID3=1
> > -DUSE_PORTAUDIO=1 -D__MACOSX_CORE__ -DUSE_RTAUDIO=1 -DUSE_FFTW3=1
> > -DQT_CORE_LIB -DQT_GUI_LIB -DQT_OPENGL_LIB -DQT_XML_LIB -DQT_SVG_LIB
> > -I/usr/local/include -I/usr/local/include -I/opt/local/include
> > -I/usr/local/Trolltech/Qt-4.2.2/include/qt4
> > -I/usr/local/Trolltech/Qt-4.2.2/include/qt4/QtCore
> > -I/usr/local/Trolltech/Qt-4.2.2/include/qt4/QtGui
> > -I/usr/local/Trolltech/Qt-4.2.2/include/qt4/QtOpenGL
> > -I/usr/local/Trolltech/Qt-4.2.2/include/qt4/QtXml
> > -I/usr/local/Trolltech/Qt-4.2.2/include/qt4/QtSvg
> > -I/usr/local/Trolltech/Qt-4.2.2/include/qt4/QtUiTools
> > -I/usr/local/Trolltech/Qt-4.2.2/include/qt4/QtDesigner -Isrc
> > -Isrc/generated -Isrc/processing -Isrc/processing/SampleBySample
> > -Isrc/prototyper -Isrc/monitors -Isrc/monitors/generated
> > -Isrc/clamWidgetsPlugins -Isrc/clamWidgetsPlugins/generated
> > -I/usr/local/include -I/usr/local/include/CLAM -Isrc/clamWidgetsPlugin
> > -Isrc/clamWidgetsPlugin/generated src/main.cxx
> > src/main.cxx:22:30: error: QtGui/QApplication: No such file or directory
> > src/main.cxx:23:30: error: QtCore/QTranslator: No such file or directory
> > ... and so on...
> Yes, it seems absolutely strange.
> I'd try to compile a minimal cxx that includes QApplication.
> (In my Mac i use ports qt4 which installs in /opt but this doesn't seem
> relevant because you includes looks good)
> Clam-devel mailing list
> Clam-devel at llistes.projectes.lafarga.org
More information about the clam-devel