◇ 哎.瘋.人.網 ◇網站現已遷移至新的版面 Apple.ORG.HK Apple人網



 ◇ 哎.瘋.人.網 ◇  Development◇哎瘋程式搞作◇  

顯示適合列印的版本 顯示適合列印的版本  把這個主題寄給朋友 寄給朋友
按平行模式觀看按樹型模式觀看前一篇主題后一篇主題
作者 �駷How-To] Install gcc compiler & header files in iPhone
javacom




版主

文章: 3083
于 2008-06-28 15:03  觀看該用戶的個人資料  搜尋這個用戶發表的所有文章  把文章內容复制到剪貼板。
只适用于 IE :-)
Cydia is a new package management replacement to the existing Installer.app that we are using. And it now also brings you the full power of development tools in iPhone.

Cydia might not be good for nomal packages that you could get from Installer.app But you could certainly get something that Installer.app can't give you. And this is great for developer.

You can now install open toolchain headers and gcc compiler in your iPhone. Although it is slow to compile in iPhone but it is stable and very native.

If you have ever build the cross compiler from sources before, you will love to see this working in your iPhone within 10 minutes or so.

You can follow these steps to have the working gcc compiler,gnu make and the open toolchain header files :

1. Set your iPhone Auto-Lock to "Never"
2. Goto Installer and install the package Called Cydia Installer (version 1.0). It will take some time to download and install, so you should have connected your iPhone to Wifi
3. After installation of Cydia, iPhone will reboot and you will find a new icon "Cydia" in your Home Screen. Start "Cydia" and it will tell you to update Critical Packages. Follow the instructions to "Update All"
4. After update of Critical Packages in Cydia, install the following 3 packages
GNU C Compiler
Make
iPhone 1.1.1 Headers
5. Then you can have gcc compiler in your iPhone now. You can use Mac Terminal or putty to access the terminal of iPhone and start building your application.

Please take note that after the installation of Cydia, your BSD subsystem is now changed to Fake BSD subsystem and also fixed a number of bugs. So don't update BSD subsystem from the Installer.app

To test the installation, you may want to try some HelloWorld example, and here is the attachment that you can try

copy and unzip it to your iPhone
then
 
cd HelloWorld
make install
./restart

Then you will have a new program HelloWorld.

To uninstall this HelloWorld
 
cd HelloWorld
make uninstall




Enjoy!


31847-HelloWorld.zip


javacom 修改于 2009-01-05 21:53

http://www.cnepub.com/discuz/?fromuid=47472

香港交通快拍 v1.1 Preview
http://hk.youtube.com/watch?v=1BHvTC5-QTc

開啟隱藏的表情符號,不用 jailbreak



iPhone 3G ◇哎瘋生滋◇ 常見問題集

樹型目錄
�駷How-To] Install gcc compiler & header files in iPhone - javacom , 2008-06-28 15:03
回覆: [How-To] Install gcc compiler in iPhone - javacom , 2008-08-16 18:04
[How-To] copy SDK headers to iPhone and compile SDK applications in iPhone - javacom , 2008-08-27 14:09
  看過的文章
  新的文章
  被刪除的文章
跳轉到



[錯誤信息]
Table './iphone1/ut_online' is marked as crashed and should be repaired

請通知討論區管理員 <kk@hkfoot.com>。