UBUNTU13 + Skyeye1.3.5
1准备
安装必要的工具
$sudo apt-get install automake autoconf libtool g++ libxft-dev libx11-dev libxpm-dev texi2html
2.安装skyeye
cd Downloads/skyeye-1.3.5_rc1/
Downloads/skyeye-1.3.5_rc1$ ls
aclocal.m4 config.h.in install-sh missing
android config.h.in~ libltdl NEWS
arch config.sub LICENSE pyshell
AUTHORS configure ltdlconf.h.in README
autogen.sh configure.in ltmain.sh REPORTING-BUGS
autom4te.cache COPYING m4 soc
bochs_config.h.in depcomp MAINTAINERS testsuite
ChangeLog device Makefile.am third-party
common Doxyfile Makefile.android TODO
conf gui Makefile.in utils
config.guess INSTALL misc
$ ./autogen.sh;automake;
$./configure;make lib;make;
错误记录
<1>
In file included from ../../../third-party/distrib/sdl-1.2.12/src/video/x11/SDL_x11dyn.c:26:0:
../../../third-party/distrib/sdl-1.2.12/src/video/x11/SDL_x11dyn.h:39:33: fatal error: X11/extensions/XShm.h: No such file or directory
compilation terminated.
make[2]: *** [SDL_x11dyn.lo] Error 1
解决:
sudo apt-get install x11proto-xext-dev
sudo apt-get install xorg-dev
<2>/usr/bin/ld: cannot find –liconv
解决:下载 libiconv http://ftp.gnu.org/gnu/libiconv/
$tar xvf libiconv-1.14.tar.gz
$cd libiconv-1.14
$./configure –prefix=/usr/local
$make;
错误记录
<2.1>./stdio.h:1010:1: error: 'gets' undeclared here (not in a function)
解决:参见http://forum.z27315.com/topic/15662-解决编译libiconv时的gets-undeclared-here错误/
修改srclib/stdio.in.h 第695行
如下:
//_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
#if defined(__GLIBC__) && !defined(__UCLIBC__) && !__GLIBC_PREREQ(2, 16)
_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
#endif
<3>touchscreen_s3c6410/touchscreen_s3c6410.h:4:21: fatal error: gtk/gtk.h: No such file or directory
解决:sudo apt-get install libgtk2.0-dev
<4>/usr/include/glib-2.0/glib/gtypes.h:34:24: fatal error: glibconfig.h: No such file or directory
解决:
sudo cp /usr/lib/x86_64-linux-gnu/glib-2.0/include/glibconfig.h /usr/include/
<5>
/usr/include/gtk-2.0/gdk/gdkscreen.h:31:19: fatal error: cairo.h: No such file or directory
解决:
sudo cp /usr/include/cairo/* /usr/include/
<6>fatal error: pango/pango.h: No such file or directory
解决:cp -r /usr/include/pango-1.0/pango/ /usr/include/
<7>fatal error: gdkconfig.h: No such file or directory
解决:cp /usr/lib/x86_64-linux-gnu/gtk-2.0/include/gdkconfig.h /usr/include/
<8>)fatal error: gdk-pixbuf/gdk-pixbuf.h: No such file or directory compilation terminated.
解决:
sudo cp -r /usr/include/gdk-pixbuf-2.0/gdk-pixbuf /usr/include/
<9>fatal error: atk/atk.h: No such file or directory
解决:cp -r /usr/include/atk-1.0/atk/ /usr/include/
<10>pycli/pycli.c:1:20: fatal error: Python.h: No such file or directory
解决:sudo apt-get install python-dev
$sodo make install
$sudo make install_lib
安装完成,然后设置环境变量.
运行出错:
ImportError: /usr/lib/python2.7/lib-dynload/_ctypes.x86_64-linux-gnu.so: undefined symbol: PyFloat_Type
解决:
安装python2.7
$tar xvf Python-2.7.5.tar.gz
$cd Python-2.7.5
$./configure –enable-shared –enable-unicode-ucs4
$make
$sudo make install
/usr/local/skyeye/bin# ./skyeye
SkyEye 1.3.5
SkyEye is an Open Source project under GPL. All rights of different parts or modules are reserved by their author. Any modification or redistributions of SkyEye should not remove or modify the annoucement of SkyEye copyright.
Get more information about it, please visit the homepage http://www.skyeye.org.
Type "help" to get command list.
(skyeye) help
SkyEye command list
====================
cov-off delete-bp list-modules read-configure show-map
cov-on help list-options remote-gdb show-pref
cov-state list-bp load-conf reverse-to show-step
create-uart-16550 list-machines log-bus set-bookmark write-configure
3.测试skyeye-test 包1.3.4
错误<1>:
$./test_all.sh
./test_all.sh: 44: exit: Illegal number: –1
添加skyeye 安装路径作为参数 或修改test_all.sh 添加PREFIXDIR
即:./test_all.sh /usr/local/skyeye
错误<2>
./test_all.sh /usr/local/skyeye/
We will use /usr/local/skyeye/bin/skyeye to run testsuite.
./test_all.sh: 50: ./test_all.sh: expect: not found
./test_all.sh: 54: ./test_all.sh: expect: not found
./test_all.sh: 60: ./test_all.sh: expect: not found
解决:sudo apt-get install expect