Results 1 to 3 of 3
Discuss Apple Accelerometer Example in Open Toolchain - help! at the iPhone Developer Exchange - Hackint0sh.org; Hey guys! I've been having some trouble setting up the accelerometer to compile with the ...
  1. #1
    Newbie Array

    Join Date
    Sep 2009
    Posts
    8
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default Apple Accelerometer Example in Open Toolchain - help!

    Hey guys!

    I've been having some trouble setting up the accelerometer to compile with the open toolchain. I'm quite new to ObjC but I'd really like to see the sample accelerometer graph compiled through the toolchain.

    I've setup my makefile properly (a hello world program worked with it) but I'm getting errors like the following:

    Code:
    Classes/AppDelegate.m:6: error: no declaration of property 'window' found in the interface
    Classes/AppDelegate.m:6: error: no declaration of property 'viewController' found in the interface
    Classes/AppDelegate.m: In function '-[AppDelegate applicationDidFinishLaunching:]':
    Classes/AppDelegate.m:11: error: request for member 'window' in something not a structure or union
    Classes/AppDelegate.m:14: error: 'viewController' undeclared (first use in this function)
    Classes/AppDelegate.m:14: error: (Each undeclared identifier is reported only once
    Classes/AppDelegate.m:14: error: for each function it appears in.)
    Classes/AppDelegate.m:14: error: 'aViewController' undeclared (first use in this function)
    Classes/AppDelegate.m:15: error: request for member 'viewController' in something not a structure or union
    Classes/AppDelegate.m:22: error: 'window' undeclared (first use in this function)
    Classes/AppDelegate.m: In function '-[AppDelegate dealloc]':
    Classes/AppDelegate.m:28: error: 'window' undeclared (first use in this function)
    Classes/AppDelegate.m:29: error: 'viewController' undeclared (first use in this function)
    Classes/AppDelegate.m:30: error: no super class declared in @interface for 'AppDelegate'
    make: *** [Classes/AppDelegate.o] Error 1
    It seems to me like there might be some kind of error with my headers, but I just extracted them from the 3.1 SDK from apple and a hello world program worked.

    Does anyone know what I've done wrong, or would they even be willing to go so far as fixing and posting the code themselves?

    I'm running the toolchain on the iphone itself.

    Thank you very much!



  2. #2
    Professional Array

    Join Date
    Oct 2007
    Posts
    58
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    9

    Default

    I have ported the Apple's accelerometer demo application to open toolchain so give it a try. Check out main.m and applicationDidFinishLaunching in AppDelegate.m. The biggest chalenge was to recreate the work done by interface builder , since there are no tools to compile xib. You can find my port here.

  3. #3
    Newbie Array

    Join Date
    Sep 2009
    Posts
    8
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    Hey, Awesome!! Thank you so much!

    I'm going to give a look at this and figure out what exactly was going on.

    Thank you!

 

 

Similar Threads

  1. [Help] Prolem with installing iPhone Open ToolChain
    By satashi in forum iPhone Developer Exchange
    Replies: 2
    Last Post: 11-25-2011, 09:24 AM
  2. Xcode Open Toolchain Application link error?
    By syamooo in forum iPhone Developer Exchange
    Replies: 1
    Last Post: 09-28-2010, 06:59 AM
  3. Open Toolchain
    By jangir in forum iPhone Developer Exchange
    Replies: 0
    Last Post: 06-10-2010, 02:18 PM
  4. [XCode Template] for SDK and Open Toolchain API in firmware 2.0
    By javacom in forum iPhone Developer Exchange
    Replies: 143
    Last Post: 04-11-2009, 07:23 PM
  5. Open toolchain odcctools build error
    By binli120 in forum Free Toolchain Software (Cydia App's)
    Replies: 0
    Last Post: 04-10-2008, 06:32 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Powered by vBulletin®
Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.
Search Engine Friendly URLs by vBSEO
(c) 2006-2012 Hackint0sh.org
All times are GMT +2. The time now is 06:19 PM.
twitter, follow us!