ROOT 6 Compilation fails (QT)

Dear all

I am trying since sometime to compile ROOT with qt support without success. Just to explain the situation:

I have compiled QT from source and tried both with versions 4.8.6 and 5.3.1 (with version 5 root does not find it since there is no Qt/qglobal.h but only QtCore/qglobal.h)

I downloaded root 6 from git:

git clone root.cern.ch/git/root.git root-v6-00
cd root-v6-00
git checkout -b v6-00-01 v6-00-01

and tried to compile it but I get an error :

[code]Undefined symbols for architecture x86_64:
“qt_message_output(QtMsgType, char const*)”, referenced from:
QDebug::~QDebug() in GQtGUI.o
QDebug::~QDebug() in TGQt.o
QDebug::~QDebug() in TQtApplication.o
QDebug::~QDebug() in TQtClientFilter.o
QDebug::~QDebug() in TQtClientWidget.o
QDebug::~QDebug() in TQtPadFont.o
QDebug::~QDebug() in TQtWidget.o

ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [lib/libGQt.so] Error 1
make: *** Waiting for unfinished jobs…
[/code]

Does anyone has any idea ?

I am using a Mac OS 10.9 with XCode 5.1.1

Thanks,
George

Please check : sourceforge.net/p/qtroot/wiki/Home/

Hi Valeri

Thanks for the mail but once again IT DOES NOT COMPILE. It’s already a lot of time that this is not working.

I tried all possible combinations. ROOT with qt or disabled. Both root 5.34 and root 6. Both Qt 4.8 and Qt 5.3 precompiled or compiled from source.

QtRoot doesn’t compile…

Here is the error:

cd qt/ && /Users/gio/Software/Qt48/bin/qmake /Users/gio/Software/QtRoot/qtRoot/qt/qt.pro -spec ../../../Qt48/mkspecs/macx-g++ -o Makefile
Project MESSAGE: PLEASE make the symbolic link (ln -sf  /Users/gio/Software/QtRoot/qtrootsys/lib ) by hand!!!
WARNING: Failure to find: GQtDict.cxx
cd qt/ && /Applications/Xcode.app/Contents/Developer/usr/bin/make -f Makefile 
/Users/gio/Software/root-v5-34/bin/rootcint -f GQtDict.cxx -c -p -DQT_VERSION=0x40000 -I../../../Qt48/mkspecs/macx-g++ -I. -I../../../Qt48/include/QtCore -I../../../Qt48/include/QtGui -I../../../Qt48/include -Isrc -Iinc -I/Users/gio/Software/root-v5-34/include -I.moc inc/TGQt.h inc/TQtApplication.h inc/TQtTimer.h inc/TQtBrush.h inc/TQMimeTypes.h inc/TQtClientFilter.h inc/TQtClientWidget.h inc/TQtWidget.h inc/TQtMarker.h inc/TQtRootSlot.h inc/TQtPadFont.h inc/LinkDef.h
g++ -c -pipe -g -arch x86_64 -Xarch_x86_64 -mmacosx-version-min=10.5 -Wall -W -fPIC -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I../../../Qt48/mkspecs/macx-g++ -I. -I../../../Qt48/include/QtCore -I../../../Qt48/include/QtGui -I../../../Qt48/include -Isrc -Iinc -I/Users/gio/Software/root-v5-34/include -I.moc -o .obj/GQtDict.o GQtDict.cxx
g++ -c -pipe -g -arch x86_64 -Xarch_x86_64 -mmacosx-version-min=10.5 -Wall -W -fPIC -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I../../../Qt48/mkspecs/macx-g++ -I. -I../../../Qt48/include/QtCore -I../../../Qt48/include/QtGui -I../../../Qt48/include -Isrc -Iinc -I/Users/gio/Software/root-v5-34/include -I.moc -o .obj/GQtGUI.o src/GQtGUI.cxx
g++ -c -pipe -g -arch x86_64 -Xarch_x86_64 -mmacosx-version-min=10.5 -Wall -W -fPIC -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I../../../Qt48/mkspecs/macx-g++ -I. -I../../../Qt48/include/QtCore -I../../../Qt48/include/QtGui -I../../../Qt48/include -Isrc -Iinc -I/Users/gio/Software/root-v5-34/include -I.moc -o .obj/TGQt.o src/TGQt.cxx
g++ -c -pipe -g -arch x86_64 -Xarch_x86_64 -mmacosx-version-min=10.5 -Wall -W -fPIC -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I../../../Qt48/mkspecs/macx-g++ -I. -I../../../Qt48/include/QtCore -I../../../Qt48/include/QtGui -I../../../Qt48/include -Isrc -Iinc -I/Users/gio/Software/root-v5-34/include -I.moc -o .obj/TGQtDummy.o src/TGQtDummy.cxx
g++ -c -pipe -g -arch x86_64 -Xarch_x86_64 -mmacosx-version-min=10.5 -Wall -W -fPIC -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I../../../Qt48/mkspecs/macx-g++ -I. -I../../../Qt48/include/QtCore -I../../../Qt48/include/QtGui -I../../../Qt48/include -Isrc -Iinc -I/Users/gio/Software/root-v5-34/include -I.moc -o .obj/TQMimeTypes.o src/TQMimeTypes.cxx
g++ -c -pipe -g -arch x86_64 -Xarch_x86_64 -mmacosx-version-min=10.5 -Wall -W -fPIC -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I../../../Qt48/mkspecs/macx-g++ -I. -I../../../Qt48/include/QtCore -I../../../Qt48/include/QtGui -I../../../Qt48/include -Isrc -Iinc -I/Users/gio/Software/root-v5-34/include -I.moc -o .obj/TQtApplication.o src/TQtApplication.cxx
g++ -c -pipe -g -arch x86_64 -Xarch_x86_64 -mmacosx-version-min=10.5 -Wall -W -fPIC -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I../../../Qt48/mkspecs/macx-g++ -I. -I../../../Qt48/include/QtCore -I../../../Qt48/include/QtGui -I../../../Qt48/include -Isrc -Iinc -I/Users/gio/Software/root-v5-34/include -I.moc -o .obj/TQtBrush.o src/TQtBrush.cxx
g++ -c -pipe -g -arch x86_64 -Xarch_x86_64 -mmacosx-version-min=10.5 -Wall -W -fPIC -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I../../../Qt48/mkspecs/macx-g++ -I. -I../../../Qt48/include/QtCore -I../../../Qt48/include/QtGui -I../../../Qt48/include -Isrc -Iinc -I/Users/gio/Software/root-v5-34/include -I.moc -o .obj/TQtClientFilter.o src/TQtClientFilter.cxx
g++ -c -pipe -g -arch x86_64 -Xarch_x86_64 -mmacosx-version-min=10.5 -Wall -W -fPIC -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I../../../Qt48/mkspecs/macx-g++ -I. -I../../../Qt48/include/QtCore -I../../../Qt48/include/QtGui -I../../../Qt48/include -Isrc -Iinc -I/Users/gio/Software/root-v5-34/include -I.moc -o .obj/TQtClientGuard.o src/TQtClientGuard.cxx
g++ -c -pipe -g -arch x86_64 -Xarch_x86_64 -mmacosx-version-min=10.5 -Wall -W -fPIC -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I../../../Qt48/mkspecs/macx-g++ -I. -I../../../Qt48/include/QtCore -I../../../Qt48/include/QtGui -I../../../Qt48/include -Isrc -Iinc -I/Users/gio/Software/root-v5-34/include -I.moc -o .obj/TQtClientWidget.o src/TQtClientWidget.cxx
g++ -c -pipe -g -arch x86_64 -Xarch_x86_64 -mmacosx-version-min=10.5 -Wall -W -fPIC -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I../../../Qt48/mkspecs/macx-g++ -I. -I../../../Qt48/include/QtCore -I../../../Qt48/include/QtGui -I../../../Qt48/include -Isrc -Iinc -I/Users/gio/Software/root-v5-34/include -I.moc -o .obj/TQtEvent.o src/TQtEvent.cxx
g++ -c -pipe -g -arch x86_64 -Xarch_x86_64 -mmacosx-version-min=10.5 -Wall -W -fPIC -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I../../../Qt48/mkspecs/macx-g++ -I. -I../../../Qt48/include/QtCore -I../../../Qt48/include/QtGui -I../../../Qt48/include -Isrc -Iinc -I/Users/gio/Software/root-v5-34/include -I.moc -o .obj/TQtEventQueue.o src/TQtEventQueue.cxx
g++ -c -pipe -g -arch x86_64 -Xarch_x86_64 -mmacosx-version-min=10.5 -Wall -W -fPIC -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I../../../Qt48/mkspecs/macx-g++ -I. -I../../../Qt48/include/QtCore -I../../../Qt48/include/QtGui -I../../../Qt48/include -Isrc -Iinc -I/Users/gio/Software/root-v5-34/include -I.moc -o .obj/TQtMarker.o src/TQtMarker.cxx
g++ -c -pipe -g -arch x86_64 -Xarch_x86_64 -mmacosx-version-min=10.5 -Wall -W -fPIC -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I../../../Qt48/mkspecs/macx-g++ -I. -I../../../Qt48/include/QtCore -I../../../Qt48/include/QtGui -I../../../Qt48/include -Isrc -Iinc -I/Users/gio/Software/root-v5-34/include -I.moc -o .obj/TQtRootApplication.o src/TQtRootApplication.cxx
g++ -c -pipe -g -arch x86_64 -Xarch_x86_64 -mmacosx-version-min=10.5 -Wall -W -fPIC -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I../../../Qt48/mkspecs/macx-g++ -I. -I../../../Qt48/include/QtCore -I../../../Qt48/include/QtGui -I../../../Qt48/include -Isrc -Iinc -I/Users/gio/Software/root-v5-34/include -I.moc -o .obj/TQtSymbolCodec.o src/TQtSymbolCodec.cxx
src/TQtSymbolCodec.cxx:81:20: warning: unused variable 'unicode_to_symbol_00' [-Wunused-const-variable]
static const uchar unicode_to_symbol_00[32] = {
                   ^
src/TQtSymbolCodec.cxx:88:20: warning: unused variable 'unicode_to_symbol_05' [-Wunused-const-variable]
static const uchar unicode_to_symbol_05[32] = {
                   ^
2 warnings generated.
g++ -c -pipe -g -arch x86_64 -Xarch_x86_64 -mmacosx-version-min=10.5 -Wall -W -fPIC -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I../../../Qt48/mkspecs/macx-g++ -I. -I../../../Qt48/include/QtCore -I../../../Qt48/include/QtGui -I../../../Qt48/include -Isrc -Iinc -I/Users/gio/Software/root-v5-34/include -I.moc -o .obj/TQtTimer.o src/TQtTimer.cxx
g++ -c -pipe -g -arch x86_64 -Xarch_x86_64 -mmacosx-version-min=10.5 -Wall -W -fPIC -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I../../../Qt48/mkspecs/macx-g++ -I. -I../../../Qt48/include/QtCore -I../../../Qt48/include/QtGui -I../../../Qt48/include -Isrc -Iinc -I/Users/gio/Software/root-v5-34/include -I.moc -o .obj/TQtWidget.o src/TQtWidget.cxx
g++ -c -pipe -g -arch x86_64 -Xarch_x86_64 -mmacosx-version-min=10.5 -Wall -W -fPIC -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I../../../Qt48/mkspecs/macx-g++ -I. -I../../../Qt48/include/QtCore -I../../../Qt48/include/QtGui -I../../../Qt48/include -Isrc -Iinc -I/Users/gio/Software/root-v5-34/include -I.moc -o .obj/TQtPadFont.o src/TQtPadFont.cxx
g++ -c -pipe -g -arch x86_64 -Xarch_x86_64 -mmacosx-version-min=10.5 -Wall -W -fPIC -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I../../../Qt48/mkspecs/macx-g++ -I. -I../../../Qt48/include/QtCore -I../../../Qt48/include/QtGui -I../../../Qt48/include -Isrc -Iinc -I/Users/gio/Software/root-v5-34/include -I.moc -o .obj/TQtPen.o src/TQtPen.cxx
g++ -c -pipe -g -arch x86_64 -Xarch_x86_64 -mmacosx-version-min=10.5 -Wall -W -fPIC -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I../../../Qt48/mkspecs/macx-g++ -I. -I../../../Qt48/include/QtCore -I../../../Qt48/include/QtGui -I../../../Qt48/include -Isrc -Iinc -I/Users/gio/Software/root-v5-34/include -I.moc -o .obj/TQtRootSlot.o src/TQtRootSlot.cxx
/Users/gio/Software/Qt48/bin/moc -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I../../../Qt48/mkspecs/macx-g++ -I. -I../../../Qt48/include/QtCore -I../../../Qt48/include/QtGui -I../../../Qt48/include -Isrc -Iinc -I/Users/gio/Software/root-v5-34/include -I.moc -D__APPLE__ -D__GNUC__ inc/TQtClientFilter.h -o .moc/moc_TQtClientFilter.cpp
g++ -c -pipe -g -arch x86_64 -Xarch_x86_64 -mmacosx-version-min=10.5 -Wall -W -fPIC -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I../../../Qt48/mkspecs/macx-g++ -I. -I../../../Qt48/include/QtCore -I../../../Qt48/include/QtGui -I../../../Qt48/include -Isrc -Iinc -I/Users/gio/Software/root-v5-34/include -I.moc -o .obj/moc_TQtClientFilter.o .moc/moc_TQtClientFilter.cpp
/Users/gio/Software/Qt48/bin/moc -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I../../../Qt48/mkspecs/macx-g++ -I. -I../../../Qt48/include/QtCore -I../../../Qt48/include/QtGui -I../../../Qt48/include -Isrc -Iinc -I/Users/gio/Software/root-v5-34/include -I.moc -D__APPLE__ -D__GNUC__ inc/TQtClientGuard.h -o .moc/moc_TQtClientGuard.cpp
g++ -c -pipe -g -arch x86_64 -Xarch_x86_64 -mmacosx-version-min=10.5 -Wall -W -fPIC -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I../../../Qt48/mkspecs/macx-g++ -I. -I../../../Qt48/include/QtCore -I../../../Qt48/include/QtGui -I../../../Qt48/include -Isrc -Iinc -I/Users/gio/Software/root-v5-34/include -I.moc -o .obj/moc_TQtClientGuard.o .moc/moc_TQtClientGuard.cpp
/Users/gio/Software/Qt48/bin/moc -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I../../../Qt48/mkspecs/macx-g++ -I. -I../../../Qt48/include/QtCore -I../../../Qt48/include/QtGui -I../../../Qt48/include -Isrc -Iinc -I/Users/gio/Software/root-v5-34/include -I.moc -D__APPLE__ -D__GNUC__ inc/TQtClientWidget.h -o .moc/moc_TQtClientWidget.cpp
g++ -c -pipe -g -arch x86_64 -Xarch_x86_64 -mmacosx-version-min=10.5 -Wall -W -fPIC -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I../../../Qt48/mkspecs/macx-g++ -I. -I../../../Qt48/include/QtCore -I../../../Qt48/include/QtGui -I../../../Qt48/include -Isrc -Iinc -I/Users/gio/Software/root-v5-34/include -I.moc -o .obj/moc_TQtClientWidget.o .moc/moc_TQtClientWidget.cpp
/Users/gio/Software/Qt48/bin/moc -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I../../../Qt48/mkspecs/macx-g++ -I. -I../../../Qt48/include/QtCore -I../../../Qt48/include/QtGui -I../../../Qt48/include -Isrc -Iinc -I/Users/gio/Software/root-v5-34/include -I.moc -D__APPLE__ -D__GNUC__ inc/TQtTimer.h -o .moc/moc_TQtTimer.cpp
g++ -c -pipe -g -arch x86_64 -Xarch_x86_64 -mmacosx-version-min=10.5 -Wall -W -fPIC -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I../../../Qt48/mkspecs/macx-g++ -I. -I../../../Qt48/include/QtCore -I../../../Qt48/include/QtGui -I../../../Qt48/include -Isrc -Iinc -I/Users/gio/Software/root-v5-34/include -I.moc -o .obj/moc_TQtTimer.o .moc/moc_TQtTimer.cpp
/Users/gio/Software/Qt48/bin/moc -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I../../../Qt48/mkspecs/macx-g++ -I. -I../../../Qt48/include/QtCore -I../../../Qt48/include/QtGui -I../../../Qt48/include -Isrc -Iinc -I/Users/gio/Software/root-v5-34/include -I.moc -D__APPLE__ -D__GNUC__ inc/TQtWidget.h -o .moc/moc_TQtWidget.cpp
g++ -c -pipe -g -arch x86_64 -Xarch_x86_64 -mmacosx-version-min=10.5 -Wall -W -fPIC -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I../../../Qt48/mkspecs/macx-g++ -I. -I../../../Qt48/include/QtCore -I../../../Qt48/include/QtGui -I../../../Qt48/include -Isrc -Iinc -I/Users/gio/Software/root-v5-34/include -I.moc -o .obj/moc_TQtWidget.o .moc/moc_TQtWidget.cpp
/Users/gio/Software/Qt48/bin/moc -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I../../../Qt48/mkspecs/macx-g++ -I. -I../../../Qt48/include/QtCore -I../../../Qt48/include/QtGui -I../../../Qt48/include -Isrc -Iinc -I/Users/gio/Software/root-v5-34/include -I.moc -D__APPLE__ -D__GNUC__ inc/TQtEmitter.h -o .moc/moc_TQtEmitter.cpp
g++ -c -pipe -g -arch x86_64 -Xarch_x86_64 -mmacosx-version-min=10.5 -Wall -W -fPIC -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I../../../Qt48/mkspecs/macx-g++ -I. -I../../../Qt48/include/QtCore -I../../../Qt48/include/QtGui -I../../../Qt48/include -Isrc -Iinc -I/Users/gio/Software/root-v5-34/include -I.moc -o .obj/moc_TQtEmitter.o .moc/moc_TQtEmitter.cpp
/Users/gio/Software/Qt48/bin/moc -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I../../../Qt48/mkspecs/macx-g++ -I. -I../../../Qt48/include/QtCore -I../../../Qt48/include/QtGui -I../../../Qt48/include -Isrc -Iinc -I/Users/gio/Software/root-v5-34/include -I.moc -D__APPLE__ -D__GNUC__ inc/TQtRootSlot.h -o .moc/moc_TQtRootSlot.cpp
g++ -c -pipe -g -arch x86_64 -Xarch_x86_64 -mmacosx-version-min=10.5 -Wall -W -fPIC -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I../../../Qt48/mkspecs/macx-g++ -I. -I../../../Qt48/include/QtCore -I../../../Qt48/include/QtGui -I../../../Qt48/include -Isrc -Iinc -I/Users/gio/Software/root-v5-34/include -I.moc -o .obj/moc_TQtRootSlot.o .moc/moc_TQtRootSlot.cpp
rm -f libGQt.1.0.0.dylib libGQt.dylib libGQt.1.dylib libGQt.1.0.dylib
g++ -headerpad_max_install_names -arch x86_64 -Xarch_x86_64 -mmacosx-version-min=10.5 -single_module -dynamiclib -compatibility_version	1.0 -current_version	1.0.0 -Wl,-install_name,@rpath/libGQt.1.dylib -o libGQt.1.0.0.dylib .obj/GQtDict.o .obj/GQtGUI.o .obj/TGQt.o .obj/TGQtDummy.o .obj/TQMimeTypes.o .obj/TQtApplication.o .obj/TQtBrush.o .obj/TQtClientFilter.o .obj/TQtClientGuard.o .obj/TQtClientWidget.o .obj/TQtEvent.o .obj/TQtEventQueue.o .obj/TQtMarker.o .obj/TQtRootApplication.o .obj/TQtSymbolCodec.o .obj/TQtTimer.o .obj/TQtWidget.o .obj/TQtPadFont.o .obj/TQtPen.o .obj/TQtRootSlot.o .obj/moc_TQtClientFilter.o .obj/moc_TQtClientGuard.o .obj/moc_TQtClientWidget.o .obj/moc_TQtTimer.o .obj/moc_TQtWidget.o .obj/moc_TQtEmitter.o .obj/moc_TQtRootSlot.o   -L/Users/gio/Software/Qt48/lib -L/Users/gio/Software/root-v5-34/lib -lGui -lGpad -lRint -L/Users/gio/Software/root-v5-34/lib -lGui -lCore -lCint -lRIO -lNet -lHist -lGraf -lGraf3d -lGpad -lTree -lRint -lPostscript -lMatrix -lPhysics -lMathCore -lThread -lpthread -Wl,-rpath,/Users/gio/Software/root-v5-34/lib -stdlib=libc++ -lm -ldl -lQtGui_debug -L/Users/gio/Software/Qt48/lib -lQtCore_debug -L/Users/gio/Software/Qt48/lib -L/Users/gio/Software/Qt48/lib -lQtCore_debug -L/Users/gio/Software/Qt48/lib  
clang: error: invalid deployment target for -stdlib=libc++ (requires OS X 10.7 or later)
make[1]: *** [../libGQt.1.0.0.dylib] Error 1
make: *** [sub-qt-make_default-ordered] Error 2

I would appreciate any help.

Thanks,
George

I also do the symb link and nothing… I also try with Qt53 and still nothing…

and just in case I am on 10.9 with xcode

Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn)
Target: x86_64-apple-darwin13.3.0
Thread model: posix

Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn)
Target: x86_64-apple-darwin13.3.0
Thread model: posix