Newbie : errors when compiling iphone samples

This topic contains 7 replies, has 2 voices, and was last updated by  skyrick 7 years, 3 months ago.

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #30193

    skyrick
    Member

    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) ? 🙁

    #34059

    Gordon
    Moderator

    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?

    #34060

    skyrick
    Member

    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

    #34061

    skyrick
    Member

    And when I double click on the “OGLES2Tools.xcode”

    I have not “Build & Run” button …

    #34062

    Gordon
    Moderator

    You can choose build from the Build menu.

    #34063

    skyrick
    Member

    From the Build menu : Build succeeded for OGLES2Tools.xcode …

    FYI : I use the iPhone SDK 4

    Any Ideas ? :/

    #34064

    Gordon
    Moderator

    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.

    #34065

    skyrick
    Member

    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

Viewing 8 posts - 1 through 8 (of 8 total)
You must be logged in to reply to this topic.