IPhone toolchain 3.1.2 compilation and installation-(3. FAQ)

Source: Internet
Author: User

 

 

 

1,Arm-apple-darwin9-gcc not found

Add in. bashrc

Path =/home/Eric/work/iPhone/toolchain/PRE/bin/: $ path

 

2,Ld: library not found for-lobjc

Install acute_systems_transmac/* run on Windows */

Retrieve iphonesdkheaderandlibs. PKG

$ Xar-XF iphonesdkheadersandlibs. PKG Payload

$ Zcat payload | cpio-I

$ CP-RP platforms/iphoneos. Platform/developer/sdks/iphoneos3.1.2.sdk/home/Eric/work/iPhone/toolchain/sys/

 

3,Modify makefile

Iphonesdk =/home/Eric/work/iPhone/toolchain/sys

 

########## Include path (SDK )##########

Incpath + =-I "$ (iphonesdk)/usr/include"

 

######### Include path (GCC )##########

Incpath + =-I "$ (iphonesdk)/usr/include/GCC/Darwin/4.2"

 

######### Include path (GUI framework )##########

Cflags + =-F "$ (iphonesdk)/system/library/frameworks"

Cflags + =-F "$ (iphonesdk)/system/library/privateframeworks"

 

######### Include path (library path )##########

Ldflags + =-L "$ (iphonesdk)/usr/lib"

Ldflags + =-F "$ (iphonesdk)/system/library/frameworks"

Ldflags + =-F "$ (iphonesdk)/system/library/privateframeworks"

 

Cc = arm-apple-darwin9-gcc

LD = $ (cc)

 

Src = src/
IMG = img/

 

Ldflags + =-lobjc/
-Lsqlite3.0/
-Bind_at_load/
-Framework quartzcore/
-Framework CoreGraphics/
-Framework Foundation/
-Framework corefoundation/
-Framework uikit/
-Wno-attributes/
-W

 

Objs = Main. O/
Erplayerappdelegate. O/
Erplayertabbarcontroller. O/
Erplayersettingcontroller. O/
Erplayernavigationcontroller. O/
Erplayerrecentcontroller. O/
Erplayerbookmarkcontroller. O/
Erplayerbookmarkaddcontroller. O/
Erplayerbookmarkitem. O/
Erplayerbookmarkdb. o

 

ALL: erplayer

Ldid-s erplayer
SCP erplayer root@192.168.0.117:/applications/erplayer. APP/

 

Erplayer: $ (objs)
$ (LD) $ (ldflags)-o $ @ $ ^

 

 

%. O: $ (SRC) %. m

$ (CC)-C $ (cflags) $ (cppflags) $ <-o $ @

 

Clean:

@ RM-f *. o

@ RM-RF erplayer

 

4,LdidSignature

Download and compile ldid:

$ Wget http://svn.telesphoreo.org/trunk/data/ldid/ldid-1.0.610.tgz

$ Tar-zxf ldid-1.0.610.tgz

$ Ldid-1.0.610 CD

Ldid-1.0.610 $ g ++-I.-O util/ldid {,. cpp}-x C util/{lookup2, sha1}. c

Export macro:

$ Export codesign_allocate =/home/Eric/work/iPhone/toolchain/PRE/

Bin/arm-apple-darwin9-codesign_allocate

Signature:

$ Ldid-s hellotoolchain

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.