On Sat, 2012-03-03 at 21:13 +0100, Angelo Graziosi wrote: > Trying to build a CERN application, ROOT [*], it fails in this way: > > [...] > g++ -O2 -pipe -Wall -Woverloaded-virtual -Iinclude -I/usr/X11R6/include > -DQT3_SUPPORT -DQT_DLL -DQT_THREAD_SUPPORT -I. -I/usr/include/qt4 > -I/usr/include/qt4/Qt -I/usr/include/qt4/Qt3Support > -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui > -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtOpenGL > -I/usr/include/qt4/QtSql -I/usr/include/qt4/QtSvg > -I/usr/include/qt4/QtTest -I/usr/include/qt4/QtWebKit > -I/usr/include/qt4/QtXml -I/usr/include/qt4/QtXmlPatterns -o > gui/qtgsi/src/TQCanvasImp.o -c /tmp/root/gui/qtgsi/src/TQCanvasImp.cxx > Generating dictionary gui/qtgsi/src/G__QtGSI.cxx... > core/utils/src/rootcint_tmp.exe -cint -f gui/qtgsi/src/G__QtGSI.cxx -c > -DQTVERS=4 /tmp/root/gui/qtgsi/inc/TQApplication.h > /tmp/root/gui/qtgsi/inc/TQRootDialog.h > /tmp/root/gui/qtgsi/inc/TQRootCanvas.h > /tmp/root/gui/qtgsi/inc/TQRootGuiFactory.h > /tmp/root/gui/qtgsi/inc/TQCanvasMenu.h > /tmp/root/gui/qtgsi/inc/TQRootApplication.h > /tmp/root/gui/qtgsi/inc/TQCanvasImp.h /tmp/root/gui/qtgsi/inc/LinkDef.h > Error: Symbol QCloseEvent is not defined in current scope > include/TQRootDialog.h:81: > Error: Symbol ce is not defined in current scope include/TQRootDialog.h:81: > Error: void type variable can not be declared include/TQRootDialog.h:81: > Error: Syntax error include/TQRootCanvas.h:159: > Warning: Error occurred during reading source files > Warning: Error occurred during dictionary source generation > !!!Removing gui/qtgsi/src/G__QtGSI.cxx gui/qtgsi/src/G__QtGSI.h !!! > Error: core/utils/src/rootcint_tmp: error loading headers... > /tmp/root/gui/qtgsi/Module.mk:69: recipe for target > `gui/qtgsi/src/G__QtGSI.cxx' failed > make: *** [gui/qtgsi/src/G__QtGSI.cxx] Error 1
I believe this is a problem in the ROOT sources, not qt4, but I can't be sure since... > To reproduce: > > $ wget ftp://root.cern.ch/root/root_v5.32.01.source.tar.gz > $ tar -xf root_v5.32.01.source.tar.gz > $ cd root > > $ ./configure win32gcc --enable-qt --with-qt-incdir=/usr/include/qt4 > --with-qt-libdir=/usr/lib/qt4/lib 2>&1 | tee /tmp/build-ROOT.log > > $ make 2>&1 | tee -a /tmp/build-ROOT.log > > ROOT builds fine with QT4 4.5 on Cygwin and on GNU/Linux Kubuntu with > QT4 4.7.4. I have unrelated problems building ROOT: Generating dictionary graf3d/g3d/src/G__G3D.cxx... core/utils/src/rootcint_tmp.exe -cint -f graf3d/g3d/src/G__G3D.cxx -c /usr/src/ports/root/root-5.32.01-1/src/root/graf3d/g3d/inc/TTUBS.h /usr/src/ports/root/root-5.32.01-1/src/root/graf3d/g3d/inc/TPARA.h /usr/src/ports/root/root-5.32.01-1/src/root/graf3d/g3d/inc/TNodeDiv.h /usr/src/ports/root/root-5.32.01-1/src/root/graf3d/g3d/inc/TGeometry.h /usr/src/ports/root/root-5.32.01-1/src/root/graf3d/g3d/inc/TCTUB.h /usr/src/ports/root/root-5.32.01-1/src/root/graf3d/g3d/inc/TPolyMarker3D.h /usr/src/ports/root/root-5.32.01-1/src/root/graf3d/g3d/inc/TTUBE.h /usr/src/ports/root/root-5.32.01-1/src/root/graf3d/g3d/inc/TMaterial.h /usr/src/ports/root/root-5.32.01-1/src/root/graf3d/g3d/inc/TNode.h /usr/src/ports/root/root-5.32.01-1/src/root/graf3d/g3d/inc/TAxis3D.h /usr/src/ports/root/root-5.32.01-1/src/root/graf3d/g3d/inc/TRotMatrix.h /usr/src/ports/root/root-5.32.01-1/src/root/graf3d/g3d/inc/TELTU.h /usr/src/ports/root/root-5.32.01-1/src/root/graf3d/g3d/inc/TTRD1.h /usr/src/ports/root/root-5.32.01-1/src/root/graf3d/g3d/inc/TXTRU.h /usr/src/ports/root/root-5.32.01-1/src/root/graf3d/g3d/inc/TShape.h /usr/src/ports/root/root-5.32.01-1/src/root/graf3d/g3d/inc/TPCON.h /usr/src/ports/root/root-5.32.01-1/src/root/graf3d/g3d/inc/TBRIK.h /usr/src/ports/root/root-5.32.01-1/src/root/graf3d/g3d/inc/THYPE.h /usr/src/ports/root/root-5.32.01-1/src/root/graf3d/g3d/inc/TPointSet3D.h /usr/src/ports/root/root-5.32.01-1/src/root/graf3d/g3d/inc/TCONE.h /usr/src/ports/root/root-5.32.01-1/src/root/graf3d/g3d/inc/TMarker3DBox.h /usr/src/ports/root/root-5.32.01-1/src/root/graf3d/g3d/inc/TGTRA.h /usr/src/ports/root/root-5.32.01-1/src/root/graf3d/g3d/inc/TPoints3DABC.h /usr/src/ports/root/root-5.32.01-1/src/root/graf3d/g3d/inc/TPolyLine3D.h /usr/src/ports/root/root-5.32.01-1/src/root/graf3d/g3d/inc/TSPHE.h /usr/src/ports/root/root-5.32.01-1/src/root/graf3d/g3d/inc/TPGON.h /usr/src/ports/root/root-5.32.01-1/src/root/graf3d/g3d/inc/THelix.h /usr/src/ports/root/root-5.32.01-1/src/root/graf3d/g3d/inc/TView3D.h /usr/src/ports/root/root-5.32.01-1/src/root/graf3d/g3d/inc/TTRAP.h /usr/src/ports/root/root-5.32.01-1/src/root/graf3d/g3d/inc/TCONS.h /usr/src/ports/root/root-5.32.01-1/src/root/graf3d/g3d/inc/TMixture.h /usr/src/ports/root/root-5.32.01-1/src/root/graf3d/g3d/inc/TTRD2.h /usr/src/ports/root/root-5.32.01-1/src/root/graf3d/g3d/inc/LinkDef.h /usr/src/ports/root/root-5.32.01-1/src/root/graf3d/g3d/Module.mk:55: recipe for target `graf3d/g3d/src/G__G3D.cxx' failed make: *** [graf3d/g3d/src/G__G3D.cxx] Floating point exception make: *** Deleting file `graf3d/g3d/src/G__G3D.cxx' Generating dictionary tree/treeplayer/src/G__TreePlayer.cxx... core/utils/src/rootcint_tmp.exe -cint -f tree/treeplayer/src/G__TreePlayer.cxx -c /usr/src/ports/root/root-5.32.01-1/src/root/tree/treeplayer/inc/TTreePlayer.h /usr/src/ports/root/root-5.32.01-1/src/root/tree/treeplayer/inc/TTreeIndex.h /usr/src/ports/root/root-5.32.01-1/src/root/tree/treeplayer/inc/TSelectorDraw.h /usr/src/ports/root/root-5.32.01-1/src/root/tree/treeplayer/inc/TBranchProxyClassDescriptor.h /usr/src/ports/root/root-5.32.01-1/src/root/tree/treeplayer/inc/TBranchProxyTemplate.h /usr/src/ports/root/root-5.32.01-1/src/root/tree/treeplayer/inc/TFriendProxy.h /usr/src/ports/root/root-5.32.01-1/src/root/tree/treeplayer/inc/TFriendProxyDescriptor.h /usr/src/ports/root/root-5.32.01-1/src/root/tree/treeplayer/inc/TFileDrawMap.h /usr/src/ports/root/root-5.32.01-1/src/root/tree/treeplayer/inc/TSelectorEntries.h /usr/src/ports/root/root-5.32.01-1/src/root/tree/treeplayer/inc/TTreeFormulaManager.h /usr/src/ports/root/root-5.32.01-1/src/root/tree/treeplayer/inc/TChainIndex.h /usr/src/ports/root/root-5.32.01-1/src/root/tree/treeplayer/inc/TBranchProxy.h /usr/src/ports/root/root-5.32.01-1/src/root/tree/treeplayer/inc/TBranchProxyDescriptor.h /usr/src/ports/root/root-5.32.01-1/src/root/tree/treeplayer/inc/TTreeProxyGenerator.h /usr/src/ports/root/root-5.32.01-1/src/root/tree/treeplayer/inc/TBranchProxyDirector.h /usr/src/ports/root/root-5.32.01-1/src/root/tree/treeplayer/inc/TTreePerfStats.h /usr/src/ports/root/root-5.32.01-1/src/root/tree/treeplayer/inc/TTreeFormula.h /usr/src/ports/root/root-5.32.01-1/src/root/tree/treeplayer/inc/TFormLeafInfoReference.h /usr/src/ports/root/root-5.32.01-1/src/root/tree/treeplayer/inc/TRefProxy.h /usr/src/ports/root/root-5.32.01-1/src/root/tree/treeplayer/inc/TTreeDrawArgsParser.h /usr/src/ports/root/root-5.32.01-1/src/root/tree/treeplayer/inc/TFormLeafInfo.h /usr/src/ports/root/root-5.32.01-1/src/root/tree/treeplayer/inc/TRefArrayProxy.h /usr/src/ports/root/root-5.32.01-1/src/root/tree/treeplayer/inc/TTreeTableInterface.h /usr/src/ports/root/root-5.32.01-1/src/root/tree/treeplayer/inc/LinkDef.h /usr/src/ports/root/root-5.32.01-1/src/root/tree/treeplayer/Module.mk:52: recipe for target `tree/treeplayer/src/G__TreePlayer.cxx' failed make: *** [tree/treeplayer/src/G__TreePlayer.cxx] Floating point exception make: *** Deleting file `tree/treeplayer/src/G__TreePlayer.cxx' Generating dictionary core/rint/src/G__Rint.cxx... core/utils/src/rootcint_tmp.exe -cint -f core/rint/src/G__Rint.cxx -c /usr/src/ports/root/root-5.32.01-1/src/root/core/rint/inc/TRint.h /usr/src/ports/root/root-5.32.01-1/src/root/core/rint/inc/TTabCom.h /usr/src/ports/root/root-5.32.01-1/src/root/core/rint/inc/LinkDef.h /usr/src/ports/root/root-5.32.01-1/src/root/core/rint/Module.mk:50: recipe for target `core/rint/src/G__Rint.cxx' failed make: *** [core/rint/src/G__Rint.cxx] Floating point exception make: *** Deleting file `core/rint/src/G__Rint.cxx' Generating dictionary montecarlo/vmc/src/G__VMC.cxx... core/utils/src/rootcint_tmp.exe -cint -f montecarlo/vmc/src/G__VMC.cxx -c /usr/src/ports/root/root-5.32.01-1/src/root/montecarlo/vmc/inc/TMCVerbose.h /usr/src/ports/root/root-5.32.01-1/src/root/montecarlo/vmc/inc/TVirtualMCGeometry.h /usr/src/ports/root/root-5.32.01-1/src/root/montecarlo/vmc/inc/TMCOptical.h /usr/src/ports/root/root-5.32.01-1/src/root/montecarlo/vmc/inc/TVirtualMCStack.h /usr/src/ports/root/root-5.32.01-1/src/root/montecarlo/vmc/inc/TGeoMCGeometry.h /usr/src/ports/root/root-5.32.01-1/src/root/montecarlo/vmc/inc/TVirtualMCApplication.h /usr/src/ports/root/root-5.32.01-1/src/root/montecarlo/vmc/inc/TPDGCode.h /usr/src/ports/root/root-5.32.01-1/src/root/montecarlo/vmc/inc/TMCParticleType.h /usr/src/ports/root/root-5.32.01-1/src/root/montecarlo/vmc/inc/TMCProcess.h /usr/src/ports/root/root-5.32.01-1/src/root/montecarlo/vmc/inc/TVirtualMC.h /usr/src/ports/root/root-5.32.01-1/src/root/montecarlo/vmc/inc/LinkDef.h Error: Too many initializers, exceeded length of array for 'TMCProcessName' include/TMCProcess.h:88: Warning: Error occurred during reading source files Warning: Error occurred during dictionary source generation !!!Removing montecarlo/vmc/src/G__VMC.cxx montecarlo/vmc/src/G__VMC.h !!! Error: core/utils/src/rootcint_tmp: error loading headers... /usr/src/ports/root/root-5.32.01-1/src/root/montecarlo/vmc/Module.mk:51: recipe for target `montecarlo/vmc/src/G__VMC.cxx' failed make: *** [montecarlo/vmc/src/G__VMC.cxx] Error 1 > Another strange thing I notice is that I need to add > > --with-qt-incdir=/usr/include/qt4 --with-qt-libdir=/usr/lib/qt4/lib > > to "./configure..." This is neither strange nor new. This setup is required to allow qt4 to be parallel-installable with other major versions of Qt (originally with qt3, and soon with qt5). Yaakov Cygwin/X -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/
