I've tried compiling the SVN version of OSG 2.9.9 on both Mac OS 10.5 and 10.6,
and it appears that there is an issue with Qt 4.6.3. There are a number of
errors during linking.

For now, a workaround for the build is to go back to an earlier version of Qt,
it appears that version 4.5.2 compiles and links just fine. As a note, the
easiest way to uninstall a more recent release of Qt is to run
'sudo /Developer/Tools/uninstall-qt.py'.

Hence this post is partly a heads up to flag the problem with Qt4.6.3 so that
it can be fixed in time for the 3.0.0 release (and please note that Qt4.7 is
in release candidate stage). I have found a problem though with the examples.

With osgviewerQtContext and osgviewerQtWidget, I am was getting errors such as
'Warning: Could not find plugin to read objects from file "cow.osg"'. These
errors don't appear with osgviewer or osgconv. A fix for this was the
following line:

export DYLD_LIBRARY_PATH=/usr/local/lib:/usr/local/lib/osgPlugins-2.9.9

I've been careful to set the paths and environment as described in section 4 of
'http://www.openscenegraph.org/projects/osg/wiki/Support/GettingStarted' (which
perhaps should be updated for Mac OS X 10.5/10.6 as these use bash).

The Qt examples programs seem to have problems with 10.5.8, OSG2.9.9
and Qt4.5.2:
osgviewerQtContext - works best, does load 5 models into two windows (no other
  GUI drawn)
osgviewerQtWidget - nothing is redrawn and only mouse events are printed in
  terminal; no widgets are shown
osgQtWidgets - crashes upon start (bus error)
osgQtBrowser works for only a short time (crash), but it does display a youtube
  page for a short time

If you have any suggestions on what could be done to get the Qt examples 
running better under OS X, it would be very much appreciated.

A few other miscellaneous notes:
The README.txt section 'Release notes on OSX build' is a little out of date, as
the XCode support has been deprecated. I realize this is due to the fact that
cmake on Mac now handles Frameworks and hence there is a single unified build
after version 2.9.8. (At first I was trying to figure out where the XCode 
folder had gone...)

Up until now, I've been using the 2.8.2 and 2.8.3 with XCode, and the build here
worked just fine. I couldn't get the 2.9.8 XCode project to compile (GCC_VERSION
was set to 4.0) in either 10.5 or 10.6, but this point is moot, as the command
line unified compile and frameworks support has taken care of this issue.

Cheers,
- Andrew

start of error messages with Qt4.6.3 below:
[ 84%] Generating __/__/include/osgQt/moc_QGraphicsViewAdapter.cxx
[ 85%] Building CXX object src/osgQt/CMakeFiles/osgQt.dir
/QFontImplementation.cpp.o
[ 85%] Building CXX object src/osgQt/CMakeFiles/osgQt.dir
/QGraphicsViewAdapter.cpp.o
[ 85%] Building CXX object src/osgQt/CMakeFiles/osgQt.dir/QWidgetImage.cpp.o
[ 85%] Building CXX object
src/osgQt/CMakeFiles/osgQt.dir/__/__/include/osgQt
/moc_QGraphicsViewAdapter.cxx.o
Linking CXX shared library ../../lib/libosgQt.dylib
ld: warning in
/Developer/SDKs/MacOSX10.5.sdk/Library/Frameworks//QtCore.framework/QtCore,
missing required architecture ppc in file
ld: warning in
/Developer/SDKs/MacOSX10.5.sdk/Library/Frameworks//QtGui.framework/QtGui,
missing required architecture ppc in file
ld: warning in
/Developer/SDKs/MacOSX10.5.sdk/Library/Frameworks//QtOpenGL.framework/QtOpenGL,
missing required architecture ppc in file
Undefined symbols:
  "QObject::qt_metacast(char const*)", referenced from:
      osgQt::QGraphicsViewAdapter::qt_metacast(char const*)in
moc_QGraphicsViewAdapter.cxx.o
  "QEvent::~QEvent()", referenced from:
      osgQt::MyQPointerEvent::~MyQPointerEvent()in QGraphicsViewAdapter.cpp.o
      osgQt::MyQPointerEvent::~MyQPointerEvent()in QGraphicsViewAdapter.cpp.o
      osgQt::MyQKeyEvent::~MyQKeyEvent()in QGraphicsViewAdapter.cpp.o
      osgQt::MyQKeyEvent::~MyQKeyEvent()in QGraphicsViewAdapter.cpp.o
[snipped]


_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to