Hi,
I’ve an other problem with Xcode compilation.
(see the screen copy)
Here, I tried to open samples or training courses but this is the same things (in simulator 3.2 or 4.0).
Any ideas (I’m newbie in OGL & Xcode) ?
I can’t see what the actual error is in that screenshot - would it be possible for you to copy and paste the whole error output here?
Also, if you open the OGLES2Tools project by itself, does it fail as well?
Copy/Paste of all errors :
Ld build/Release-iphonesimulator/OGLES2Skybox2.app/OGLES2Skybox2 normal i386
cd /Users/skyrick/Desktop/SDKPackage/Demos/Skybox2/OGLES2/Build/iPhone
setenv MACOSX_DEPLOYMENT_TARGET 10.5
setenv PATH “/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin”
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/g+±4.2 -arch i386 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.0.sdk -L/Users/skyrick/Desktop/SDKPackage/Demos/Skybox2/OGLES2/Build/iPhone/build/Release-iphonesimulator -L/Users/skyrick/Desktop/SDKPackage/Demos/Skybox2/OGLES2/Build/iPhone/build/Debug-iphonesimulator -F/Users/skyrick/Desktop/SDKPackage/Demos/Skybox2/OGLES2/Build/iPhone/build/Release-iphonesimulator -filelist /Users/skyrick/Desktop/SDKPackage/Demos/Skybox2/OGLES2/Build/iPhone/build/OGLES2Skybox2.build/Release-iphonesimulator/OGLES2Skybox2.build/Objects-normal/i386/OGLES2Skybox2.LinkFileList -mmacosx-version-min=10.5 -Xlinker -objc_abi_version -Xlinker 2 -framework Foundation -framework UIKit -framework CoreGraphics -framework QuartzCore -framework OpenGLES /Users/skyrick/Desktop/SDKPackage/Tools/OGLES2/Build/iPhone/build/Release-iphonesimulator/libOGLES2Tools.a -o /Users/skyrick/Desktop/SDKPackage/Demos/Skybox2/OGLES2/Build/iPhone/build/Release-iphonesimulator/OGLES2Skybox2.app/OGLES2Skybox2
Undefined symbols:
“OBJC_CLASS$_NSString”, referenced from:
objc-class-ref-to-NSString in AppController.o
“OBJC_CLASS$_NSAutoreleasePool”, referenced from:
objc-class-ref-to-NSAutoreleasePool in main.o
“OBJC_CLASS$_EAGLContext”, referenced from:
objc-class-ref-to-EAGLContext in EAGLView.o
“OBJC_METACLASS$_UIView”, referenced from:
OBJC_METACLASS$_EAGLView in EAGLView.o
“OBJC_CLASS$_NSDictionary”, referenced from:
objc-class-ref-to-NSDictionary in EAGLView.o
“OBJC_CLASS$_UIScreen”, referenced from:
objc-class-ref-to-UIScreen in AppController.o
“_objc_msgSendSuper2”, referenced from:
-[EAGLView dealloc] in EAGLView.o
-[EAGLView initWithFrame:pixelFormat:depthFormat:stencilFormat:preserveBackbuffer:] in EAGLView.o
-[AppController dealloc] in AppController.o
“OBJC_CLASS$_UIView”, referenced from:
OBJC_CLASS$_EAGLView in EAGLView.o
“OBJC_CLASS$_NSTimer”, referenced from:
objc-class-ref-to-NSTimer in AppController.o
“OBJC_CLASS$_UIApplication”, referenced from:
objc-class-ref-to-UIApplication in AppController.o
“__objc_empty_vtable”, referenced from:
OBJC_METACLASS$_EAGLView in EAGLView.o
OBJC_CLASS$_EAGLView in EAGLView.o
OBJC_METACLASS$_AppController in AppController.o
OBJC_CLASS$_AppController in AppController.o
“OBJC_CLASS$_CAEAGLLayer”, referenced from:
objc-class-ref-to-CAEAGLLayer in EAGLView.o
“OBJC_CLASS$_UIWindow”, referenced from:
objc-class-ref-to-UIWindow in AppController.o
“OBJC_CLASS$_NSBundle”, referenced from:
objc-class-ref-to-NSBundle in AppController.o
“OBJC_CLASS$_UIAccelerometer”, referenced from:
objc-class-ref-to-UIAccelerometer in AppController.o
“OBJC_CLASS$_NSNumber”, referenced from:
objc-class-ref-to-NSNumber in EAGLView.o
“OBJC_METACLASS$_NSObject”, referenced from:
OBJC_METACLASS$_EAGLView in EAGLView.o
OBJC_METACLASS$_AppController in AppController.o
OBJC_METACLASS$_AppController in AppController.o
“OBJC_CLASS$_UIAlertView”, referenced from:
objc-class-ref-to-UIAlertView in AppController.o
“OBJC_CLASS$_NSObject”, referenced from:
OBJC_CLASS$_AppController in AppController.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
You can choose build from the Build menu.
From the Build menu : Build succeeded for OGLES2Tools.xcode …
FYI : I use the iPhone SDK 4
Any Ideas ?
In the top left corner of the project window you have “Simulator - 3.0 | Debug…” selected. Can you select a newer version of the SDK like “Simulator -3.2 | Debug…”?
The build doesn’t seem to be able to find the object file for NSString which makes me wonder if the 3.0 SDK isn’t installed.
Strange … If I select a newer version of SDK like 3.2 or 4.0 … I’ve always the “Simulator - 3.0 | Debug…” selected…
FYI : if I create a new project with the iPhone SDK template “OpenGL ES Application”, I can choose “Simulator - 4.0 | Debug…” and it build very well … with the 3.2 too …
Any Ideas ? skyrick2010-06-29 16:57:52