Trouble compiling OgreRenderer on OSX

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

Sonblind
Just popping in
Just popping in
Posts: 4
Joined: Mon Jun 24, 2013 00:25

Trouble compiling OgreRenderer on OSX

Postby Sonblind » 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:

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

Return to “Help”

Who is online

Users browsing this forum: No registered users and 19 guests