Trouble compiling OgreRenderer on OSX
Posted: Wed Jun 26, 2013 02:11
I am on OSX 10.8 in Xcode 4.6.3, using CMake 2.8.11 and Ogre 1.8.1 (May be 32-bit build. I Don't remember). I am having trouble finding which library file/directory for OGRE to use for compiling the CEGUI OgreRenderer. Cmake requires that I select a single file, not a directory. Mac does not have a single Ogre.a or Ogre.dylib file, but directories of multiple lib files. I am confused as to which one to use. I have tried:
and
but both fail. The Second produces the following error. Thanks for any help you can give.
Code: Select all
/Developer/SDKs/OgreSDK/lib/RenderSystem_GL.dylib
and
Code: Select all
/Developer/SDKs/OgreSDK/lib/Debug
but both fail. The Second produces the following error. Thanks for any help you can give.
Code: Select all
Ld build/lib/libCEGUIOgreRenderer-0.dylib normal x86_64
cd /Users/Sam/cegui-0.8.2
setenv MACOSX_DEPLOYMENT_TARGET 10.8
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch x86_64 -dynamiclib -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk -L/Users/Sam/cegui-0.8.2/build/lib -L/Developer/SDKs/OgreSDK/lib -F/Users/Sam/cegui-0.8.2/build/lib -filelist /Users/Sam/cegui-0.8.2/build/cegui/src/RendererModules/Ogre/cegui.build/Release/CEGUIOgreRenderer-0.build/Objects-normal/x86_64/CEGUIOgreRenderer-0.LinkFileList -install_name "@executable_path/../Frameworks/libCEGUIOgreRenderer-0.dylib" -mmacosx-version-min=10.8 /Developer/SDKs/OgreSDK/lib/RenderSystem_GL.dylib -single_module -o /Users/Sam/cegui-0.8.2/build/lib/libCEGUIOgreRenderer-0.dylib
Undefined symbols for architecture x86_64:
"Ogre::StringUtil::BLANK", referenced from:
CEGUI::OgreTexture::OgreTexture(CEGUI::String const&, CEGUI::Size<float> const&) in Texture.o
CEGUI::OgreTextureTarget::declareRenderSize(CEGUI::Size<float> const&) in TextureTarget.o
"Ogre::VertexData::VertexData(Ogre::HardwareBufferManagerBase*)", referenced from:
CEGUI::initialiseRenderOp(Ogre::RenderOperation&, Ogre::HardwareVertexBufferSharedPtr&, unsigned long) in GeometryBuffer.o
"Ogre::VertexData::~VertexData()", referenced from:
CEGUI::OgreGeometryBuffer::~OgreGeometryBuffer() in GeometryBuffer.o
CEGUI::OgreGeometryBuffer::syncHardwareBuffer() const in GeometryBuffer.o
"Ogre::ColourValue::White", referenced from:
CEGUI::OgreRenderer::initialiseRenderStateSettings() in Renderer.o
"Ogre::VertexElement::getTypeSize(Ogre::VertexElementType)", referenced from:
CEGUI::initialiseRenderOp(Ogre::RenderOperation&, Ogre::HardwareVertexBufferSharedPtr&, unsigned long) in GeometryBuffer.o
"Ogre::NedPoolingImpl::allocBytes(unsigned long, char const*, int, char const*)", referenced from:
CEGUI::initialiseRenderOp(Ogre::RenderOperation&, Ogre::HardwareVertexBufferSharedPtr&, unsigned long) in GeometryBuffer.o
CEGUI::OgreImageCodec::load(CEGUI::RawDataContainer const&, CEGUI::Texture*) in ImageCodec.o
CEGUI::OgreTexture::loadFromMemory(void const*, CEGUI::Size<float> const&, CEGUI::Texture::PixelFormat) in Texture.o
CEGUI::OgreRenderTarget<CEGUI::TextureTarget>::updateViewport() in TextureTarget.o
CEGUI::OgreRenderTarget<CEGUI::RenderTarget>::updateViewport() in WindowTarget.o
"Ogre::NedPoolingImpl::deallocBytes(void*)", referenced from:
CEGUI::initialiseRenderOp(Ogre::RenderOperation&, Ogre::HardwareVertexBufferSharedPtr&, unsigned long) in