第一步、首先准备软件:
- skyeye-1.3.3_rel.tar.gz
- skyeye-1.3.3_testsuite_rel.tar.gz (包含各种开发板配置模板)
- Python-2.7.2.tar.bz2
- xterm.tar.gz(终端模拟器)
- llvm-2.8.tgz
第二步、首先安装xterm, python, LLVM(必须在编译skyeye之前安装)
- 解压
- ./configure
- make
- make install
第三步、安装skyeye
- 解压
- ./configure
- make lib
- make
- make install
- make install_lib
在执行make的时候会报编译错误
skyeye1.3.3 编译错误 implicit declaration of function ‘truncf’ /bin/sh: /usr/local/bin/llvm-config: 没有那个文件或目录 libtool: compile: gcc -Werror-implicit-function-declaration -I. -I../.. -I../../common -I../../dyncom/ -I../../arch/ppc/common -I../../arch/ppc/linux_syscall -I../../utils/debugger -I../../common/include -I./common/ -g -O2 -MT ppc_vec.lo -MD -MP -MF .deps/ppc_vec.Tpo -c common/ppc_vec.c -fPIC -DPIC -o .libs/ppc_vec.o common/ppc_vec.c: In function ‘ppc_opc_vrfiz’: common/ppc_vec.c:2737: error: implicit declaration of function ‘truncf’ common/ppc_vec.c:2737: warning: incompatible implicit declaration of built-in function ‘truncf’ common/ppc_vec.c: In function ‘ppc_opc_vctsxs’: common/ppc_vec.c:2876: warning: incompatible implicit declaration of built-in function ‘truncf’ common/ppc_vec.c: In function ‘ppc_opc_vctuxs’: common/ppc_vec.c:2906: warning: incompatible implicit declaration of built-in function ‘truncf’ make[2]: *** [ppc_vec.lo] 错误 1 make[2]: Leaving directory `/home/seaknight/skyeye/skyeye/arch/ppc' make[1]: *** [all-recursive] 错误 1 make[1]: Leaving directory `/home/seaknight/skyeye/skyeye' make: *** [all] 错误 2 |
解决方法:
在ppc_vec.c这个文件加下面几行函数定义, 就能编译过去了 float truncf(float x); long double truncl(long double x); |
skyeye默认安装在/opt目录下。
第四步、运行测试程序Helloworld.
- 进入/opt/skyeye/testsuite/arm_hello目录
- 执行/opt/skyeye/bin/skyeye_main.py -c skyeye.conf -e arm_hello
- 输入start命令
- 输入run命令, Helloworld运行起来。
第五步、把skyeye-1.3.3_testsuite_rel.tar.gz解压到/opt/skyeye/testsuite目录。
阅读(3521) | 评论(0) | 转发(0) |