This is Kubuntu 14.04 LTS / x86_64 with gcc 4.8.2 here.
The “qglobal.h” sets QT_VERSION_STR = “4.8.6”, but when I look at the versions of qt4 related packages, they are all “4:4.8.5+git192-g085f851+dfsg-2ubuntu4”.
I was able to compile the current (as of today) head of the v5-34-00-patches branch (including “qt” and “qtgsi” features), but then I tried to “make qtcint” and it died: /opt/ROOT/debug/v5-34-00-patches/build/unix/makecintdll.sh linux C++ qtcint qt \
" -p -DQT_GUI_LIB -DQT_CORE_LIB -DQT_DLL -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_SHARED -I/mkspecs/default -I. -I/usr/include/qt4 -I/usr/include/qt4/Qt -I/usr/include/qt4/Qt3Support -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtDBus -I/usr/include/qt4/QtDeclarative -I/usr/include/qt4/QtDesigner -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtHelp -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtOpenGL -I/usr/include/qt4/QtScript -I/usr/include/qt4/QtScriptTools -I/usr/include/qt4/QtSql -I/usr/include/qt4/QtSvg -I/usr/include/qt4/QtTest -I/usr/include/qt4/QtUiTools -I/usr/include/qt4/QtXml -I/usr/include/qt4/QtXmlPatterns qtcint.h " \
"cint/cint/main/cint_tmp" "core/utils/src/rootcint_tmp -cint" \
"/opt/ROOT/debug/v5-34-00-patches/build/unix/makelib.sh -v 5 34 18 -x " "g++" "gcc" "g++" "-O2" \
"-pipe -m64 -Wall -W -Woverloaded-virtual -fPIC -Iinclude -DG__REGEXP -DG__UNIX -DG__SHAREDLIB -DG__OSFDLL -DG__ROOT -DG__REDIRECTIO -DG__STD_EXCEPTION -DG__64BIT -DG__HAVE_CONFIG -DG__NOMAKEINFO -DG__CINTBODY -I/opt/ROOT/debug/v5-34-00-patches/cint/cint/inc -I/opt/ROOT/debug/v5-34-00-patches/cint/cint/src -I/opt/ROOT/debug/v5-34-00-patches/cint/cint/src/dict -pthread -DQT_GUI_LIB -DQT_CORE_LIB -DQT_DLL -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_SHARED -I/mkspecs/default -I. -I/usr/include/qt4 -I/usr/include/qt4/Qt -I/usr/include/qt4/Qt3Support -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtDBus -I/usr/include/qt4/QtDeclarative -I/usr/include/qt4/QtDesigner -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtHelp -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtOpenGL -I/usr/include/qt4/QtScript -I/usr/include/qt4/QtScriptTools -I/usr/include/qt4/QtSql -I/usr/include/qt4/QtSvg -I/usr/include/qt4/QtTest -I/usr/include/qt4/QtUiTools -I/usr/include/qt4/QtXml -I/usr/include/qt4/QtXmlPatterns" "-pipe -m64 -Wall -W -fPIC -Iinclude -DG__REGEXP -DG__UNIX -DG__SHAREDLIB -DG__OSFDLL -DG__ROOT -DG__REDIRECTIO -DG__STD_EXCEPTION -DG__64BIT -DG__HAVE_CONFIG -DG__NOMAKEINFO -DG__CINTBODY -I/opt/ROOT/debug/v5-34-00-patches/cint/cint/inc -I/opt/ROOT/debug/v5-34-00-patches/cint/cint/src -I/opt/ROOT/debug/v5-34-00-patches/cint/cint/src/dict -pthread" \
"-m64 -O2 -Wl,--no-undefined -Wl,--as-needed" " -lQtCore -lQtGui -lQt3Support -Llib -lCint" "-shared -Wl,-soname," \
"so" "gnu" "-o "
cint/cint/main/cint_tmp -K -w1 -zqtcint -ncint/cint/lib/qt/G__qtcint.cxx -D__MAKECINT__ -DG__MAKECINT -c-1 -Z0 -Icint/cint/lib/qt -p -DQT_GUI_LIB -DQT_CORE_LIB -DQT_DLL -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_SHARED -I/mkspecs/default -I. -I/usr/include/qt4 -I/usr/include/qt4/Qt -I/usr/include/qt4/Qt3Support -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtDBus -I/usr/include/qt4/QtDeclarative -I/usr/include/qt4/QtDesigner -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtHelp -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtOpenGL -I/usr/include/qt4/QtScript -I/usr/include/qt4/QtScriptTools -I/usr/include/qt4/QtSql -I/usr/include/qt4/QtSvg -I/usr/include/qt4/QtTest -I/usr/include/qt4/QtUiTools -I/usr/include/qt4/QtXml -I/usr/include/qt4/QtXmlPatterns qtcint.h
/usr/include/qt4/QtCore/qcontiguouscache.h:64:
Note: Bit-field not accessible from interpreter
/usr/include/qt4/QtCore/qobject.h:90:
Warning: Pure virtual destructor may cause problem. Define as 'virtual ~QObjectData() { }'
Limitation: Reference member not accessible from the interpreter /usr/include/qt4/QtCore/qstringbuilder.h:158:
Limitation: Reference member not accessible from the interpreter /usr/include/qt4/QtCore/qstringbuilder.h:171:
Error: Redefinition of default argument /usr/include/qt4/QtGui/qtextformat.h:626:
!!!Removing cint/cint/lib/qt/G__qtcint.cxx cint/cint/lib/qt/G__qtcint.h !!!
g++ -O2 -pipe -m64 -Wall -W -Woverloaded-virtual -fPIC -Iinclude -DG__REGEXP -DG__UNIX -DG__SHAREDLIB -DG__OSFDLL -DG__ROOT -DG__REDIRECTIO -DG__STD_EXCEPTION -DG__64BIT -DG__HAVE_CONFIG -DG__NOMAKEINFO -DG__CINTBODY -I/opt/ROOT/debug/v5-34-00-patches/cint/cint/inc -I/opt/ROOT/debug/v5-34-00-patches/cint/cint/src -I/opt/ROOT/debug/v5-34-00-patches/cint/cint/src/dict -pthread -DQT_GUI_LIB -DQT_CORE_LIB -DQT_DLL -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_SHARED -I/mkspecs/default -I. -I/usr/include/qt4 -I/usr/include/qt4/Qt -I/usr/include/qt4/Qt3Support -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtDBus -I/usr/include/qt4/QtDeclarative -I/usr/include/qt4/QtDesigner -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtHelp -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtOpenGL -I/usr/include/qt4/QtScript -I/usr/include/qt4/QtScriptTools -I/usr/include/qt4/QtSql -I/usr/include/qt4/QtSvg -I/usr/include/qt4/QtTest -I/usr/include/qt4/QtUiTools -I/usr/include/qt4/QtXml -I/usr/include/qt4/QtXmlPatterns -I. -o cint/cint/lib/qt/G__qtcint.o -Icint/cint/lib/qt -c cint/cint/lib/qt/G__qtcint.cxx
g++: error: cint/cint/lib/qt/G__qtcint.cxx: No such file or directory
g++: fatal error: no input files
compilation terminated.
g++ -shared -Wl,-soname,qtcint.so.5.34 -m64 -O2 -Wl,--no-undefined -Wl,--as-needed -o cint/cint/include/qtcint.so.5.34 cint/cint/lib/qt/G__qtcint.o -lQtCore -lQtGui -lQt3Support -Llib -lCint
g++: error: cint/cint/lib/qt/G__qtcint.o: No such file or directory
mv: cannot stat ‘cint/cint/include/qtcint.so’: No such file or directory
Hi Wile E.
Which version of Qt are you using?
I just tried v5-34-00-patches on SLC6 x86_64, gcc 4.8.1, and Qt 4.6.2:
[bellenot@bbslc6x64-dev v5-34-00-patches]$ make qtcint
/build/bellenot/git/v5-34-00-patches/build/unix/makecintdll.sh linux C++ qtcint qt \
" -p -DQT_GUI_LIB -DQT_CORE_LIB -DQT_DLL -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_SHARED -I/usr/lib64/qt4/mkspecs/default -I. -I/usr/include/Qt -I/usr/include/Qt3Support -I/usr/include/QtAssistant -I/usr/include/QtCore -I/usr/include/QtDBus -I/usr/include/QtDesigner -I/usr/include/QtGui -I/usr/include/QtHelp -I/usr/include/QtMultimedia -I/usr/include/QtNetwork -I/usr/include/QtOpenGL -I/usr/include/QtScript -I/usr/include/QtScriptTools -I/usr/include/QtSql -I/usr/include/QtSvg -I/usr/include/QtTest -I/usr/include/QtUiTools -I/usr/include/QtXml -I/usr/include/QtXmlPatterns qtcint.h " \
"cint/cint/main/cint_tmp" "core/utils/src/rootcint_tmp -cint" \
"/build/bellenot/git/v5-34-00-patches/build/unix/makelib.sh -x " "g++" "gcc" "g++" "-g" \
"-pipe -m64 -Wall -W -Woverloaded-virtual -fPIC -Iinclude -DG__REGEXP -DG__UNIX -DG__SHAREDLIB -DG__OSFDLL -DG__ROOT -DG__REDIRECTIO -DG__STD_EXCEPTION -DG__64BIT -DG__HAVE_CONFIG -DG__NOMAKEINFO -DG__CINTBODY -Icint/cint/inc -I/build/bellenot/git/v5-34-00-patches/cint/cint/inc -I/build/bellenot/git/v5-34-00-patches/cint/cint/src -I/build/bellenot/git/v5-34-00-patches/cint/cint/src/dict -pthread -DQT_GUI_LIB -DQT_CORE_LIB -DQT_DLL -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_SHARED -I/usr/lib64/qt4/mkspecs/default -I. -I/usr/include/Qt -I/usr/include/Qt3Support -I/usr/include/QtAssistant -I/usr/include/QtCore -I/usr/include/QtDBus -I/usr/include/QtDesigner -I/usr/include/QtGui -I/usr/include/QtHelp -I/usr/include/QtMultimedia -I/usr/include/QtNetwork -I/usr/include/QtOpenGL -I/usr/include/QtScript -I/usr/include/QtScriptTools -I/usr/include/QtSql -I/usr/include/QtSvg -I/usr/include/QtTest -I/usr/include/QtUiTools -I/usr/include/QtXml -I/usr/include/QtXmlPatterns" "-pipe -m64 -Wall -W -fPIC -Iinclude -DG__REGEXP -DG__UNIX -DG__SHAREDLIB -DG__OSFDLL -DG__ROOT -DG__REDIRECTIO -DG__STD_EXCEPTION -DG__64BIT -DG__HAVE_CONFIG -DG__NOMAKEINFO -DG__CINTBODY -Icint/cint/inc -I/build/bellenot/git/v5-34-00-patches/cint/cint/inc -I/build/bellenot/git/v5-34-00-patches/cint/cint/src -I/build/bellenot/git/v5-34-00-patches/cint/cint/src/dict -pthread" \
"-m64 -g -Wl,--no-undefined -Wl,--as-needed" " -lQtCore -lQtGui -lQt3Support -Llib -lCint" "-shared -Wl,-soname," \
"so" "gnu" "-o "
cint/cint/main/cint_tmp -K -w1 -zqtcint -ncint/cint/lib/qt/G__qtcint.cxx -D__MAKECINT__ -DG__MAKECINT -c-1 -Z0 -Icint/cint/lib/qt -p -DQT_GUI_LIB -DQT_CORE_LIB -DQT_DLL -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_SHARED -I/usr/lib64/qt4/mkspecs/default -I. -I/usr/include/Qt -I/usr/include/Qt3Support -I/usr/include/QtAssistant -I/usr/include/QtCore -I/usr/include/QtDBus -I/usr/include/QtDesigner -I/usr/include/QtGui -I/usr/include/QtHelp -I/usr/include/QtMultimedia -I/usr/include/QtNetwork -I/usr/include/QtOpenGL -I/usr/include/QtScript -I/usr/include/QtScriptTools -I/usr/include/QtSql -I/usr/include/QtSvg -I/usr/include/QtTest -I/usr/include/QtUiTools -I/usr/include/QtXml -I/usr/include/QtXmlPatterns qtcint.h
/usr/include/QtCore/qstring.h:598:
Note: Bit-field not accessible from interpreter
/usr/include/QtCore/qobject.h:100:
Warning: Pure virtual destructor may cause problem. Define as 'virtual ~QObjectData() { }'
/usr/include/QtGui/qtextdocument.h:98:
Warning: Pure virtual destructor may cause problem. Define as 'virtual ~QAbstractUndoItem() { }'
g++ -g -pipe -m64 -Wall -W -Woverloaded-virtual -fPIC -Iinclude -DG__REGEXP -DG__UNIX -DG__SHAREDLIB -DG__OSFDLL -DG__ROOT -DG__REDIRECTIO -DG__STD_EXCEPTION -DG__64BIT -DG__HAVE_CONFIG -DG__NOMAKEINFO -DG__CINTBODY -Icint/cint/inc -I/build/bellenot/git/v5-34-00-patches/cint/cint/inc -I/build/bellenot/git/v5-34-00-patches/cint/cint/src -I/build/bellenot/git/v5-34-00-patches/cint/cint/src/dict -pthread -DQT_GUI_LIB -DQT_CORE_LIB -DQT_DLL -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_SHARED -I/usr/lib64/qt4/mkspecs/default -I. -I/usr/include/Qt -I/usr/include/Qt3Support -I/usr/include/QtAssistant -I/usr/include/QtCore -I/usr/include/QtDBus -I/usr/include/QtDesigner -I/usr/include/QtGui -I/usr/include/QtHelp -I/usr/include/QtMultimedia -I/usr/include/QtNetwork -I/usr/include/QtOpenGL -I/usr/include/QtScript -I/usr/include/QtScriptTools -I/usr/include/QtSql -I/usr/include/QtSvg -I/usr/include/QtTest -I/usr/include/QtUiTools -I/usr/include/QtXml -I/usr/include/QtXmlPatterns -I. -o cint/cint/lib/qt/G__qtcint.o -Icint/cint/lib/qt -c cint/cint/lib/qt/G__qtcint.cxx
g++ -shared -Wl,-soname,qtcint.so -m64 -g -Wl,--no-undefined -Wl,--as-needed -o cint/cint/include/qtcint.so cint/cint/lib/qt/G__qtcint.o -lQtCore -lQtGui -lQt3Support -Llib -lCint
==> cint/cint/include/qtcint.so done
Cheers, Bertrand.
I added Qt version information in my original post here (I know I can “make qtcint” on a SLC6 as I always build it by default).
OK, thanks for the update. And I will need to setup a virtual machine and try it with the same configuration, but I will need some time… I’ll let you know.
Cheers, Bertrand.
This problem is still present in the newest “ROOT patch release 5.34/19 - 2014-07-09”.
(Note: ROOT supports Qt 4.x only and Qt 4.8.6 is the latest release of the 4.x branch.)
This problem is still present in the newest “ROOT patch release 5.34/20 - 2014-08-13”.
(BTW. Note that the “ROOT Version v5-34-00 Patch Release Notes” web page still references “5.34.19” / “5-34-19” in several places.)
This problem is still present in the newest “ROOT patch release 5.34/21 - 2014-09-09”.
This problem is still present in the newest ROOT “v5-34-22 (October 10, 2014)”
(I can see you’re testing my patience.)
Hi,
I’ looking at it right now. I can reproduce it, but I don’t understand the problem. I’ll let you know.
Cheers, Bertrand.
Here’s an “extract” from my “/usr/include/qt4/QtGui/qtextformat.h” file: // ...
class Q_GUI_EXPORT QTextBlockFormat : public QTextFormat
{
public:
// ...
inline qreal lineHeight(qreal scriptLineHeight, qreal scaling) const;
inline qreal lineHeight() const
{ return doubleProperty(LineHeight); }
// ...
};
// ... the next line is the one that generates ...
// ... Error: Redefinition of default argument /usr/include/qt4/QtGui/qtextformat.h:626:
inline qreal QTextBlockFormat::lineHeight(qreal scriptLineHeight, qreal scaling = 1.0) const
{
// ...
}
// ...
Thanks, I know, I got the same error message…
Hi,
A Jira ticket has just been opened for our cint experts: sft.its.cern.ch/jira/browse/ROOT-6863
Cheers, Bertrand.