Ubuntu下用skyeye运转OKL4

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.

2、更动3.4.5本子的编写翻译器
将arm-linux-gcc-3.4.5-glibc-2.3.6.tar.bz2放置在/work目录
解压缩
sudo tar jxvf
/work/arm-linux-gcc-3.4.5-glibc-2.3.6.tar.bz2 -C /
更改遭受变量
sudo vi /etc/environment
注明掉原本的情况变量,扩展新的情形变量
PATH=”/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/gcc-3.4.5-glibc-2.3.6/bin
使生效
source /etc/environment
反省是还是不是成功
book@book-desktop:/gcc-3.4.5-glibc-2.3.6/bin$ arm-linux-gcc -v
Reading specs from
/gcc-3.4.5-glibc-2.3.6/bin/../lib/gcc/arm-linux/3.4.5/specs
Configured with:
/work/tools/create_crosstools/crosstool-0.43/build/arm-linux/gcc-3.4.5-glibc-2.3.6/gcc-3.4.5/configure
–target=arm-linux –host=i686-host_pc-linux-gnu
–prefix=/work/tools/gcc-3.4.5-glibc-2.3.6 –with-float=soft
–with-headers=/work/tools/gcc-3.4.5-glibc-2.3.6/arm-linux/include
–with-local-prefix=/work/tools/gcc-3.4.5-glibc-2.3.6/arm-linux
–disable-nls –enable-threads=posix –enable-symvers=gnu
–enable-__cxa_atexit –enable-languages=c,c++ –enable-shared
–enable-c99 –enable-long-long
Thread model: posix
gcc version 3.4.5

1、以4.3.2版本的编写翻译器为例
将arm-linux-gcc-4.3.2.tar.bz2放在/work目录下
解压缩:
sudo tar jxvf /work/arm-linux-gcc-4.3.2.tar.bz2 -C /
增添情况变量:
sudo vi /etc/environment
评释掉原有的情形变量
#PATH=”/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/work/tools/gcc-3.4.5-glibc-2.3.6/bin”
充实新的情状变量并保存
PATH=”/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/arm/4.3.2/bin/
使生效
source /etc/environment自己商量是或不是成功
book@book-desktop:/usr/local/arm/4.3.2/bin$ arm-linux-gcc -v
Using built-in specs.
Target: arm-none-linux-gnueabi
Configured with: /scratch/julian/lite-respin/linux/src/gcc-4.3/configure
–build=i686-pc-linux-gnu –host=i686-pc-linux-gnu
–target=arm-none-linux-gnueabi –enable-threads –disable-libmudflap
–disable-libssp –disable-libstdcxx-pch –with-gnu-as –with-gnu-ld
–enable-languages=c,c++ –enable-shared –enable-symvers=gnu
–enable-__cxa_atexit –with-pkgversion=’Sourcery G++ Lite 2008q3-72′
–with-bugurl=
–disable-nls –prefix=/opt/codesourcery
–with-sysroot=/opt/codesourcery/arm-none-linux-gnueabi/libc
–with-build-sysroot=/scratch/julian/lite-respin/linux/install/arm-none-linux-gnueabi/libc
–with-gmp=/scratch/julian/lite-respin/linux/obj/host-libs-2008q3-72-arm-none-linux-gnueabi-i686-pc-linux-gnu/usr
–with-mpfr=/scratch/julian/lite-respin/linux/obj/host-libs-2008q3-72-arm-none-linux-gnueabi-i686-pc-linux-gnu/usr
–disable-libgomp –enable-poison-system-directories
–with-build-time-tools=/scratch/julian/lite-respin/linux/install/arm-none-linux-gnueabi/bin
–with-build-time-tools=/scratch/julian/lite-respin/linux/install/arm-none-linux-gnueabi/bin
Thread model: posix
gcc version 4.3.2 (Sourcery G++ Lite 2008q3-72)

备注:
1.上述4,5,6步骤能够扭转一下,手动将glibc-2.3.2.tar.gz解压,修改version_info.h文件后再编写翻译
2.假若应用不一致版本软件包能够参照他事他说加以考察
3.本格局参照他事他说加以考察了网络一些素材,对那一个资料的作者表示谢谢!

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-“)

1、以4.3.2版本的编写翻译器为例
将arm-linux-gcc-4.3.2.tar.bz2放在/work目录下
解压缩:
sudo tar jxvf /work/arm-linux-gcc-4.3.2.tar.bz2 -C /
丰硕情况变量:
sudo vi /etc/environment
讲明掉原有的情状变量
#PATH=”/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/work/tools/gcc-3.4.5-glibc-2.3.6/bin”
扩大新的情况变量并保存
PATH=”/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/arm/4.3.2/bin/
使生效
source /etc/environment反省是不是成功
book@book-desktop:/usr/local/arm/4.3.2/bin$ arm-linux-gcc -v
Using built-in specs.
Target: arm-none-linux-gnueabi
Configured with: /scratch/julian/lite-respin/linux/src/gcc-4.3/configure
–build=i686-pc-linux-gnu –host=i686-pc-linux-gnu
–target=arm-none-linux-gnueabi –enable-threads –disable-libmudflap
–disable-libssp –disable-libstdcxx-pch –with-gnu-as –with-gnu-ld
–enable-languages=c,c++ –enable-shared –enable-symvers=gnu
–enable-__cxa_atexit –with-pkgversion=’Sourcery G++ Lite 2008q3-72′
–with-bugurl=
–disable-nls –prefix=/opt/codesourcery
–with-sysroot=/opt/codesourcery/arm-none-linux-gnueabi/libc
–with-build-sysroot=/scratch/julian/lite-respin/linux/install/arm-none-linux-gnueabi/libc
–with-gmp=/scratch/julian/lite-respin/linux/obj/host-libs-2008q3-72-arm-none-linux-gnueabi-i686-pc-linux-gnu/usr
–with-mpfr=/scratch/julian/lite-respin/linux/obj/host-libs-2008q3-72-arm-none-linux-gnueabi-i686-pc-linux-gnu/usr
–disable-libgomp –enable-poison-system-directories
–with-build-time-tools=/scratch/julian/lite-respin/linux/install/arm-none-linux-gnueabi/bin
–with-build-time-tools=/scratch/julian/lite-respin/linux/install/arm-none-linux-gnueabi/bin
Thread model: posix
gcc version 4.3.2 (Sourcery G++ Lite 2008q3-72)

2、更改3.4.5版本的编写翻译器
将arm-linux-gcc-3.4.5-glibc-2.3.6.tar.bz2放置在/work目录
解压缩
sudo tar jxvf
/work/arm-linux-gcc-3.4.5-glibc-2.3.6.tar.bz2 -C /
更改遭遇变量
sudo vi /etc/environment
解说掉原本的蒙受变量,扩大新的蒙受变量
PATH=”/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/gcc-3.4.5-glibc-2.3.6/bin
使生效
source /etc/environment
检查是或不是成功
book@book-desktop:/gcc-3.4.5-glibc-2.3.6/bin$ arm-linux-gcc -v
Reading specs from
/gcc-3.4.5-glibc-2.3.6/bin/../lib/gcc/arm-linux/3.4.5/specs
Configured with:
/work/tools/create_crosstools/crosstool-0.43/build/arm-linux/gcc-3.4.5-glibc-2.3.6/gcc-3.4.5/configure
–target=arm-linux –host=i686-host_pc-linux-gnu
–prefix=/work/tools/gcc-3.4.5-glibc-2.3.6 –with-float=soft
–with-headers=/work/tools/gcc-3.4.5-glibc-2.3.6/arm-linux/include
–with-local-prefix=/work/tools/gcc-3.4.5-glibc-2.3.6/arm-linux
–disable-nls –enable-threads=posix –enable-symvers=gnu
–enable-__cxa_atexit –enable-languages=c,c++ –enable-shared
–enable-c99 –enable-long-long
Thread model: posix
gcc version 3.4.5

2.将crosstool-0.42.tar.gz放在$home目录下
cd $home
mkdir downloads
将以下包放在新建的downloads目录下(也得以空着,cross_tool会自动从网络下载)
gcc-3.3.6.tar.bz2
binutils-2.15.tar.bz2
linux-2.6.10.tar.gz
glibc-2.3.2.tar.gz
glibc-linuxthreads-2.3.2.tar.gz
linux-2.6.10.tar.gz
sudo mkdir /opt/crosstool
sudo chown youname /opt/crosstool
tar -xvzf crosstool-0.42.tar.gz
cd crosstool-0.42
cp demo-arm.sh arm.sh
vi arm.sh
修改arm.sh,内容如下:
#!/bin/sh
set -ex
TARBALLS_DIR=$home/downloads
RESULT_TOP=/opt/crosstool
export TARBALLS_DIR RESULT_TOP
GCC_LANGUAGES=”c,c++”
export GCC_LANGUAGES
mkdir -p $RESULT_TOP
eval `cat arm.dat gcc-3.3.6-glibc-2.3.2.dat` sh all.sh –notest
–nounpack
echo Done.
vi arm.dat
修改arm.dat,内容如下:
KERNELCONFIG=`pwd`/arm.config
TARGET=arm-linux
TARGET_CFLAGS=”-O”
vi gcc-3.3.6-glibc-2.3.2.dat
修改arm.dat,内容如下:
BINUTILS_DIR=binutils-2.15
GCC_DIR=gcc-3.3.6
GLIBC_DIR=glibc-2.3.2
GLIBCTHREADS_FILENAME=glibc-linuxthreads-2.3.2
LINUX_DIR=linux-2.6.10
LINUX_SANITIZED_HEADER_DIR=linux-libc-headers-2.6.12.0

Get more information about it, please visit the homepage
.

1.备选以下软件包:
crosstool-0.42.tar.gz(必须)
以下软件包可选则下载(因为corsstool在设置进度中回机关下载)
gcc-3.3.6.tar.bz2
binutils-2.15.tar.bz2
linux-2.6.10.tar.gz
glibc-2.3.2.tar.gz
glibc-linuxthreads-2.3.2.tar.gz
linux-2.6.10.tar.gz

安装到位之后,为了以往使用方便,能够将skyeye 拷贝到/usr/bin/下

鉴于在此以前采用的RedHat
9对新硬件的扶助糟糕,所以筹划倒车了Ubuntu了。用了一天的时日到底化解了arm-linux-gcc的装置。此前的两次退步经历就不再罗嗦了,直入正题。注意:上面全部的youname须求用实际的用户名代表。

标题:编译的时候会唤醒诸如xlib.h
空中楼阁的难点,那是因为lib库安装不完全形成的,使用sudo apt-get install
libxpm-dev

7.安装完结
cd /opt/crosstool/gcc-3.3.6-glibc-2.3.2/arm-linux/bin
ls

执行 sudo aptitude install libxpm-dev

4.安装(会出错)
./arm.sh

1)、解压:tar zxvf skyeye-1.3.0_rc1.tar

5.退换文件
vi
$home/crosstool-0.42/build/arm-linux/gcc-3.3.6-glibc-2.3.2/build-glibc/csu/version_info.h
修改version_info.h文件,内容如下:
“Compiled on a Linux >>2.6.24-19-generic<< system on
2008-10-11.”
“Available extensions:”
“GNU libio by Per Bothner\n”
“crypt add-on version 2.1 by Michael Glad and others\n”
“linuxthreads-0.10 by Xavier Leroy\n”
“BIND-8.2.3-T5B\n”
“libthread_db work sponsored by Alpha Processor Inc\n”
“NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk\n”

Type “help” to get command list.

3.得到须求软件包
sudo apt-get install build-essential bison flex
sudo apt-get install gcc-3.4
sudo rm /usr/bin/gcc
sudo ln -s /usr/bin/gcc-3.4 /usr/bin/gcc
留意:此处用gcc-3.4代替了系统自带编写翻译器,待安装后能够用同一措施改回来

4、skyeye-conf下载:

图片 1

gui/x.cc:485: error: ‘XCreatePixmapFromData’ was not declared in this   
scope

6.双重安装(时间较长)
./arm.sh
export PATH=/opt/crosstool/gcc-3.3.6-glibc-2.3.2/arm-linux/bin:$PATH
sudo vi /etc/bash.bashrc
在文件最终一行加入:
export PATH=/opt/crosstool/gcc-3.3.6-glibc-2.3.2/arm-linux/bin:$PATH

./make install_lib

发表评论

电子邮件地址不会被公开。 必填项已用*标注

网站地图xml地图