接上一章 手把手教你北邮操作系统小学期实验三——ARM/ucLinux-SkyEye的安装,配置与集成2
编译安装skyeye
- 安装skyeye
skyeye-1.2.9_rc1//我试过很多版本这个能用
tar xvf skyeye-1.2.9_rc1.tar.gz
- cd skyeye-1.2.9_rc1
./configure//预处理
4.make lib
5.make//遇到了问题
utils/uart_console/uart_console.c:58: 错误:expected identifier or ‘(’ before numeric constant
utils/uart_console/uart_console.c:59: 错误:expected identifier or ‘(’ before numeric constant
utils/uart_console/uart_console.c:62: 错误:expected identifier or ‘(’ before numeric constant
utils/uart_console/uart_console.c:63: 错误:expected identifier or ‘(’ before numeric constant
错误:expected identifier or ‘(’ before numeric constant
是因为在其它头文件中已将POLLRDNORM那些定义,此处是已被define
解决方法,将58到63行注释
//const uint32_t POLLRDNORM = 0x040;
//const uint32_t POLLRDBAND = 0x080;
//const uint32_t POLLPRI = 0x002;
//const uint32_t POLLOUT = 0x004;
//const uint32_t POLLWRNORM = 0x100;
//const uint32_t POLLWRBAND = 0x200;
然后就好了;
- make install_lib
- make install
- 测试HelloWorld文件
- skyeye的控制命令
输入:cd /opt/skyeye/testsuite/arm_hello //先进入HelloWorld的目录
输入:skyeye -e arm_hello
输入:start
输入:run
输入:stop
- 还有一种方式就是直接用 :
sudo apt-get install skyeye//这个是1.2.5
- 安装完成直接输入skyeye