Mrbudbeezy / iphone-dev

Automatically exported from code.google.com/p/iphone-dev
0 stars 0 forks source link

Windows toolchain, failed to compile example code #111

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Install toolchain for windows like
http://wiki.iphonegameover.com/Windows_Cygwin_Binary_Toolchain_Installation
2. Download example navigation bar.
http://wiki.iphonegameover.com/Navigation_Bar_Tutorial
3. Try to compile under cygwin by make all

Now instead of compiling i got following error:

arm-apple-darwin-gcc -c -Wall -pipe -ansi -O3  main.m -o main.o
arm-apple-darwin-gcc -c -Wall -pipe -ansi -O3  DSNavigationBar.m -o
DSNavigationBar.o
arm-apple-darwin-gcc -lobjc -framework CoreFoundation -framework Foundation
-framework UIKit -framework LayerKit -framework CoreGraphics -o
DSNavigationBar main
.o DSNavigationBar.o
/usr/local/bin/arm-apple-darwin-ld: can't locate file for: -lobjc
collect2: ld returned 1 exit status
make: *** [DSNavigationBar] Error 1

What can be wrong?

Original issue reported on code.google.com by Johnny31...@gmail.com on 7 Jan 2008 at 12:59

GoogleCodeExporter commented 8 years ago
It looks like gcc requires file libobjc.a or libobjc.dylib in cygwin 
directories. It
also looks like this file should be in iPhone filesystem archive in /usr/lib 
but mine
filesystem archive does'nt contain it. I got filesystem from iTouch 1.1.1. Can 
anyone
verify if in iPhone 1.1.1 or so this file exists?

Original comment by Johnny31...@gmail.com on 7 Jan 2008 at 10:11

GoogleCodeExporter commented 8 years ago
Solved - filesystem from iphone 1.1.1 unpacked and decrypted on mac helped.

Original comment by Johnny31...@gmail.com on 9 Jan 2008 at 11:39

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
You can attack filesystem here? 
I have the same error. but i hasn't used MAC OS so i need filesystem from you.
Thank you so much.

Original comment by kes...@gmail.com on 18 May 2008 at 1:55

GoogleCodeExporter commented 8 years ago
http://wiki.iphonegameover.com/Windows_Cygwin_Binary_Toolchain_Installation

this link is broken.

Original comment by bettyl...@gmail.com on 23 Apr 2010 at 12:00