Dear Ogre users,
I just added a code snippet in the wiki OgreQt
http://www.ogre3d.org/tikiwiki/QtOgre that fixed most of my Mac OS related issues.
Indeed, I have got now a minimal project Qt 4.7.4 & Ogre 1.7.3 (taken from the original wiki OgreQt code and following suggestions in the forum) that runs successfully on Mac OSX 10.6 using Cocoa (Qt's choice). You can find the source code attached and download the full project at
http://www.cyberbotics.com/files/beta/A ... or_Mac.zip.
Still, I am annoyed by two series of warnings:
2011-12-06 17:00:26.230 main[14966:903] invalid drawable
2011-12-06 17:00:33.609 main[14966:903] *** __NSAutoreleaseNoPool(): Object 0x38a30e0 of class NSCFNumber autoreleased with no pool in place - just leaking
2011-12-06 17:00:33.610 main[14966:903] *** __NSAutoreleaseNoPool(): Object 0x38058b0 of class NSConcreteValue autoreleased with no pool in place - just leaking
2011-12-06 17:00:33.611 main[14966:903] *** __NSAutoreleaseNoPool(): Object 0x2425340 of class NSCFNumber autoreleased with no pool in place - just leaking
2011-12-06 17:00:33.612 main[14966:903] *** __NSAutoreleaseNoPool(): Object 0x2443920 of class NSConcreteValue autoreleased with no pool in place - just leaking
2011-12-06 17:00:33.612 main[14966:903] *** __NSAutoreleaseNoPool(): Object 0x382e3c0 of class NSCFDictionary autoreleased with no pool in place - just leaking
The first warning (invalid drawable) is issued when calling mOgreRoot->createRenderWindow().
I already tried to set many different Qt widget attributes through setAttribute(Qt::WidgetAttribute) in order fix them, but so far my attempts remain unsuccessful. So I would be glad to share your insight about it.
The other warnings are issued when the destructor of OgreWidget is called, more precisely when the Ogre::Root::unloadPlugin() method is triggered by the "delete mOgreRoot" instruction.
I already tried to free mOgreWindow instead or to reset the render system to NULL, but the same warning keeps prompting.
With best regards.
PS: I noticed that adding the line
Code: Select all
params["FSAA"] = Ogre::StringConverter::toString(4);
before the creation of mOgreWindow removes the complain about the leaks but causes an "invalid pixel" warning followed by an "invalid context" warning.
You do not have the required permissions to view the files attached to this post.