如何在终端模拟器中使用gcc编译源码
c4droid吧
全部回复
仅看楼主
level 12
upp🔥
楼主
我把 /data/data/com.n0n3m4.droidc/files/gcc/bin/arm-linux-androideabi-gcc 复制到/system/bin中,并赋予了相应权限
/data/data/com.n0n3m4.droidc/files/gcc 内的其他文件也建立软连接到/system分区内了,为何无法使用gcc编译源码
2015年12月09日 12点12分
1
level 12
upp🔥
楼主
root@virgo:/ # gcc /cache/m.c -o /cache/test
Cannot create temporary file in ./: Read-only file system
2015年12月09日 12点12分
2
不知者来此
主要是临时文件夹目录变量没设置 你试试export TMPDIR=临时目录
2015年12月09日 12点12分
upp🔥
@不知者来此
成功了
,谢谢
2015年12月09日 12点12分
level 14
不知者来此
简单的复制是不行的,只是个短链接,不是arm-*-gcc的实体,其实只要在终端模拟器加入 gcc所在目录的path环境就好
2015年12月09日 12点12分
3
level 1
lly502716868go
PAYH怎么加,是不是PATH=.……就可以,详细点可以吗
2018年01月23日 04点01分
4
level 11
姐姐的团子😁
PATH=gcc的绝对路径
2018年01月25日 17点01分
5
level 11
姐姐的团子😁
然后在一个可读写的目录work就行
2018年01月25日 17点01分
6
level 11
姐姐的团子😁
至于read only of system,su -c mount -o remount rw / /system
2018年01月25日 17点01分
7
1