[CLAM] cannot compitle networkeditor from source (svn) os x 10.4.11

Juan Vesa juan.vesa at gmail.com
Fri Jul 18 16:23:27 PDT 2008


hi all,

the qt4 binary i downloaded from the website (trolltech.com) says it  
defaults to install it as a framework in /usr/local, as i can see it  
does. i just built it with the defaults it gave in the INSTALL file  
in the zip, which is to build as a framework in /usr/local. actually  
i get a similar error but with a different library when i try the  
sconstruct file from the wiki and building the simplenetwok example  
from the wiki i guess it is something from my system, but i can't  
think what (i'm not too experienced in these matters as you can  
tell). i have a QtCore.la and a QtGui.la in $QTDIR/lib. i didn't get  
qt4 from wget like the wiki said i just got it from the trolltech  
website, i guess it's something in the way i built and installed it.  
i'll try to get qt4 from macports next week when back at uni next  
week as my bandwidth at home is a little restricted.

thanks again for all your help.

On 17/07/2008, at 9:25 PM, David García Garzón wrote:

> That's a linker error so we got it further :-)
>
> Just check the contents of /usr/local/Trolltech/Qt-4.4.0/lib so  
> that it
> contains the requested library QtCore.
>
> The error suggest me that the Qt binaries you are using might need  
> compilation
> as 'frameworks' not as libs which was something we supported by the  
> qt4.py
> tool but we might have removed support as we moved to qt4 macports or
> something similar. I dont really remember as i told you I am not  
> the mac guy
> here. Pau or any other mac user over there should tell you. The  
> wiki for me
> is not clear but i don't fully understand the terms in there.
>
>
>
> On Dijous 17 Juliol 2008, Juan Vesa wrote:
>> hi david/clam list,
>>
>> the symbolic link works kind of but the compilation eventually stops
>> at the errors below (scroll to bottom to see):
>> and when i change the lines in qt4.py which you said, and after
>> recompiling clam, i get much the same error which ends thus:
>>
>> src/generated/moc_ControlPrinterWidget.o -L/usr/local/Trolltech/
>> Qt-4.4.0/lib -L/usr/local/lib -L/usr/local/Trolltech/Qt-4.4.0/lib -
>> lclam_core -lclam_audioio -lclam_processing -lQtCore -lQtGui -
>> lQtOpenGL -lQtXml -lQtSvg -lQtUiTools -lQtDesigner
>> /usr/bin/ld: can't locate file for: -lQtCore
>> collect2: ld returned 1 exit status
>> scons: *** [NetworkEditor] Error 1
>> scons: building terminated because of errors.
>>
>> error output from scons install with the symlink set (i.e. ln -s
>> $QTDIR/include $QTDIR/include/qt4
>>
>>   src/generated/moc_ControlPrinterWidget.o -L/usr/local/Trolltech/
>> Qt-4.4.0/lib -L/usr/local/lib -L/usr/local/Trolltech/Qt-4.4.0/lib -
>> lclam_core -lclam_audioio -lclam_processing -lQtCore -lQtGui -
>> lQtOpenGL -lQtXml -lQtSvg -lQtUiTools -lQtDesigner
>> /usr/bin/ld: can't locate file for: -lQtCore
>> collect2: ld returned 1 exit status
>> scons: *** [NetworkEditor] Error 1
>> scons: building terminated because of errors.
>>
>> On 16/07/2008, at 9:33 PM, David García Garzón wrote:
>>> Um, this seems related to using macports or not, or installing
>>> native or X11
>>> version of Qt. But i am not the Mac specialist and for me it is not
>>> clear
>>> from the wiki which is the one to install: it talks about
>>> installing a binary
>>> dmg, then the source and the macports.
>>>
>>> Maybe Pau knows.
>>>
>>> It would be nice it it works out of the box but meanwhile here  
>>> are two
>>> possible hacks:
>>>
>>> * ln -s $QTDIR/include $QTDIR/include/qt4
>>>
>>> * Uncomment lines 498 and 499 and comment out 501 and 502 of
>>> clam/CLAM/scons/sconstools/qt4.py and 'scons install' clam.
>>>
>>> On Dimecres 16 Juliol 2008, Juan Vesa wrote:
>>>> hi david/clam list,
>>>>
>>>> so, i'm trying to install this again, the binary downloads and  
>>>> opens
>>>> ok. it seems the binary is ok although i haven't tried to do  
>>>> anything
>>>> with it yet. but i still get the same errors when trying to compile
>>>> the source. i downloaded and installed a fresh clam source which
>>>> installed and compiled without error, but when i try and install  
>>>> the
>>>> network editor from source i still get the same errors.
>>>>
>>>> my platform is os x intel macbook pro tiger 10.4.11
>>>>
>>>> on the scons install output it looks to include files in the  
>>>> $QTDIR/
>>>> include/qt4/.... directory, but there is no directory in $QTDIR/
>>>> include named qt4....
>>>>
>>>> juan-vesas-computer:~ plantiginate$ ls $QTDIR/include
>>>> Qt              QtDBus          QtNetwork       QtSvg            
>>>> QtXml
>>>> Qt3Support      QtDesigner      QtOpenGL        QtTest
>>>> QtXmlPatterns
>>>> QtAssistant     QtGui           QtScript        QtUiTools
>>>> phonon
>>>> QtCore          QtHelp          QtSql           QtWebKit
>>>>
>>>> so i guess the qt4 is not meant to be there but i'm quite clueless
>>>> when it comes to scons and the sconstruct files, where does it
>>>> specify where to look for includes? does this happen to other  
>>>> people
>>>> or do i have an unusual setup?
>>>>
>>>> thanks again and regards,
>>>>
>>>> l
>>>> ======================
>>>> output:
>>>> juan-vesas-computer:~/musicapps/clam/trunk/networkeditor  
>>>> plantiginate
>>>> $ scons install prefix=/usr/local clam_prefix=/usr/local
>>>> scons: Reading SConscript files ...
>>>> Loading nsis tool...
>>>> Loading Bundle tool
>>>> Lodading dmg tool...
>>>> Version:  1.2.1
>>>> Package version:  1.2.1~svn11608
>>>> scons: done reading SConscript files.
>>>> scons: Building targets ...
>>>> g++ -o src/main.o -c -g -O3 -Wall -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_OGGVORBIS=1 -DWITH_VORBIS=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/opt/local/include -I/usr/local/Trolltech/
>>>> Qt-4.4.0/include/qt4 -I/usr/local/Trolltech/Qt-4.4.0/include/qt4/
>>>> QtCore -I/usr/local/Trolltech/Qt-4.4.0/include/qt4/QtGui -I/usr/
>>>> local/
>>>> Trolltech/Qt-4.4.0/include/qt4/QtOpenGL -I/usr/local/Trolltech/
>>>> Qt-4.4.0/include/qt4/QtXml -I/usr/local/Trolltech/Qt-4.4.0/include/
>>>> qt4/QtSvg -I/usr/local/Trolltech/Qt-4.4.0/include/qt4/QtUiTools -I/
>>>> usr/local/Trolltech/Qt-4.4.0/include/qt4/QtDesigner -Isrc -Isrc/
>>>> jack -
>>>> Isrc/generated -Isrc/processing -Isrc/prototyper -Isrc/monitors -
>>>> Isrc/
>>>> monitors/generated -Isrc/widgets -Isrc/widgets/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
>>>> src/main.cxx:24:26: error: QtCore/QLocale: No such file or  
>>>> directory
>>>> In file included from src/MainWindow.hxx:1,
>>>>                   from src/main.cxx:26:
>>>> src/generated/uic_MainWindow.hxx:13:27: error: QtCore/QVariant: No
>>>> such file or directory
>>>> src/generated/uic_MainWindow.hxx:14:25: error: QtGui/QAction: No  
>>>> such
>>>> file or directory
>>>> src/generated/uic_MainWindow.hxx:16:30: error: QtGui/ 
>>>> QButtonGroup: No
>>>> such file or directory
>>>> src/generated/uic_MainWindow.hxx:17:29: error: QtGui/ 
>>>> QHBoxLayout: No
>>>> such file or directory
>>>> src/generated/uic_MainWindow.hxx:18:29: error: QtGui/ 
>>>> QMainWindow: No
>>>> such file or directo
>>>>
>>>> etc...etc.......
>>>>
>>>> On 11/07/2008, at 8:17 PM, David García Garzón wrote:
>>>>> Your are specifiying the wrong option:
>>>>>
>>>>> $ scons install clam+path=$CLAM_PATH
>>>>> should be:
>>>>> $ scons install clam_path=$CLAM_PATH
>>>>>
>>>>> It is weird that, with such an option badly set, scons doesn't
>>>>> complaint about
>>>>> not finding qt4.py tool.
>>>>>
>>>>> If you get further problems, please specify your platform. It has
>>>>> been hard to
>>>>> figure out that you are on Mac. I think you have last stable
>>>>> version binaries
>>>>> available for your platform on the dowload section of the web.  
>>>>> Have
>>>>> you tried
>>>>> them?
>>>>>
>>>>> On Divendres 11 Juliol 2008, Juan Vesa wrote:
>>>>>> Hello,
>>>>>> I'm trying to compile the various clam apps + source from an svn
>>>>>> checkout for the fisrt time. i have managed to compile the  
>>>>>> smstools
>>>>>> example with qt3, but i cannot get networkeditor to compile. i  
>>>>>> have
>>>>>> qt-4.4.0 installed via source downloaded from their website, and
>>>>>> have
>>>>>> it installed and QTDIR set to:
>>>>>>
>>>>>> juan-vesas-computer:~ plantiginate$ echo $QTDIR
>>>>>> /usr/local/Trolltech/Qt-4.4.0
>>>>>>
>>>>>> and $CLAM_PATH set to /usr/local. also my evironment $PATH is
>>>>>> set as
>>>>>> thus:
>>>>>>
>>>>>> /sw/bin:/sw/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/opt/local/sbin:/
>>>>>> opt/
>>>>>> local/bin:/usr/local/bin:/Users/plantaginate/musicapps/sc3/
>>>>>> supercollider3:/Users/plantaginate/musicapps/sc3/supercollider3/
>>>>>> build:/volumes/macinstosh\ hd/sw/bin:/volumes/macintosh\ hd/ 
>>>>>> users/
>>>>>> plantiginate/apps/rar:/System/Library/Frameworks/ 
>>>>>> Python.framework/
>>>>>> Versions/2.3/bin/:~/apps/fslogger:/usr/local/Trolltech/Qt-4.4.0/
>>>>>> bin:/
>>>>>> usr/X11R6/bin
>>>>>>
>>>>>> however i get the following errors (actually a whole bunch of  
>>>>>> "file
>>>>>> not found" errors associated with qt4). i remember once when i
>>>>>> compiled the example i got an error saying i needded qt-4.3.8
>>>>>> but was
>>>>>> unable to reproduce the error. can anyone please help me resolve
>>>>>> this
>>>>>> compilation issue?
>>>>>>
>>>>>> regards,
>>>>>> juan.
>>>>>>
>>>>>> juan-vesas-computer:~/musicapps/clam/trunk/networkeditor
>>>>>> plantiginate
>>>>>> $ scons install clam+path=$CLAM_PATH
>>>>>> scons: Reading SConscript files ...
>>>>>> Loading nsis tool...
>>>>>> Loading Bundle tool
>>>>>> Lodading dmg tool...
>>>>>> Version:  1.2.1
>>>>>> Package version:  1.2.1~svn11552
>>>>>> scons: done reading SConscript files.
>>>>>> scons: Building targets ...
>>>>>> g++ -o src/main.o -c -g -O3 -Wall -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_OGGVORBIS=1 -DWITH_VORBIS=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/opt/local/include -I/usr/local/Trolltech/
>>>>>> Qt-4.4.0/include/qt4 -I/usr/local/Trolltech/Qt-4.4.0/include/qt4/
>>>>>> QtCore -I/usr/local/Trolltech/Qt-4.4.0/include/qt4/QtGui -I/usr/
>>>>>> local/
>>>>>> Trolltech/Qt-4.4.0/include/qt4/QtOpenGL -I/usr/local/Trolltech/
>>>>>> Qt-4.4.0/include/qt4/QtXml -I/usr/local/Trolltech/Qt-4.4.0/ 
>>>>>> include/
>>>>>> qt4/QtSvg -I/usr/local/Trolltech/Qt-4.4.0/include/qt4/ 
>>>>>> QtUiTools -I/
>>>>>> usr/local/Trolltech/Qt-4.4.0/include/qt4/QtDesigner -Isrc -Isrc/
>>>>>> jack -
>>>>>> Isrc/generated -Isrc/processing -Isrc/processing/SampleBySample -
>>>>>> Isrc/
>>>>>> prototyper -Isrc/monitors -Isrc/monitors/generated -Isrc/ 
>>>>>> widgets -
>>>>>> Isrc/widgets/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
>>>>>>
>>>>>> _______________________________________________
>>>>>> CLAM mailing list
>>>>>> CLAM at iua.upf.es
>>>>>> http://clam.iua.upf.edu
>>>>>
>>>>> --
>>>>> David García Garzón
>>>>> (Work) dgarcia at iua dot upf anotherdot es
>>>>> http://www.iua.upf.edu/~dgarcia
>>>>
>>>> _______________________________________________
>>>> CLAM mailing list
>>>> CLAM at iua.upf.es
>>>> http://clam.iua.upf.edu
>>>
>>> --
>>> David García Garzón
>>> (Work) dgarcia at iua dot upf anotherdot es
>>> http://www.iua.upf.edu/~dgarcia
>>
>> _______________________________________________
>> CLAM mailing list
>> CLAM at iua.upf.es
>> http://clam.iua.upf.edu
>
>
>
> -- 
> David García Garzón
> (Work) dgarcia at iua dot upf anotherdot es
> http://www.iua.upf.edu/~dgarcia





More information about the clam-users mailing list