Page 1 of 1

there is some link error , help

Posted: Thu Jan 31, 2013 5:04 am
by juckerpp
platform : xcode

Ogre Templates Iphone application

there is some link error :

Undefined symbols for architecture i386:
"Ogre::GLES2StateCacheManagerImp::bindGLBuffer(unsigned int, unsigned int, unsigned int, bool)", referenced from:
Ogre::GLES2StateCacheManager::bindGLBuffer(unsigned int, unsigned int, bool) in libRenderSystem_GLES2Static.a(OgreGLES2StateCacheManager.o)
"Ogre::GLES2StateCacheManagerImp::deleteGLBuffer(unsigned int, unsigned int, unsigned int, bool)", referenced from:
Ogre::GLES2StateCacheManager::deleteGLBuffer(unsigned int, unsigned int, bool) in libRenderSystem_GLES2Static.a(OgreGLES2StateCacheManager.o)
"Ogre::GLES2StateCacheManagerImp::activateGLTextureUnit(unsigned long)", referenced from:
Ogre::GLES2StateCacheManager::activateGLTextureUnit(unsigned char) in libRenderSystem_GLES2Static.a(OgreGLES2StateCacheManager.o)
ld: symbol(s) not found for architecture i386


if I set define OGRE_STATIC_GLES 1 no problem , but i want use opengl es 2.0 ....

Re: there is some link error , help

Posted: Thu Jan 31, 2013 7:07 am
by masterfalcon
When was the last time that you built Ogre? You may need to reconfigure with CMake and rebuild. Those functions are somewhat new.

Re: there is some link error , help

Posted: Wed Feb 06, 2013 9:14 am
by juckerpp
I found these function on my ogre project (.cpp and .h already have) these funciton

"Ogre::GLES2StateCacheManagerImp::activateGLTextureUnit(unsigned long)", referenced from:
Ogre::GLES2StateCacheManager::activateGLTextureUnit(unsigned char) in libRenderSystem_GLES2Static.a(OgreGLES2StateCacheManager.o)
"Ogre::GLES2StateCacheManagerImp::deleteGLBuffer(unsigned int, unsigned int, unsigned int, bool)", referenced from:
Ogre::GLES2StateCacheManager::deleteGLBuffer(unsigned int, unsigned int, bool) in libRenderSystem_GLES2Static.a(OgreGLES2StateCacheManager.o)
"Ogre::GLES2StateCacheManagerImp::bindGLBuffer(unsigned int, unsigned int, unsigned int, bool)", referenced from:
Ogre::GLES2StateCacheManager::bindGLBuffer

but when I open define the OGRE_STATIC_GLES2 1 , there will be appear link error , plz help