Error while compiling ROOT on mac os 10.7

Dear all,

I trying to compile ROOT with Qt on mac os 10.7 (gcc 4.2.1).
Here the configuration I used
./configure --enable-qt --with-qt-incdir=/usr/local/Trolltech/Qt-4.7.4//include --with-qt-libdir=/usr/local/Trolltech/Qt-4.7.4/lib
When I type make I have this error :

clang++ -dynamiclib -single_module -Wl,-dead_strip_dylibs -install_name @rpath/ -O2 -m64 -mmacosx-version-min=10.7 -o lib/ graf2d/qt/src/GQtGUI.o graf2d/qt/src/TGQt.o graf2d/qt/src/TGQtDummy.o graf2d/qt/src/TQMimeTypes.o graf2d/qt/src/TQtApplication.o graf2d/qt/src/TQtBrush.o graf2d/qt/src/TQtClientFilter.o graf2d/qt/src/TQtClientGuard.o graf2d/qt/src/TQtClientWidget.o graf2d/qt/src/TQtEvent.o graf2d/qt/src/TQtEventQueue.o graf2d/qt/src/TQtMarker.o graf2d/qt/src/TQtPadFont.o graf2d/qt/src/TQtPen.o graf2d/qt/src/TQtRootApplication.o graf2d/qt/src/TQtRootSlot.o graf2d/qt/src/TQtSymbolCodec.o graf2d/qt/src/TQtTimer.o graf2d/qt/src/TQtWidget.o graf2d/qt/src/moc_TQtWidget.o graf2d/qt/src/moc_TQtEmitter.o graf2d/qt/src/moc_TQtClientFilter.o graf2d/qt/src/moc_TQtClientGuard.o graf2d/qt/src/moc_TQtClientWidget.o graf2d/qt/src/moc_TQtTimer.o graf2d/qt/src/moc_TQtRootSlot.o graf2d/qt/src/G__GQt.o -ldl -Llib -lGui -lGpad -lGraf -lRint -Llib -lCore -lCint
Undefined symbols for architecture x86_64:
“QString::fromLatin1_helper(char const*, int)”, referenced from:
TGQt::QtColor(unsigned long) in GQtGUI.o

Can someone help me ?
By advance thank you


I found the problem =D>

When I configure using this command:
./configure --enable-qt --with-qt-incdir=/usr/local/Trolltech/Qt-4.7.4/include --with-qt-libdir=/usr/local/Trolltech/Qt-4.7.4/lib/

I had those warning

Checking for libQtCore, QtCore, QtCore4, or QtCore4 … no
Checking for libQtGui, QtGui, QtGui4, or QtGui4 … no
Checking for libQt3Support, Qt3Support, Qt3Support4, or Qt3Support4 … no
Checking for libQtOpenGL, QtOpenGL, QtOpenGL4, or QtOpenGL4 … no
Checking for libQtSvg, QtSvg, QtSvg4, or QtSvg4 … no
Checking for libQtXml, QtXml, QtXml4, or QtXml4 … no

not all the Qt libs was presents on my folder: /usr/local/Trolltech/Qt-4.7.4/lib/
Other libs was presents in encapsulated Framework /Library/Frameworks/Qt*.framework
So I made links with all the missing libs.
For example for QtNetwork

ln -fs /Library/Frameworks/QtNetwork.framework/QtNetwork /usr/local/Trolltech/Qt-4.7.4/lib/QtNetwork

I reran the configure and make
Everything is fine now