/******************************************************************************************************************/
SDK Enviroment config
/******************************************************************************************************************/
1. download cross compile toolchains from the following:
http://openlinux.amlogic.com/wiki/index.php/Arm/Development_Tools
2. tar -xvjf arm-2010q1-202-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2
cp -rf arm-2010q1 /usr/local/arm/
add the following to /etc/bash.bashrc
#add arm tool chain to PATH by liaowm
if [ -d /usr/local/arm/arm-2010q1 ];then
export PATH=/usr/local/arm/arm-2010q1/bin:$PATH
fi
3. download arc tools from the following:
http://openlinux.amlogic.com/wiki/index.php/Arc/Development_Tools
4. tar -xvjf gnutools-arc2.3-p0-ubuntu-9.04-2010-5-10.tar.bz2
cp to /opt/gnutools/arc2.3-p0
add the following to /etc/bash.bashrc
SET_PATH=$( echo "$PATH" | grep elf32)
if [ "$SET_PATH" = "" ]; then
ARC_PREFIX=/opt/gnutools/arc2.3-p0
PATH=$PATH:${ARC_PREFIX}/elf32-4.2.1/bin:${ARC_PREFIX}/uclibc-4.2.1/bin:
fi
5. if encount pthread error, install gcc 4.4
apt-get install gcc-4.4
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.5 40
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.4 30
update-alternatives --config gcc
6. if encount the following error:
target Generated: libwebcore <= external/webkit/WebCore/css/CSSCharsetRule.idl
gcc: error trying to exec 'cc1plus': execvp: 没有那个文件或目录
Can't call method "fileName" without a package or object reference
SDK Enviroment config
/******************************************************************************************************************/
1. download cross compile toolchains from the following:
http://openlinux.amlogic.com/wiki/index.php/Arm/Development_Tools
2. tar -xvjf arm-2010q1-202-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2
cp -rf arm-2010q1 /usr/local/arm/
add the following to /etc/bash.bashrc
#add arm tool chain to PATH by liaowm
if [ -d /usr/local/arm/arm-2010q1 ];then
export PATH=/usr/local/arm/arm-2010q1/bin:$PATH
fi
3. download arc tools from the following:
http://openlinux.amlogic.com/wiki/index.php/Arc/Development_Tools
4. tar -xvjf gnutools-arc2.3-p0-ubuntu-9.04-2010-5-10.tar.bz2
cp to /opt/gnutools/arc2.3-p0
add the following to /etc/bash.bashrc
SET_PATH=$( echo "$PATH" | grep elf32)
if [ "$SET_PATH" = "" ]; then
ARC_PREFIX=/opt/gnutools/arc2.3-p0
PATH=$PATH:${ARC_PREFIX}/elf32-4.2.1/bin:${ARC_PREFIX}/uclibc-4.2.1/bin:
fi
5. if encount pthread error, install gcc 4.4
apt-get install gcc-4.4
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.5 40
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.4 30
update-alternatives --config gcc
6. if encount the following error:
target Generated: libwebcore <= external/webkit/WebCore/css/CSSCharsetRule.idl
gcc: error trying to exec 'cc1plus': execvp: 没有那个文件或目录
Can't call method "fileName" without a package or object reference