1
Angstrom & OpenZaurus / Cross Compile Howto ? (Python/Scipy)
« on: May 31, 2004, 09:34:33 am »Quote
To build a cross-compiler from http://openzaurus.org/official/toolchain/c...s-3.3.2.tar.bz2 :
I did :
1) install cross-3.3.2.tar.bz2 (/opt/..)
2) mkdir /usr/local/arm/3.3.2
3) tar jxf gcc-3.3.2.tar.bz2 -C /tmp
4) mkdir /tmp/buildgcc ; cd /tmp/buildgcc ; export PATH=$PATH:/opt/cross/bin
5)
../gcc-3.3.2/configure --disable-shared --enable-languages=\'c,c++,f77\' --target=arm-linux --prefix=\'/usr/local/arm/3.3.2\' --with-headers=\'/opt/cross/arm-linux/sys-include\' --with-libs=\'/opt/cross/arm-linux/lib\'
BUT the following files are not found :
../../gcc-3.3.2/gcc/tsystem.h:72:19: stdio.h: No such file or directory
...
AND
make[1]: *** [crtbegin.o] Erreur 1
any idea
Try :
export ZAURUS_DIR=/opt/cross/
export PATH=$PATH:$ZAURUS_DIR/bin
export LO_DIR=/usr/local/arm/3.3.2
../gcc-3.3.2/configure
--prefix=$LO_DIR
--target=arm-linux
--disable-shared
--with-gnu-as
--with-gnu-ld
--with-as=$ZAURUS_DIR/bin/arm-linux-as
--with-ld=$ZAURUS_DIR/bin/arm-linux-ld
--with-headers=$ZAURUS_DIR/arm-linux/include
--with-libs=$ZAURUS_DIR/arm-linux/lib
--enable-languages=c,c++,f77
make
make install
But files (compiler/header/..) of interest are in /opt/cross and /usr/local/arm/3.3.2 , it is not very clean ...
@+