OESF Portables Forum

Everything Else => Desktop Operating Systems Issues => Zaurus General Forums => Archived Forums => Linux Issues => Topic started by: summer00 on June 14, 2004, 12:56:22 am

Title: can i cross-compile like this?
Post by: summer00 on June 14, 2004, 12:56:22 am
i have Embedix installed in /opt/Embedix, the cross-compiler are located in \"file:/opt/Embedix/tools/arm-linux/bin\" --] (gcc), so can i export the gcc and run ./configure of a program? example:

export CPP=/opt/Embedix/tools/arm-linux/bin/gcc
export CXX=/opt/Embedix/tools/arm-linux/bin/gcc
export CC=/opt/Embedix/tools/arm-linux/bin/gcc

followed by ./configure ?

can i do like this? thanks a lot
Title: can i cross-compile like this?
Post by: lardman on June 14, 2004, 06:13:55 am
Generally speaking yes, but you\'d probably be better off changing the PATH.

I source dev-qpe-arm.sh (or whatever it\'s called, from the Sharp downloads, also repeated one of my posts about cross-compilers), then just run \'./configure --host=arm-linux\'

This works in the majority of cases.


Si
Title: can i cross-compile like this?
Post by: Stubear on June 14, 2004, 06:43:12 am
Quote
i have Embedix installed in /opt/Embedix, the cross-compiler are located in \"file:/opt/Embedix/tools/arm-linux/bin\" --] (gcc), so can i export the gcc and run ./configure of a program? example:

export CPP=/opt/Embedix/tools/arm-linux/bin/gcc
export CXX=/opt/Embedix/tools/arm-linux/bin/gcc
export CC=/opt/Embedix/tools/arm-linux/bin/gcc

followed by ./configure ?

can i do like this? thanks a lot


Yes, but you probably want to set CXX and CPP to g++ rather than gcc

Use a shell script as Lardman suggests - will make you life much easier

Stu
Title: can i cross-compile like this?
Post by: lardman on June 14, 2004, 08:29:41 am
Read this and copy/adjust the shell script I posted:

http://www.zaurususergroup.com/index.php?n...light=toolchain (https://www.oesf.org/forums/index.php?showtopic=1072&highlight=toolchain)


Si