Home User CP Donate Chat Register Today!  
  Get New posts Faq / Help?
   


Go Back   Hackint0sh > Projects and Hacks > iPhone > Applications & Development > iPhone Developer Exchange

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-07-2009, 04:50 AM
Charybdis
Status: Offline
Junior Member
 
Join Date: Sep 2009
Posts: 8
Rep Power: 0
Charybdis is on a distinguished road
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!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 10-11-2009, 11:00 AM
Singaja
Status: Offline
Member
 
Join Date: Oct 2007
Posts: 55
Rep Power: 5
Singaja is on a distinguished road
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.
__________________
Game remake
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 10-12-2009, 10:22 PM
Charybdis
Status: Offline
Junior Member
 
Join Date: Sep 2009
Posts: 8
Rep Power: 0
Charybdis is on a distinguished road
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!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Sponsored links Remove advertisements
Advertisement
Advertisement

Reply

Bookmarks

Tags
accelerometer, example code, toolchain

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +2. The time now is 05:17 AM.



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.2 Ad Management by RedTyger
follow us on Twitter!

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105