Author Topic: can i cross-compile like this?  (Read 2887 times)

summer00

  • Newbie
  • *
  • Posts: 42
    • View Profile
can i cross-compile like this?
« 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

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
can i cross-compile like this?
« Reply #1 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
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

Stubear

  • Hero Member
  • *****
  • Posts: 1164
    • View Profile
    • http://
can i cross-compile like this?
« Reply #2 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
SL-C1000, Hand converted to English with Japanese Input
Running X apps via X/Qt
iRiver USB host cable; Diatec P-Cord usb power cable (extendable); Acro's Reel Cable USB (A to A, B, Mini-B,  & Mini-B 8pin); GreenHouse 1Gb PicoDrive+; 2x256Mb Hagiwara SD cards; 128Mb Transcend CF card; 512Mb PQI CF card; AmbiCom WL1100C-CF 11B WLAN card

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
can i cross-compile like this?
« Reply #3 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


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva