skyeye在ubuntu上配置全过程
1、下载skyeye-1.3.0_rc1.tar.gz
2、解压缩:tar xzvf skyeye-1.3.0_rc1.tar.gz
3、cd skyeye-1.3.0_rc1
4、./configure
在./configure的过程中出现了问题
错误提示是缺少c 编译器,于是乎apt-get intall g ,解决之
5、make lib 此处没有出错,但是时间很长
6、make 时间依旧很长,出了些问题
gui/x.cc:89: error: expected constructor, destructor, or type conversion before ‘*’ token
gui/x.cc:91: error: expected initializer before ‘*’ token
gui/x.cc:92: error: ‘Colormap’ does not name a type
gui/x.cc:101: error: ‘Window’ does not name a type
gui/x.cc:102: error: ‘GC’ does not name a type
gui/x.cc:107: error: expected initializer before ‘*’ token
gui/x.cc:134: error: ‘Pixmap’ does not name a type
gui/x.cc:137: error: ‘Pixmap’ does not name a type
gui/x.cc:144: error: ‘Pixmap’ does not name a type
gui/x.cc:301: error: variable or field ‘xkeypress’ declared void
gui/x.cc:301: error: ‘KeySym’ was not declared in this scope
gui/x.cc:301: error: expected primary-expression before ‘int’
gui/x.cc:325: error: ‘Colormap’ was not declared in this scope
gui/x.cc:325: error: expected primary-expression before ‘n_tries’
gui/x.cc:325: error: initializer expression list treated as compound expression
gui/x.cc:325: error: expected ‘,’ or ‘;’ before ‘{’ token
安装apt-get install libxpm-dev之后又出现了
/home/andy/skyeye-1.3.0_rc1/common/.libs/libcommon.so: undefined reference to `PC'
/home/andy/skyeye-1.3.0_rc1/common/.libs/libcommon.so: undefined reference to `tgetflag'
/home/andy/skyeye-1.3.0_rc1/common/.libs/libcommon.so: undefined reference to `tgetent'
/home/andy/skyeye-1.3.0_rc1/common/.libs/libcommon.so: undefined reference to `UP'
/home/andy/skyeye-1.3.0_rc1/common/.libs/libcommon.so: undefined reference to `tputs'
/home/andy/skyeye-1.3.0_rc1/common/.libs/libcommon.so: undefined reference to `tgoto'
/home/andy/skyeye-1.3.0_rc1/common/.libs/libcommon.so: undefined reference to `tgetnum'
/home/andy/skyeye-1.3.0_rc1/common/.libs/libcommon.so: undefined reference to `BC'
/home/andy/skyeye-1.3.0_rc1/common/.libs/libcommon.so: undefined reference to `tgetstr'
collect2: ld returned 1 exit status
make[2]: *** [skyeye] 错误 1
make[2]:正在离开目录 `/home/andy/skyeye-1.3.0_rc1'
make[1]: *** [all-recursive] 错误 1
make[1]:正在离开目录 `/home/andy/skyeye-1.3.0_rc1'
make: *** [all] 错误 2
根据https://hi.baidu.com/tihu1111/blog/item/9f3a0fa716348f98d1435857.html的建议,
主要是缺少termcap库文件,在终端里执行sudo apt-get install libncurses5-dev安装
7、sudo make install
此处加sudo是因为需要向某个目录底下写文件,所以需要管理员帐户
8、sudo make install_lib
OK
这时候在目录/opt/skyeye/下存在下面的目录
bin conf include info lib testsuite
bin目录下存放的是skyeye的二进制的程序。
mknandFlashdump : 用来制作nandflash的镜像文件
skyeye :skyeye的命令行应用程序
Skyeye-gui: skyeye的图形应用程序
uart_instance : 被skyeye调用的应用程序,功能为通过一个xterm终端来显示串口的输出
conf目录存放了针对已经支持的目标板的一些配置文件
include目录存放了skyeye开发插件时所用到的头文件
info目录存放了info格式的文档
Lib目录存放了skyeye的核心库libcommon.so和其他一些以动态库存在的插件
testsuite目录存放了一个简单的测试用例
9、skyeye
在/opt/skyeye/testsuite下有个目录arm_hello
skyeye –e vmlinux –c skyeye.conf 启动arm-linux
还可以把bin下的skyeye拷到/usr/bin中,这样就可以不进目录了
9,start,这个命令启动,但是有问题,提示配置文件skyeye.conf没有配置
这样在/opt/skyeye/testsuite/arm_hello下,执行skyeye->start->skyeye -e arm_hello
这时出现uart-instance窗体,
根据skyeye的使用手册,输入run测试,此处的run是在ubuntu的终端输入的,不是uart-instance
此时会在uart-instance中出现一堆helloworld
成功了!!!!!!!!
关键词标签:ubuntu,skyeye