![]() ![]() |
Jan 30 2004, 03:33 AM
Post
#1
|
|
|
Group: Members Posts: 225 Joined: 9-December 03 Member No.: 1,104 |
I've tried to cross compiling e2fsprogs and it doesn't do it...
$ export PATH=/opt/cross/bin:$PATH $ ./configure --target=arm-linux --with-cc=arm-linux-gcc --with-linker=arm-linux-ld --prefix=/opt/cross/arm-linux QUOTE loading cache ./config.cache
checking for non-GNU ld... (cached) /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... (cached) yes Generating configuration file for e2fsprogs version 1.34 Release date is July, 2003 checking host system type... arm-unknown-linux-gnu CC=arm-linux-gcc checking for gcc... (cached) cc checking whether the C compiler (cc ) works... yes checking whether the C compiler (cc ) is a cross-compiler... no checking whether we are using GNU C... (cached) yes checking whether cc accepts -g... (cached) yes LD=arm-linux-ld checking how to run the C preprocessor... (cached) cc -E It compile the library and tools as x86 binaries... what's wrong? :-( I need the e2fsprogs library to cross-compile qtopia 1.7. I'll try to make a rom with it... |
|
|
|
Jan 30 2004, 05:55 AM
Post
#2
|
|
|
Group: Members Posts: 4,515 Joined: 25-October 03 From: Bath, UK Member No.: 464 |
Try:
$ export PATH=/opt/cross/bin:/opt/cross/arm-linux/bin:$PATH $ export CC=arm-linux-gcc $ export LINKER=arm-linux-g++ $ export COMPILER=arm-linux-gcc $ ./configure --host=arm-linux --build=i686-linux |
|
|
|
Jan 30 2004, 07:22 AM
Post
#3
|
|
|
Group: Members Posts: 225 Joined: 9-December 03 Member No.: 1,104 |
I get this...
CODE loading cache ./config.cache
checking for non-GNU ld... (cached) /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... (cached) yes Generating configuration file for e2fsprogs version 1.34 Release date is July, 2003 checking host system type... arm-unknown-linux-gnu CC defaults to arm-linux-gcc checking for gcc... (cached) cc checking whether the C compiler (cc ) works... no configure: error: installation or configuration problem: C compiler cannot create executables. |
|
|
|
Jan 30 2004, 08:19 AM
Post
#4
|
|
|
Group: Members Posts: 4,515 Joined: 25-October 03 From: Bath, UK Member No.: 464 |
Try running:
$ make distclean before you try my commands. Si |
|
|
|
Jan 30 2004, 08:23 AM
Post
#5
|
|
|
Group: Members Posts: 225 Joined: 9-December 03 Member No.: 1,104 |
success! :-)
$tar xzvf e2fsprogs-1.34.tar.gz $mkdir e2fsprogs-build $cd e2fsprogs $ export PATH=/opt/cross/bin:$PATH $ CC=arm-linux-gcc LD=arm-linux-ld RANLIB=arm-linux-ranlib CROSS_COMPILE=arm-linux- ../e2fsprogs-1.34/configure --host=arm-linux --build=i686-pc-linux-gnu --prefix=/opt/cross/arm-linux --enable-elf-shlibs |
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 24th May 2013 - 01:41 PM |