| Summary: | Geant4.9.3 Configure, Snow leopard and Qt4.6 | ||
|---|---|---|---|
| Product: | Bugzilla | Reporter: | garnier |
| Component: | general | Assignee: | Ben Morgan <Ben.Morgan> |
| Status: | CLOSED FIXED | ||
| Severity: | major | CC: | dadoun, garnier |
| Priority: | P5 | ||
| Version: | other | ||
| Hardware: | Other | ||
| OS: | Mac OS X | ||
|
Description
garnier
2010-01-07 15:32:04 CET
Hi,
There is two problems...
First, Configure step has a problem holding "by hand" Qt path on mac OSX.
In order to do that, you have to patch the Configure file. Around line 2500,
after :
if test "x\$g4_qt_lib" = "x" ; then
# We might be on Windows...
g4_qt_lib="\`ls \$g4_qt_lib_dir/QtCore4.lib 2> /dev/null | sed -n 1p | sed s@\$g4_qt_lib_dir/@@\`"
fi
Add :
if test "x\$g4_qt_lib" = "x" ; then
# We might be on Mac...
g4_qt_lib="\`ls \$g4_qt_lib_dir/QtCore* 2> /dev/null | sed -n 1p | sed s@\$g4_qt_lib_dir/@@ | sed s@[.].*@@\`"
fi
But that will not solve your problem... :( Because what you will have is a Qt Framework. In order to add your own Framework path, you add to patch a second time Configure, around line 2290 after :
g4_qt_include_path_list="
\`ls -dr /Library/Frameworks/QtCore.framework/Headers 2>/dev/null\`
Add path to YOUR QtCore Framework installation :
\`ls -dr /usr/local/Qt4.6-64bits....../QtCore.framework/Headers 2>/dev/null\`
Before Configure file is patch, Anyone has a better solution ?
Laurent
Hi Olivier, It's likely to be due to the directory structure where the Qt libraries are installed. Could you please post here the list of directories under /usr/local/Qt4.6-64, and especially where the QtCore library is located? Also, how did you install Qt? Via a pre-packaged SDK or build/install yourself? Cheers, Ben. Hi Ben, I reinstall Qt (using build/install way) without defining --prefix option. So Qt install by default everything in /usr/local/Trolltech. Even with that the geant4 Configure file is not correct, the Laurent's modifications is needed. cheers Olivier (In reply to comment #2) > Hi Olivier, > > It's likely to be due to the directory structure where the Qt libraries are > installed. Could you please post here the list of directories under > /usr/local/Qt4.6-64, and especially where the QtCore library is located? > > Also, how did you install Qt? Via a pre-packaged SDK or build/install yourself? > > Cheers, > > Ben. Hi Olivier, O.k., and could you still post the directory structure *especially* where the libraries are located. I *need* this to be able to fix Configure... I'm a little confused though (probably because I'm not a Qt/Mac expert) - you said that everything was installed in /usr/local/Trolltech, but things looked like they ended up in /usr/local/Qt4.6-64. Is that a softlink or something else? Cheers, Ben. sorry there is a misunderstanding. This location /usr/local/Qt4.6-64 was my old QT installation . Now everything is installed /usr/local/Trolltech/Qt-4.6.0 where those folders are presents: bin doc include mkspecs plugins translations demos examples lib phrasebooks q3porting.xml Concerning the lib folder: Qt3Support.framework QtOpenGL.framework QtXmlPatterns.la Qt3Support.la QtOpenGL.la QtXmlPatterns_debug.la Qt3Support_debug.la QtOpenGL_debug.la QtXml_debug.la QtAssistant.framework QtScript.framework libQtCLucene.4.6.0.dylib QtCore.framework QtScript.la libQtCLucene.4.6.dylib QtCore.la QtScriptTools.framework libQtCLucene.4.dylib QtCore_debug.la QtScriptTools.la libQtCLucene.dylib QtDesigner.framework QtScriptTools_debug.la libQtCLucene.la QtDesignerComponents.framework QtScript_debug.la libQtCLucene.prl QtGui.framework QtSql.framework libQtCLucene_debug.4.6.0.dylib QtGui.la QtSql.la libQtCLucene_debug.4.6.dylib QtGui_debug.la QtSql_debug.la libQtCLucene_debug.4.dylib QtHelp.framework QtSvg.framework libQtCLucene_debug.dylib QtHelp.la QtSvg.la libQtCLucene_debug.la QtHelp_debug.la QtSvg_debug.la libQtCLucene_debug.prl QtMultimedia.framework QtTest.framework libQtUiTools.a QtMultimedia.la QtTest.la libQtUiTools.prl QtMultimedia_debug.la QtTest_debug.la libQtUiTools_debug.a QtNetwork.framework QtXml.framework libQtUiTools_debug.prl QtNetwork.la QtXml.la pkgconfig QtNetwork_debug.la QtXmlPatterns.framework those informations are enough ? cheers olivier (In reply to comment #4) > Hi Olivier, > > O.k., and could you still post the directory structure *especially* where the > libraries are located. I *need* this to be able to fix Configure... > > I'm a little confused though (probably because I'm not a Qt/Mac expert) - you > said that everything was installed in /usr/local/Trolltech, but things looked > like they ended up in /usr/local/Qt4.6-64. Is that a softlink or something > else? > > Cheers, > > Ben. Thanks Olivier, that's great! One more thing - under the lib/NAME.framework directories, e.g. lib/QtCore.framework, do you have Headers subdirectories, i.e. lib/QtCore.framework/Headers? That being the case, do those Headers directories contain actual headers, in particular do you have lib/QtCore.framework/Headers/qglobal.h? Cheers, Ben. HEre all the headers I have : ./Qt3Support.framework/Headers ./Qt3Support.framework/Versions/4/Headers ./QtAssistant.framework/Headers ./QtAssistant.framework/Versions/4/Headers ./QtCore.framework/Headers ./QtCore.framework/Versions/4/Headers ./QtDesigner.framework/Headers ./QtDesigner.framework/Versions/4/Headers ./QtGui.framework/Headers ./QtGui.framework/Versions/4/Headers ./QtHelp.framework/Headers ./QtHelp.framework/Versions/4/Headers ./QtMultimedia.framework/Headers ./QtMultimedia.framework/Versions/4/Headers ./QtNetwork.framework/Headers ./QtNetwork.framework/Versions/4/Headers ./QtOpenGL.framework/Headers ./QtOpenGL.framework/Versions/4/Headers ./QtScript.framework/Headers ./QtScript.framework/Versions/4/Headers ./QtScriptTools.framework/Headers ./QtScriptTools.framework/Versions/4/Headers ./QtSql.framework/Headers ./QtSql.framework/Versions/4/Headers ./QtSvg.framework/Headers ./QtSvg.framework/Versions/4/Headers ./QtTest.framework/Headers ./QtTest.framework/Versions/4/Headers ./QtXml.framework/Headers ./QtXml.framework/Versions/4/Headers ./QtXmlPatterns.framework/Headers ./QtXmlPatterns.framework/Versions/4/Headers qglobal.h is not present in lib/QtCore.framework/Headers/ but in ./QtCore.framework/Versions/4/Headers/ folder. cheers Olivier (In reply to comment #6) > Thanks Olivier, that's great! One more thing - under the lib/NAME.framework > directories, e.g. lib/QtCore.framework, do you have Headers subdirectories, > i.e. lib/QtCore.framework/Headers? > > That being the case, do those Headers directories contain actual headers, in > particular do you have lib/QtCore.framework/Headers/qglobal.h? > > Cheers, > > Ben. A fix for this is now in CVS (apologies for not updating earlier). It has been tested on a Qt4 Framework-type installation in /opt/local on Mac. I'm therefore marking this bug as RESOLVED FIXED, but please re-open if problems persist. Cheers, Ben. |