手机端第三方 -- gcc 6.1.0编译器
[i=s] 本帖最后由 happy886rr 于 2017-8-13 00:18 编辑 [/i]适用于安卓手机的gcc 6.1.0,自带非常全的库文件,支持最新c14新特性。可以编译各类C、C++源代码,对windows C程序,稍加修改即可实现到手机端移植。(一切超过10kb的,一切图均为外链)
[quote][img]http://i2.nbimg.com/604745/a71351e91994c77d.png[/img][/quote]]
下载地址:[url]https://page37.ctfile.com/fs/14274637-215245318[/url]
使用方法:将gcc.tar 解压至手机data/local/tmp路径。[code]
sh ./ec.sh ./gcc
[/code]请使用ec脚本运行,ec.sh:[code]# !/system/bin/sh
# ec script by happy
if [ $# -ne 1 ]
then
echo "Usage: ec.sh [gcc_dir]"
exit 1
else
echo [===* Welcome to use ec script *===]
if [ "${1:0:1}" == "/" ]
then
GCC_PATH=${1}
else
GCC_PATH=$(pwd)/${1}
fi
export PATH=${GCC_PATH}/bin:${GCC_PATH}/arm-linux-androideabi/bin:${GCC_PATH}/libexec/gccbin:${GCC_PATH}/libexec/gcc/arm-linux-androideabi/6.1.0:${PATH}
2>/dev/null ${GCC_PATH}/arm-linux-androideabi/bin/gcc --help
if [ $? -ne 0 ]
then
echo "You must input a correct gcc_dir!"
exit 1
fi
while [ true ]
do
echo -n "[>>> "
read args
if [ "$args" == "quit" ] || [ "$args" == "exit" ]
then
break;
fi
if [ "$args" != "" ]
then
${args}
fi
done
echo -e "[<<<]"
fi
[/code] 杀杀杀杀杀杀杀杀杀杀杀杀杀杀杀杀杀杀杀杀杀杀杀杀杀杀 [b]回复 [url=http://www.bathome.net/redirect.php?goto=findpost&pid=202114&ptid=45009]1#[/url] [i]happy886rr[/i] [/b]
链接失效了啊,谁能补一下。
页:
[1]