Linking MyGUI for iOS

affentanz

21-11-2014 12:37:43

I got precompiled static mygui (3.2) libs for iOS from this thread http://www.ogre3d.org/forums/viewtopic.php?f=21&t=78095 and I'm trying to link them to my ogre (1.9) project.

It compiles ok but there are several linker errors in xcode:


Undefined symbols for architecture armv7:
"Ogre::Image::loadDynamicImage(unsigned char*, unsigned long, unsigned long, unsigned long, Ogre::PixelFormat, bool, unsigned long, unsigned long)", referenced from:
Ogre::Image::loadDynamicImage(unsigned char*, unsigned long, unsigned long, Ogre::PixelFormat) in libMyGUI.OgrePlatform.a(MyGUI_OgreTexture.o)
"Ogre::Image::save(std::string const&)", referenced from:
MyGUI::OgreTexture::saveToFile(std::string const&) in libMyGUI.OgrePlatform.a(MyGUI_OgreTexture.o)
"Ogre::TextureManager::getByName(std::string const&, std::string const&)", referenced from:
MyGUI::OgreRenderManager::getTexture(std::string const&) in libMyGUI.OgrePlatform.a(MyGUI_OgreRenderManager.o)
MyGUI::OgreTexture::loadFromFile(std::string const&) in libMyGUI.OgrePlatform.a(MyGUI_OgreTexture.o)
"Ogre::HighLevelGpuProgramManager::createProgram(std::string const&, std::string const&, std::string const&, Ogre::GpuProgramType)", referenced from:
MyGUI::OgreRenderManager::setRenderSystem(Ogre::RenderSystem*) in libMyGUI.OgrePlatform.a(MyGUI_OgreRenderManager.o)
"Ogre::ResourceGroupManager::findResourceFileInfo(std::string const&, std::string const&, bool)", referenced from:
MyGUI::OgreDataManager::getDataListNames(std::string const&, bool) in libMyGUI.OgrePlatform.a(MyGUI_OgreDataManager.o)
"MyGUI::LayoutManager::loadLayout(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, MyGUI::Widget*)", referenced from:
GUISystem::initGUIComponent(std::__1::shared_ptr<Component>) in GUISystem.o
"MyGUI::LayoutManager::unloadLayout(std::__1::vector<MyGUI::Widget*, std::__1::allocator<MyGUI::Widget*> >&)", referenced from:
GUISystem::stop() in GUISystem.o
GUISystem::removeGUIComponent(std::__1::shared_ptr<Component>) in GUISystem.o
"MyGUI::LayerManager::isExist(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const", referenced from:
DebugView::DebugView() in DebugView.o
"MyGUI::Gui::initialise(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)", referenced from:
Engine::setupGuiSystem() in Engine.o
"MyGUI::LogManager::createDefaultSource(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)", referenced from:
MyGUI::OgrePlatform::initialise(Ogre::RenderWindow*, Ogre::SceneManager*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) in Engine.o
"MyGUI::UString::UString(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)", referenced from:
DebugView::update() in DebugView.o
GUISystem::handleEvent(GameEvent const&) in GUISystem.o
"Ogre::ResourceGroupManager::openResource(std::string const&, std::string const&, bool, Ogre::Resource*)", referenced from:
MyGUI::OgreDataManager::getData(std::string const&) in libMyGUI.OgrePlatform.a(MyGUI_OgreDataManager.o)
"MyGUI::OgreDataManager::initialise(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)", referenced from:
MyGUI::OgrePlatform::initialise(Ogre::RenderWindow*, Ogre::SceneManager*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) in Engine.o
"MyGUI::Gui::findWidgetT(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, bool)", referenced from:
GUISystem::handleEvent(GameEvent const&) in GUISystem.o
MyGUI::TextBox* MyGUI::Gui::findWidget<MyGUI::TextBox>(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, bool) in GUISystem.o
MyGUI::Button* MyGUI::Gui::findWidget<MyGUI::Button>(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, bool) in GUISystem.o
"MyGUI::Gui::createWidgetT(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, MyGUI::types::TCoord<int> const&, MyGUI::Align, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)", referenced from:
MyGUI::EditBox* MyGUI::Gui::createWidget<MyGUI::EditBox>(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, MyGUI::types::TCoord<int> const&, MyGUI::Align, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) in DebugView.o
MyGUI::TextBox* MyGUI::Gui::createWidget<MyGUI::TextBox>(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, MyGUI::types::TCoord<int> const&, MyGUI::Align, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) in DebugView.o
MyGUI::Button* MyGUI::Gui::createWidget<MyGUI::Button>(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, MyGUI::types::TCoord<int> const&, MyGUI::Align, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) in DebugView.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)


I think this problem is related to linking mygui correctly because without mygui the app builds ok. Maybe someone has done this already? Please post what you have in your settings!

Any help is appreciated! I can post more infos if something is missing. Just tell me what's necessary!

AlekseevAV

27-11-2016 11:07:46

Have you solved your problem? I have the same one.
I know, it was 2 years ago, but maybe you can help me?