分类: LINUX
2010-08-30 22:53:58
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
根据http://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下有个目录_hello
skyeye –e vm –c skyeye.conf 启动-
还能够把bin下的skyeye拷到/usr/bin中,这样就能够不进目录了
9,start,这个命令启动,然而有问题,提醒配置文件skyeye.conf没有配置
这样在/opt/skyeye/testsuite/arm_hello下,施行skyeye->start->skyeye -e _hello
这时出现uart-instance窗体,
根据skyeye的使用手册,输出run,此处的run是在ubuntu的终端输出的,不是uart-instance
此时会在uart-instance中出现一堆helloworld
成功了!!!!!!!!