PDA

View Full Version : MacOsX + QtCreator + Ogre



bunjee
11th February 2010, 15:42
Hey guys I'm trying to link a Qt library with Ogre on MacOSX.

When using Xcode with the following command line, it compiles:


/Developer/usr/bin/g++-4.0 -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk -L/Users/benjaminarnaud/dev/xcode/testOgre/build/Debug -L/Users/benjaminarnaud/dev/xcode/testOgre/../../workspace/sky/lib -F/Users/benjaminarnaud/dev/xcode/testOgre/build/Debug -filelist /Users/benjaminarnaud/dev/xcode/testOgre/build/testOgre.build/Debug/testOgre.build/Objects-normal/i386/testOgre.LinkFileList -mmacosx-version-min=10.5 -framework Carbon /Users/benjaminarnaud/dev/xcode/testOgre/../../workspace/sky/lib/Ogre_d -o /Users/benjaminarnaud/dev/xcode/testOgre/build/Debug/testOgre.app/Contents/MacOS/testOgre

When using QtCreator it crashes like following:


g++ -headerpad_max_install_names -arch i386 -single_module -dynamiclib -o libSkGraphicsEngineD.dylib WControllerGraphicsEngine.o WPluginGraphicsEngine.o moc_WControllerGraphicsEngine.o moc_WPluginGraphicsEngine.o -F/Library/Frameworks -L/Library/Frameworks -L../../lib -lSkCoreD -lSkGuiD -framework Ogre -framework QtGui -framework QtCore
Undefined symbols:
"Ogre::NedPoolingImpl::deallocBytes(void*)", referenced from:
Ogre::NedPoolingPolicy::deallocateBytes(void*) in WControllerGraphicsEngine.o
"Ogre::NedPoolingImpl::allocBytes(unsigned long, char const*, int, char const*)", referenced from:
Ogre::NedPoolingPolicy::allocateBytes(unsigned long, char const*, int, char const*)in WControllerGraphicsEngine.o
ld: symbol(s) not found
collect2: ld returned 1 exit status

Any idea ?

bunjee
14th February 2010, 13:08
Solved:

http://www.ogre3d.org/forums/viewtopic.php?f=1&t=55548

omolina
8th July 2011, 02:53
Sorry bunjee, you can show me the .pro.

I try compile with QtCreator but I cant not.

thanks a lot.

My .pro File is http://pastebin.com/kbB59GZA