The ModMyTM Family of Sites:
ModMyMotoModMyiModMyGphone




 
 
Register or Connect with Facebook

Discuss AppStore Apps | Browse / Search Cydia | MMi Cydia Stats




  Apple Forums & iPhone Forums, Mods, Hacks, News, Themes, Downloads, and more! | ModMyi.com > 3rd Party Apps For iPhone | iPod Touch > Native iPhone / iPod Touch App Launches
Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 08-01-2007, 09:39 PM
What's Jailbreak?
 
Join Date: Jul 2007
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Getting the toolchain to work

So, having got ssh set up, I wanted to try out the application toolchain... Has anyone got this to work on a Mac ? Mine seems to be searching /usr/include/... rather than /Developer/SDKs/iPhone/include/... for files.

If I put a -v on the gcc driver, I get the following output:

Code:
[iphone/programs/helloworld]% make
arm-apple-darwin-cc -v -c   hello.m -o hello.o
/Developer/SDKs/iPhone/bin/llvm-gcc -E -U__i386__ -U__ppc__ -D__arm__ -isystem /Developer/SDKs/iPhone/include -o /tmp/JWyWzv.i hello.m 
In file included from /usr/include/sys/types.h:69,
                 from /System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:11,
                 from /Developer/SDKs/iPhone/include/CoreGraphics/CGDirectDisplay.h:15,
                 from /Developer/SDKs/iPhone/include/CoreGraphics/CoreGraphics.h:19,
                 from /Developer/SDKs/iPhone/include/UIKit/UIKit.h:3,
                 from hello.m:1:
/usr/include/sys/cdefs.h:335:4: error: #error Unknown architecture
It seems to be using /usr/include/sys/types.h whereas there's a perfectly serviceable one in /Developer/SDKs/iPhone/include/arm/types.h which I think it ought to be picking up instead...

Anyone ?

Replying to myself, but if anyone else needs to know, there's a HOWTO for getting the toolchain up and running (there are more steps than in the wiki) at http://ellkro.jot.com/HowToBuildObjCApps.

Following this creates a toolchain that actually builds the sample 'helloworld' binary for me.

Last edited by Spaced Cowboy; 08-02-2007 at 12:11 PM.. Reason: Automerged Doublepost
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #2  
Old 08-15-2007, 07:31 PM
What's Jailbreak?
 
Join Date: Jul 2007
Posts: 25
Thanks: 1
Thanked 1 Time in 1 Post

I read and re-read the instructions in your link. I think I understand what is happening.....to develop I need to move a file from the iphone onto the PC? The section three of your linked instructions I had a hard time understanding what was hapening simply by reading - some tips on section 3 would be cool. You compiled hello world on a PC?
Where did you get the cross compiler? Can you provide a link? Thanks.
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #3  
Old 08-21-2007, 05:11 PM
What's Jailbreak?
 
Join Date: Jul 2007
Posts: 5
Thanks: 1
Thanked 0 Times in 0 Posts

I'm having some trouble myself. I think I've installed the toolchain but whenever I try to run make on the Hello App I get:
Code:
make: Nothing to be done for `all'.
I used the iPhoneToolchainv04.dmg to install
I think something might be wrong with my PATH but it looks fine.

Edit:
Okay I decided to just build the toolchain but now when I run the configure I get "configure: error: libstreams's header is missing!" I have libstreams installed with ports. Any ideas?

Last edited by asdfeeee; 08-21-2007 at 10:48 PM.. Reason: Automerged Doublepost
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
Reply

  Apple Forums & iPhone Forums, Mods, Hacks, News, Themes, Downloads, and more! | ModMyi.com > 3rd Party Apps For iPhone | iPod Touch > Native iPhone / iPod Touch App Launches

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 On
Trackbacks are On
Pingbacks are On
Refbacks are On



Go to Top
ModMyI

All times are GMT -6. The time now is 04:39 PM. Powered by vBulletin® Version 3.8.4
If you need Dedicated Server Hosting, you should check out SingleHop. | Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.0 Copyright © 2007-09 by ModMy, LLC. All rights reserved.

iPhone News / iPhone Forums / Apple News / Apple Forums / RSS / Contact Us / / Privacy Statement / Top