errors with xcode templates

Discussion of issues specific to mobile platforms such as iOS, Android, Symbian and Meego.
Post Reply
tdo1
Gnoblar
Posts: 12
Joined: Thu Jun 14, 2007 4:18 pm

errors with xcode templates

Post by tdo1 »

Hi, i have errors when i try to build the xcode templates with xcode 5.0.2 and iOS 7 and Ogre 1.9

I downloaded Ogre 1.9 here : https://bitbucket.org/sinbad/ogre/downl ... -downloads
and the iOS 7.0 libc++ Precompiled Dependencies here http://www.ogre3d.org/download/source

i put the dependencies folder in the Ogre sources and i use the script /OGRESDK/SDK/iOS/make_ios.sh to create the Ogre project.
Capture d’écran 2014-03-26 à 17.25.13.png
Capture d’écran 2014-03-26 à 17.25.13.png (45.98 KiB) Viewed 2685 times
after that i have a lot of files .a generated

here : /Users/tdo1/Documents/OGRESDK/SDK/iOS/sdk_contents/lib/Release
Capture d’écran 2014-03-26 à 17.28.58.png
Capture d’écran 2014-03-26 à 17.28.58.png (205.08 KiB) Viewed 2685 times
and here : /Users/tdo1/Documents/OGRESDK/SDK/iOS/build/sdk/lib/Release
Capture d’écran 2014-03-26 à 17.28.35.png
Capture d’écran 2014-03-26 à 17.28.35.png (203.17 KiB) Viewed 2685 times
but when i use these files in the xcode template ( Xcode 4/5 templates OS X & iOS (1.9) http://www.ogre3d.org/download/tools) i have this error :

Code: Select all

Undefined symbols for architecture armv7s:
  "Ogre::EAGLSupport::EAGLSupport()", referenced from:
      Ogre::GLESRenderSystem::GLESRenderSystem() in libRenderSystem_GLESStatic.a(OgreGLESRenderSystem.o)
ld: symbol(s) not found for architecture armv7s
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I don't know if it's the correct method to use, i have already build ogre 1.8 on xcode 4.6.2 and everything works but no with xcode 5 because i have a lot of linker error on device.

So now i try to build Ogre 1.9 with xcode 5 to update my project.

Thanks for your help. and sorry for my bad english. :oops:
jamiebullock
Gnoblar
Posts: 9
Joined: Fri Mar 21, 2014 10:35 am

Re: errors with xcode templates

Post by jamiebullock »

Hi,

Did you manage to get this working in the end? If so, what were the steps?

Thanks,

Jamie
tdo1
Gnoblar
Posts: 12
Joined: Thu Jun 14, 2007 4:18 pm

Re: errors with xcode templates

Post by tdo1 »

No, but if i change in the template, GLES to GLES 2 everything works, but i have a very bad performance in Debug.
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: errors with xcode templates

Post by masterfalcon »

The OS X and iOS 1.9 SDKs and Xcode templates have been updated. Please download them to see if they help with the issue.
farrer
Halfling
Posts: 64
Joined: Mon Sep 12, 2011 7:35 pm
x 13

Re: errors with xcode templates

Post by farrer »

masterfalcon wrote:The OS X and iOS 1.9 SDKs and Xcode templates have been updated. Please download them to see if they help with the issue.
For me they doesn't help at all. Same link error with "Ogre::EAGLSupport::EAGLSupport()" when trying to link my applications (which used to work on Xcode 4) or the template (need to do some changes on the template too, to make it compile the new Overlay system) on xcode 5 using both the SDK or a compile from 1.9 repository.

Strangely, the Sample Application worked (and run without problems on my devices). Maybe the way it links with is different from the template (as created with cmake)...
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: errors with xcode templates

Post by masterfalcon »

I would guess that you are trying to build the template app to include the armv7s architecture but you did not when you built Ogre.
farrer
Halfling
Posts: 64
Joined: Mon Sep 12, 2011 7:35 pm
x 13

Re: errors with xcode templates

Post by farrer »

Not sure, but I compiled and linked with success with the GLES2 for both cases (precompiled sdk and compiled by source).

As it was proposed previously [1] to remove GLES 1.x support from Ogre, maybe the link error isn't so relevant. For me, I'm ok using GLES2.


[1]: http://www.ogre3d.org/forums/viewtopic.php?f=21&t=62121
Post Reply