Open GoogleCodeExporter opened 8 years ago
Ok - it looks like installing 'patch' is the fix, ie at the beginning:
apt-get install iphone-gcc make ldid patch
The headers are properly installed after that. Now I've got a linking problem
but it
looks more mundane
Original comment by hazzrich...@yahoo.co.uk
on 23 Jul 2008 at 2:46
New problem now, with linking:
$ arm-apple-darwin9-gcc MyExample.o -o MyExample -framework CoreFoundation
-L"/usr/lib" -L"/usr/local/arm-apple-darwin/include"
-F"/System/Library/Frameworks"
-F"/System/Library/PrivateFrameworks" -bind_at_load -lobjc
/usr/bin/ld: Undefined symbols:
_OBJC_CLASS_$_NSAutoreleasePool
_OBJC_CLASS_$_NSString
_OBJC_CLASS_$_UIApplication
_OBJC_CLASS_$_UIHardware
_OBJC_CLASS_$_UIView
_OBJC_CLASS_$_UIWindow
_OBJC_METACLASS_$_UIApplication
_UIApplicationMain
collect2: ld returned 1 exit status
Original comment by hazzrich...@yahoo.co.uk
on 23 Jul 2008 at 4:36
Don't know if it makes a difference, but I didn't get my headers from
/Developer/SDKs/MacOSX10.4u.sdk/ I pulled them from
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS2.0.sdk/usr/includ
e/
and then put them in /usr/include/ on the iPhone. I didn't even copy all of
them,
just the ones I needed.
Original comment by gordon.c...@gmail.com
on 23 Jul 2008 at 5:04
Ok I tried that, same linking problem still
Original comment by hazzrich...@yahoo.co.uk
on 24 Jul 2008 at 6:14
the best place to get them is from the apple website -> the Xcode disk img
win users (lin users have to resort to win or mac[ its easy on mac]) have to
use
transmac to unpack dmg's, mac users can just mount the image.
then the header files are in there (the ones that we used originally)
also, can you get Hello, World (printed to stdout)?
Original comment by david.m....@gmail.com
on 9 Aug 2008 at 3:11
hey are you guys downloading this from cydia?
Original comment by david.m....@gmail.com
on 1 Jan 2009 at 5:20
Original issue reported on code.google.com by
hazzrich...@yahoo.co.uk
on 23 Jul 2008 at 1:12