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 > iPhone / iPod Touch SDK | Development Discussion
Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 06-29-2009, 11:50 AM
What's Jailbreak?
 
Join Date: Jan 2009
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Compiling on iPhone 3.0

Hello, I hope someone can help me out here. I was in the middle of developing an application on my iPhone before upgrading to 3.0. I followed the general setup given by this example:

Developing for the iphone using the open toolchain and SDK 2.0 headers - antirez weblog

Thus I was actually compiling the code on the phone its self...as this seemed like the easiest option for someone who doesn't own a mac. Now when I try to make my app I get:

/bin/sh: arm-apple-darwin9-gcc: command not found

When I look on Cydia, I can only find "GNU C Compiler" but when I try to install this it shows a depends on libgcc which it can't find (and neither can I when searching for it). Due to this it won't install.

Does anyone have any help to offer? Basic gist is that I want as easy of a way as possible to compile my appliation for my iPhone now that it's running 3.0. I'd prefer to get it working again to compile on the phone it's self, but if I have to switch to somehow compiling on my windows PC I will.

Thanks.
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #2  
Old 06-29-2009, 01:18 PM
What's Jailbreak?
 
Join Date: Jun 2009
Posts: 4
Thanks: 0
Thanked 1 Time in 1 Post

I have the exact same problem. It appears that libgcc is still not available for 3.0 yet. I've contacted several people to inquire about it, but have not heard a response.

It seems that you and I are one of a handful of people in this world that actually use iphone-gcc rather than cross-compiling.
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #3  
Old 06-30-2009, 04:25 PM
What's Jailbreak?
 
Join Date: Jun 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts

I had the same problem, I just downloaded the libgcc in this website : Section System - iPod Touch ?????? ????????! and now I can install GCC in Cydia
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #4  
Old 07-01-2009, 03:58 PM
What's Jailbreak?
 
Join Date: Jun 2009
Posts: 4
Thanks: 0
Thanked 1 Time in 1 Post

Thanks for the tip! It worked, I was able to install iphone-gcc and after fighting some header file confusion, I was able to re-compile my project. Unfortunately:

/usr/bin/ld: /usr/lib/libSystem.dylib unknown flags (type) of section 4 (__TEXT,__dof_magmalloc) in load command 0
/usr/bin/ld: /usr/lib/libstdc++.6.dylib unknown flags (type) of section 4 (__TEXT,__dof_cxa_runti) in load command 0
/usr/bin/ld: /usr/lib/libSystem.B.dylib unknown flags (type) of section 4 (__TEXT,__dof_magmalloc) in load command 0
/usr/bin/ld: /System/Library/PrivateFrameworks/JavaScriptCore.framework/JavaScriptCore unknown flags (type) of section 4 (__TEXT,__dof_JavaScrip) in load command 0
/usr/bin/ld: /System/Library/Frameworks/CoreAudio.framework/CoreAudio unknown flags (type) of section 4 (__TEXT,__dof_AudioHAL_) in load command 0
collect2: ld returned 1 exit status



It appears to be some linking issues still. Even "hello world" will not build. I'm guessing that libgcc does need to be updated and perhaps it was left off on purpose.
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #5  
Old 08-05-2009, 03:12 PM
What's Jailbreak?
 
Join Date: Jan 2009
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts

No updates on this topic anywhere on the web that I can find...how is everyone developing on Windows for jailbroken iphones on 3.0? I'd love to be able to get back to finishing up my XBMC remote app.

Thanks.

Last edited by deragun; 08-05-2009 at 03:14 PM..
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #6  
Old 08-05-2009, 03:41 PM
What's Jailbreak?
 
Join Date: Jun 2009
Posts: 4
Thanks: 0
Thanked 1 Time in 1 Post

Quote:
Originally Posted by deragun View Post
No updates on this topic anywhere on the web that I can find...how is everyone developing on Windows for jailbroken iphones on 3.0? I'd love to be able to get back to finishing up my XBMC remote app.

Thanks.
I got iphone-gcc to work for 3.0. Grab "fake-libgcc" from Cydia. It will provide the necessary pre-req's for iphone-gcc. My old apps now compile and link great!
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #7  
Old 08-06-2009, 05:06 AM
What's Jailbreak?
 
Join Date: Jun 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts

what repository ?
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #8  
Old 08-06-2009, 09:06 AM
What's Jailbreak?
 
Join Date: Jun 2009
Posts: 4
Thanks: 0
Thanked 1 Time in 1 Post

Quote:
Originally Posted by Ecirb67 View Post
what repository ?
My bad- I downloaded it and installed it manually. I believe this is the url I found it:

http://files.getdropbox.com/u/876743...honeos-arm.deb

It was written by Ryan Petrich (Clippy author).

Install with: dpkg -i fake-libgcc_1.0_iphoneos-arm.deb
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
The Following User Says Thank You to JeremyGrieshop For This Useful Post:
factro_ (09-20-2009)
  #9  
Old 08-11-2009, 10:24 AM
What's Jailbreak?
 
Join Date: Jan 2009
Posts: 5
Thanks: 1
Thanked 0 Times in 0 Posts
Cool Solution !!!

Your r the man !!!
thanks alot !!!!
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #10  
Old 08-24-2009, 07:43 AM
What's Jailbreak?
 
Join Date: Jan 2009
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Easy Solution That Works Perfectly

I tried this solution last night, and after less than 15 min, I was up and running. Flawless.

So, for anyone else trying to figure out how to build on the iphone again, this is your solution right here.

Thanks a ton JeremyGrieshop!
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #11  
Old 09-09-2009, 03:12 PM
What's Jailbreak?
 
Join Date: Sep 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts

I dpkg the fake-libgcc on the iphone and now when I try to compile a simple hello world program I am getting an error that "stdio.h is not found" same thing with c++ but instead it is complaining about iostream
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #12  
Old 09-29-2009, 12:39 PM
What's Jailbreak?
 
Join Date: Jan 2008
Posts: 15
Thanks: 3
Thanked 0 Times in 0 Posts

I'm having the exact same problem as mystikum on a clean restored and jailbroken ipod touch 1G.

Seems like this is a matter of a that could be solved by a symlink, where is gcc and g++ looking for these libraries, and where are they installed by fake-libgcc? If we can find these two locations then we can just link them.
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #13  
Old 09-30-2009, 12:38 PM
What's Jailbreak?
 
Join Date: Apr 2009
Device + Firmware: iPhone 3G S 3.0
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts

fake-libgcc just sets up some symlinks and enables apt to install iphone-gcc; to actually compile you will need headers (which you have to provide yourself)
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #14  
Old 09-30-2009, 01:08 PM
What's Jailbreak?
 
Join Date: Jan 2008
Posts: 15
Thanks: 3
Thanked 0 Times in 0 Posts

Thanks petrich, could you tell me where I could get the header files and what to do with them or point me to a link on how to do this. I'm a linux user I've never had to manually configure gcc before, it's just always there o_0
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #15  
Old 09-30-2009, 09:29 PM
Green Apple
 
Join Date: Dec 2008
Device + Firmware: iPhone 3GS 32 Gig 3.0
Posts: 40
Thanks: 3
Thanked 1 Time in 1 Post

That thing posted above worked for me, thanks!
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 > iPhone / iPod Touch SDK | Development Discussion

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



Go to Top
ModMyI

All times are GMT -6. The time now is 08:03 AM. 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