易截截图软件、单文件、免安装、纯绿色、仅160KB

Linux上构筑iPhone OS3.1.2开发环境之编译HELLO WORLD

终于到了编译范例的时候了,范例在APPS目录里,好兴奋呀。。。
开始编译:
zhaowei@zhaowei-ubuntu:~/toolchain/apps/HelloToolchain$ make
arm-apple-darwin9-gcc -lobjc -bind_at_load -framework Foundation -framework CoreFoundation -framework UIKit -w -o HelloToolchain HelloToolchain.o
ld: library not found for -lobjc
collect2: ld returned 1 exit status
make: *** [HelloToolchain] 错误 1
看见没有,又报错了。在官方讨论区我找到解决方法。看下面:
Here's the solution I used (thanks brian.cr...):
Build the toolchain
In ~/Projects/iphone/toolchain/toolchain/sys, rename folder System to System2
In ~/Projects/iphone/toolchain/toolchain/sys/usr, rename folder lib to lib2
Copy folder ~/Projects/iphone/toolchain/sdks/iPhoneOS3.1.2.sdk/System to ~/Projects/iphone/toolchain/toolchain/sys
Copy folder ~/Projects/iphone/toolchain/sdks/iPhoneOS3.1.2.sdk/usr/lib to ~/Projects/iphone/toolchain/toolchain/sys/usr
Try to build HelloToolchain? again using instructions on this page (above).
Hope that helps. This was the only error I encountered using the toolchain.sh script
重新编译,看输出结果,证明我们编译成功了。呼呼,接下来就是要上传到IPHONE了。
zhaowei@zhaowei-ubuntu:~/toolchain/apps/HelloToolchain$ make
/home/zhaowei/toolchain/toolchain/pre/bin/arm-apple-darwin9-gcc -lobjc -bind_at_load -framework Foundation -framework CoreFoundation -framework UIKit -w -o HelloToolchain HelloToolchain.o
使用这个命令上传到IPHONE:
Navigate to the apps/HelloToolchain directory and run the following commands, noting that you must set "IP" to the address of your iPhone and change the path as appropriate:
cd ~/toolchain/apps/HelloToolchain
IP=xxx.xxx.xxx.xxx PATH=../../toolchain/pre/bin/:$PATH make deploy
上传会需要你输入密码,我居然试了半天,密码错误,怎么可能,默认的密码都进不去,后来才想起,是自己当初玩的时候修改了密码
默认密码:!1.02 的系统密码是dottie. 1.1.1密码是alpine.
我的密码是:***** 。哈哈。
记得修改密码哦。
上传成功的样子:
zhaowei@zhaowei-ubuntu:~/toolchain/a


相关文档:

Linux 内核配置

Linux内核配置办法:
1. make config
这种办法会遍历所有配置项,要求用户逐个选择Y/N/M
2. make menuconfig
这个办法是基于ncurse库编制的图形界面工具。常用
3. make xconfig
用于基于X11的图形工具
4. make gconfig
用于基于gtk+图形工具
5. make defconfig
创建一个默认的配置,生成当前的.config
6. make x ......

linux设置 让oracle10g自启动


在/etc/rc.d/init.d/ 创建oracle10g文件
touch oracle10g
chmod a+x oracle10g
[root@test~]# vi /etc/rc.d/init.d/oracle10g
#!/bin/bash
#chkconfig:345 51 49
#description:starts the oracle database deamons
#
ORACLE_HOME=/oracle/product/10.2.0/db_1
ORACLE_OWNER=oracle
case "$1" in
start)
echo ......

SubVersion定期完整备份脚本(Linux)

脚本功能: 定期对一些项目进行完整备份.
project.lst 文件格式如下:
project1
project2
备份脚本如下:
#!/bin/sh
#
# subversion data backup script
# by scud http://www.jscud.com
# 2005-11-27
#
# subversion完整备份的脚本,调整好后使用crontab -e 放到自动执行里面即可.
#
#备份日志文件
LogFile=/bac ......

Linux文件和目录访问权限设置 Z

当执行
ls -l

ls -al
命令后显示的结果中,最前面的第
2

10
个字符是用来表示权限。第一个字符一般用来区分文件和目录:
   
d
:表示是一个目录,事实上在
ext2fs
中,目录是一个特殊的文件。
   
-:表示这是一个普通的文件。
   
l:
表示 ......

Linux上构筑iPhone OS3.1.2开发环境之build

昨天郁闷了一天,因为不管我如何编译,总是有错误产生。
没想到今天我清理掉所有文件,重新操作了一编,居然神奇般编译成功了。挖哈哈。。。太高兴了,终于离编译可运行在IPHONE
机器上的HELLO world 不远了,太激动了。。
总结一下:我昨天安装了管方列出的所有包,还有就是不放弃,多试几次。
Here we provide a list ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号