Tutorial – Installing gcc compiler on iPhone
来源:互联网 发布:怎么启用windows aero 编辑:程序博客网 时间:2024/06/11 12:05
http://eagos.net/tutorial-installing-gcc-compiler-on-iphone/comment-page-1/#comment-31
This Tutorial needs headers and libraries from Mac OSX.
- Make sure the following applications are installed from Cydia.
- Mobile Terminal
- Safari Download Plugin
- Open Safari and open the following link (It was written by Ryan Petrich):
http://eagos.blogsite.org/files/fake-libgcc_1.0_iphoneos-arm.deb - Open MobileTerminal app on iPhone
- Type in “dpkg -i /var/mobile/Library/Downloads/fake-libgcc_1.0_iphoneos-arm.deb”
- Open Cydia and install “GNU C Compiler”, “C++ Standard Library”, and “ldid”.
- Now you need the headers and libraries. (Can’t upload files because of copyright issues)
- Make sure you have the iPhone SDK installed on you Mac OSX.
- Go to the following folder /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.1.2.sdk/usr/lib
- Use Diskaid or other iphone browsers to copy all the files to iPhone to directory
/var/mobile/Documents/lib - Now we have to link it to /usr/lib/lib/
(The headers and libraries are huge so it’s better to store them in the larger partition and then link it in the system partition.) - On iPhone, open Mobile Terminal and type in “ln -s /var/mobile/Documents/lib /usr/lib/lib”
- Go to the following folder/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.1.2.sdk/usr/include/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.1.2.sdk/usr/include/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.1.2.sdk/usr/include
- Use Diskaid or other iphone browsers to copy all the files to iPhone to directory /var/mobile/Documents/include
- Now we have to link it to /usr/include/incl
(The headers and libraries are huge so it’s better to store them in the larger partition and then link it in the system partition.) - On iPhone, open Mobile Terminal and type in “ln -s /var/mobile/Documents/include /usr/include/incl”
- Now you need to know how to compile.
- Open Mobile Terminal on iPhone
- Type the following for iostream support.
g++ (input.cpp) -o (output) -I/usr/include/incl/c++/4.2.1/ -I/usr/include/incl -I/usr/include/incl/c++/4.2.1/armv7-apple-darwin9/ -I/usr/lib/lib/gcc/arm-apple-darwin9/4.2.1/include/ -L/usr/lib/lib/ - Now you need to sign the code.
Type on iPhone Terminal: ldid -S (output) - Now run your application
- Tutorial – Installing gcc compiler on iPhone
- Installing GCC on Mac
- Installing GCC (C++ Compiler and Development Tools) - dnf - yum
- Installing PHP Applications(WordPress) on IIS7 - video tutorial
- Tutorial: Networking and Bonjour on iPhone
- Tutorial: Networking and Bonjour on iPhone
- Installing GCC
- gcc installing
- Installing GCC
- make mex compiler of matlab working on gcc mint
- The Complete Tutorial on iOS/iPhone Custom URL Schemes
- The Complete Tutorial on iOS/iPhone Custom URL Schemes
- Installing GCC: Configuration
- Tutorial: Installing Multi-Touch Vista
- iPhone JSON Flickr Tutorial – Part 1
- iPhone JSON Flickr Tutorial – Part 1
- iPhone JSON Flickr Tutorial – Part 1
- iPhone JSON Flickr Tutorial – Part 2
- 黑马程序员 java学习笔记--正则表达式
- [总结]python 静态方法与类方法
- ASP.NET错误登陆3次,锁定账户
- JS节点
- 开始用CSDN记录自己的学习之路,自己的成长之路!!!
- Tutorial – Installing gcc compiler on iPhone
- JFrame 居中显示
- linux利用ntfs-3g来实现对NTFS分区的读写
- USACO 1.2.3 Name That Number
- JavaScript实现的猜数字小游戏~~
- PHP与MySQL的存储过程
- linux 更新字体
- 第一个javaBean
- 编程语言图解