Re: [osg-users] OSG 2.9.9 compile issues on Mac with Qt 4.6.3, other Qt issues
Hi Chuck & all, Did this ever get addressed? I have an OSG 2.8.3 app which i am trying to port to 64-bit Mac (i.e. Cocoa). As of 2.8.4, i see that QOSGWidget.cpp still has this limitation: #elif defined(__APPLE__) // Assume using Carbon on Mac. Is it worth continuing to try to build 2.8.3's QOSGWidget for Cocoa, has anyone ever made it work? Or will i need to bite the bullet and move over to OSG 2.9.12, which apparently has entirely different Qt / Cocoa integration. Thanks, Ben > -Original Message- > From: Chuck Shaw > Sent: Sunday, October 17, 2010 1:37 PM > To: osg-users@lists.openscenegraph.org > > Robert, > > Sure, i'll be happy to fix it. > > Chuck > -Original Message- > From: Robert Osfield > Sent: Sunday, October 17, 2010 11:46 AM > To: osg-users@lists.openscenegraph.org > > Hi Chuck, > > Could you have a bash at getting osgviewerQtWidget to compile with Qt's > Cocoa? > > Thanks, > Robert. > -Original Message- > From: Chuck Shaw > Sent: Saturday, October 16, 2010 9:16 PM > To: osg-users@lists.openscenegraph.org > > On Mac OSX, example_osgviewerQT and example_osgviewerQtWidget do not compile > on 64bit with Qt's Cocoa. They are hard coded to 32 bit Carbon. . > > i.e. > > #elif defined(__APPLE__) // Assume using Carbon on Mac. > > > Chuck ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] OSG 2.9.9 compile issues on Mac with Qt 4.6.3, other Qt issues
Robert, Sure, i'll be happy to fix it. Chuck -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=32800#32800 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] OSG 2.9.9 compile issues on Mac with Qt 4.6.3, other Qt issues
Hi Chuck, On Sun, Oct 17, 2010 at 5:15 AM, Chuck Shaw wrote: > On Mac OSX, example_osgviewerQT and example_osgviewerQtWidget do not compile > on 64bit with Qt's Cocoa. They are hard coded to 32 bit Carbon. . Could you have a bash at getting osgviewerQtWidget to compile with Qt's Cocoa? Thanks, Robert. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] OSG 2.9.9 compile issues on Mac with Qt 4.6.3, other Qt issues
On Mac OSX, example_osgviewerQT and example_osgviewerQtWidget do not compile on 64bit with Qt's Cocoa. They are hard coded to 32 bit Carbon. . i.e. #elif defined(__APPLE__) // Assume using Carbon on Mac. Chuck -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=32794#32794 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] OSG 2.9.9 compile issues on Mac with Qt 4.6.3, other Qt issues
Hi, I was referring to the osgViewerQt* examples - though I can see that is not clear in my original post! Thank you for the clarification. I have built all the QT examples in 2.9.9 at this point and they seem to be working great. Cheers, Erin -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=32054#32054 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] OSG 2.9.9 compile issues on Mac with Qt 4.6.3, other Qt issues
Hello Erin, Can you confirm that the 2 examples you mention in your post made it into the 2.9.9 developer release? In the previous post on this thread I mentioned more than 2 examples... Do you mean the osgQtWidgets and osgQtBrowser examples, or the osgViewerQtContext and osgViewerQtWidget examples? In any case, all four are in 2.9.9 (since it is made off the trunk). You just need to configure with Qt in CMake and they should be included in your build. CMake should find your Qt automatically, but if it doesn't or it finds the wrong one, I find putting the right path in the QT_QMAKE_EXECUTABLE variable and pressing Configure again makes it use that path for all other components it needs. Hope this helps, J-S -- __ Jean-Sebastien Guayjean-sebastien.g...@cm-labs.com http://www.cm-labs.com/ http://whitestar02.webhop.org/ ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] OSG 2.9.9 compile issues on Mac with Qt 4.6.3, other Qt issues
Hi JS, Can you confirm that the 2 examples you mention in your post made it into the 2.9.9 developer release? Thank you! Cheers, Erin -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=32029#32029 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] OSG 2.9.9 compile issues on Mac with Qt 4.6.3, other Qt issues
Hello Andrew, The Qt integration with Delta3D 2.3.0 under Windows is incredibly stable, so perhaps this should be something to have a look at (I speak from experience on using this package with Qt). Delta3D uses OpenSceneGraph for its rendering (see the particle editor example). However, I don't want to use Delta3D anymore as it is much larger than OSG itself and it isn't support on Mac. Well, it depends on what you mean by Qt integration - there are two angles: 1. Integrate an OSG window in a Qt window (i.e. have an OSG window inside your widget, and let it do its thing) 2. Integrate Qt widgets inside an OSG window (i.e. have Qt widgets as part of your scene). The osgQtWidgets and osgQtBrowser examples (and their component classes) implement number 2, and the osgViewerQT* examples implement number 1. Last I checked, Delta3D only implemented number 1, but some users were trying to implement number 2. What I'm working to improve is performance. The way Delta3D does its window integration (number 1) makes Qt drive the OSG rendering, so you lose all parallelism between OSG and Qt. Note that the osgViewerQtContext and osgViewerQtWidget also have this problem - anytime you have a Qt widget's repaint or a Qt timer calling viewer.frame(), that's bad IMHO. And the way the user I saw on a forum was proposing to implement number 2 was along the same lines. I currently have an implementation of number 1 which lets OSG run loose (completely parallel to Qt) which I have yet to submit, and our implementation of number 2 also lets OSG and Qt run in parallel (minus some locking that needs to occur at the right times, and threading issues that we fix as we find them as I mentioned in my previous post). So I think the stability issues you mention are just part of the evolution of these classes, they need more users to look at them to help make them better. But their low-level approach is better than what I've seen in other places (including what I've seen in Delta3D, but that might have changed). J-S -- __ Jean-Sebastien Guayjean-sebastien.g...@cm-labs.com http://www.cm-labs.com/ http://whitestar02.webhop.org/ ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] OSG 2.9.9 compile issues on Mac with Qt 4.6.3, other Qt issues
Hi J-S, Thanks for the information, and your work is very much appreciated. The Qt integration with Delta3D 2.3.0 under Windows is incredibly stable, so perhaps this should be something to have a look at (I speak from experience on using this package with Qt). Delta3D uses OpenSceneGraph for its rendering (see the particle editor example). However, I don't want to use Delta3D anymore as it is much larger than OSG itself and it isn't support on Mac. Cheers, - Andrew ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] OSG 2.9.9 compile issues on Mac with Qt 4.6.3, other Qt issues
Hi Andrew, I've used Qt under Windows and it appears to be quite stable with the OSG environment; I'm concerned with Qt + OSG stability under Mac. Has anyone successfully used this combination out there? I've been working on osgQtBrowser and osgQtWidgets (and the classes they demonstrate - QGraphicsViewAdapter, QWidgetImage and QWebViewImage) lately, but haven't used them on a Mac (or used a Mac at all, really :-) ). They're still work in progress even on Windows, so there may be stability issues I haven't found yet (and actually I've recently fixed a threading issue in their use that I'll submit back soon). So I'm afraid I can't help much. If you can build them in debug, and try running them in the debugger, you should be able to find the source of the crash pretty easily (crash bugs are generally easy to find and fix). Sorry I can't help more, J-S -- __ Jean-Sebastien Guayjean-sebastien.g...@cm-labs.com http://www.cm-labs.com/ http://whitestar02.webhop.org/ ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] OSG 2.9.9 compile issues on Mac with Qt 4.6.3, other Qt issues
Hi, Am 03.09.10 10:03, schrieb Robert Osfield: > It might be for simplicity we just go with the slow and build for only > for intel by default as well, and leave it to users to build for both > (via the ccmake architecture option) if they want to retain > portability to both architectures. > > Thoughts on this topic Mac dev? +1 from me. If anybody wants universal builds it's easy to configure via cmake / xcode. cheers, Stephan ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] OSG 2.9.9 compile issues on Mac with Qt 4.6.3, other Qt issues
A couple more comments: It's probably a good idea to use 'i386' compiles from now on (perhaps this should be the default for all Intel architecture machines, as Apple has not sold PPC machines for over 4 years now). I've used Qt under Windows and it appears to be quite stable with the OSG environment; I'm concerned with Qt + OSG stability under Mac. Has anyone successfully used this combination out there? Cheers, - Andrew ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] OSG 2.9.9 compile issues on Mac with Qt 4.6.3, other Qt issues
Hi Tat, Thanks for the tip, I recompiled for only target 'i386' and the compile & link worked for Qt 4.6.3 now. I believe there are still some issues with the Qt examples, there are a number of warnings and errors in the terminal (osgQtBrowser, osgviewerQtContext, osgQtWidgets, osgviewerQtWidget). Sometimes osgQtWidgets crashes immediately on startup. Is there is mix of compile flags / OS X version / Qt version which is known to be stable? Comments? Cheers, - Steve [My latest test was with Qt4.6.3, Mac OS X 10.5.8, OSG 2.9.9 SVN] ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] OSG 2.9.9 compile issues on Mac with Qt 4.6.3, other Qt issues
Hi Andrew, On Thu, Sep 2, 2010 at 8:31 PM, Andrew Lett wrote: > export DYLD_LIBRARY_PATH=/usr/local/lib:/usr/local/lib/osgPlugins-2.9.9 If you do need to add this line then you should point it to the parent directory to the osgPlugins-2.9.9 rather than the osgPlugins directory itself. The OSG appends the osgPlugins-2.9.9 by default when looking for plugins, and once a new release comes out it'll look for the appropriate plugin version i.e. osgPlugins-2.9.10. If you use your approach when you upgrade the OSG version it'll start trying to read the wrong plugins. > 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...) The hand maintained XCode projects are deprecated and have now been annexed to deprecated section of the OSG svn repository. In svn/trunk there isn't the old XCode directory anymore, one needs to use CMake to build XCode projects. > 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. Try svn/trunk. Also as Tat suggests the OSG builds both for both ppc and intel at the same time, but some 3rd party libs now just compile for intel. It might be for simplicity we just go with the slow and build for only for intel by default as well, and leave it to users to build for both (via the ccmake architecture option) if they want to retain portability to both architectures. Thoughts on this topic Mac dev? Robert. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] OSG 2.9.9 compile issues on Mac with Qt 4.6.3, other Qt issues
Hi, The errors say your QT libs are not built for ppc, but OSG frameworks are being built for ppc (besides i386), resulting undefined symbols. so getting rid of ppc from target architecture of cmake should solve the problem. Tat - Tatsuhiro Nishioka On 2010/09/03, at 4:31, Andrew Lett wrote: > > 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 > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] OSG 2.9.9 compile issues on Mac with Qt 4.6.3, other Qt issues
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 osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org