Ubuntu下用skyeye運行OKL4的一些過程記錄:
一、下載需要的組件
1、skyeye-1.3.0_rc1.tar: http://nchc.dl.sourceforge.net/project/skyeye/skyeye/skyeye-1.3.0_rc1.tar.gz
2、okl4_3.0.tar.gz:http://wiki.ok-labs.com/downloads/release-3.0/
3、交叉編譯工具:arm-linux-gnueabi-4.2.4.tar.gz、arm-linux-3.4.4.tar.bz2 http://wiki.ok-labs.com/downloads/release-3.0/
4、skyeye-conf下載:http://wiki.ok-labs.com/downloads/release-3.0/
二、編譯:假定系統根目錄為:/home/fanyl/,用戶為:fanyl
1、skyeye-1.3.0_rc1.tar:
1)、解壓:tar zxvf skyeye-1.3.0_rc1.tar
2)、cd skyeye-1.3.0_rc1
./configure
./make lib
./make
./make install
./make install_lib
問題:編譯的時候會提示諸如xlib.h 不存在的問題,這是因為lib庫安裝不完全造成的,使用sudo apt-get install libxpm-dev
出現:gui/x.cc: In member function ‘virtual void bx_x_gui_c::specific_init(int, char**, unsigned int, unsigned int, unsigned int)’:
gui/x.cc:485: error: ‘XCreatePixmapFromData’ was not declared in this scope
執行 sudo aptitude install libxpm-dev
安裝完成之後,運行./skyeye,出現:
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 note 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)
說明安裝成功
安裝完成之後,為了以後使用方便,可以將skyeye 拷貝到/usr/bin/下
2、OKL4:
tar zxvf okl4_3.0.tar.gz
3、交叉編譯工具
cd ~
tar zxvf arm-linux-gnueabi-4.2.4.tar.gz
tar xjvf arm-linux-3.4.4.tar.bz2
修改okl4_3.0/tools/toolchains.py:
#gnu_arm_libgcc_toolchain = generic_gcc("arm-linux-")
#gnu_arm_eabi_toolchain = generic_gcc_3_4_libgcc("/opt/okl/Linux-i386/arm/gcc-4.2.4-glibc-2.7/arm-unknown-linux-gnueabi/bin/arm-unknown-linux-gnueabi-")
gnu_arm_eabi_toolchain = generic_gcc_3_4_libgcc("/home/fanyl/arm-unknown-linux-gnueabi/bin/arm-unknown-linux-gnueabi-")
gnu_arm_toolchain = generic_gcc_3_4_libgcc("arm-linux-")
#gnu_arm_nptl_toolchain = generic_gcc_3_4_libgcc("/opt/okl/Linux-i386/stow/arm-linux/bin/arm-linux-")
gnu_arm_nptl_toolchain = generic_gcc_3_4_libgcc("/home/fanyl/opt/nicta/tools/gcc-3.4.4-glibc-2.3.5/arm-linux/bin/arm-linux-")
gnu_mips64_toolchain = generic_gcc_3_4("mips64-elf-")
gnu_mips32_toolchain = generic_gcc_3_4("mips-linux-")
#arm_linux_toolchain = generic_gcc_3_4("/opt/tools/3.4/arm-linux/bin/arm-linux-")
arm_linux_toolchain = generic_gcc_3_4("/home/fanyl/opt/nicta/tools/gcc-3.4.4-glibc-2.3.5/arm-linux/bin/arm-linux-")