there is some link error , help

Discussion of issues specific to mobile platforms such as iOS, Android, Symbian and Meego.
Post Reply
juckerpp
Gnoblar
Posts: 8
Joined: Thu Jan 31, 2013 5:01 am

there is some link error , help

Post 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 ....

User avatar
masterfalcon
OGRE Team Member
OGRE Team Member
Posts: 4270
Joined: Sun Feb 25, 2007 4:56 am
Location: Bloomington, MN
x 126
Contact:

Re: there is some link error , help

Post 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.

juckerpp
Gnoblar
Posts: 8
Joined: Thu Jan 31, 2013 5:01 am

Re: there is some link error , help

Post 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

Post Reply