Moto Hell - The Motorola Modding Community
April 28, 2024, 02:47:19 pm *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: The forum is no longer active and registration is disabled; however you can still fetch everything as guest.
 
   Home   Help Facebook Search Calendar Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Question to arctu... how to cross compile?  (Read 3160 times)
c_ro87
Guest
« on: October 08, 2008, 05:37:36 am »

i want to cross compile some apps to Z6... how to? i have to made something like that:  ?

bash3.2.0 cross compiling?
# cd bash-3.2
# CC=arm-linux-gcc ./configure --host=arm-linux
# CC=arm-linux-gcc make
# arm-linux-strip bash


python2.5.1 cross compiling?
# cd python-2.5
# mkdir /root/Desktop/rokr_e2
# ./configure --target=arm-linux --prefix=/root/Desktop/rokr_e2
edit the Makefile
CC        = /usr/local/arm-linux/bin/arm-linux-gcc -lpthread
CXX        = /usr/local/arm-linux/bin/arm-linux-g++   -lpthread
# make
# make install


busybox1.6.1 cross compiling?
# cd busybox-1.6.1
# make ARCH=arm CROSS_COMPILE=arm-linux-
Logged
arctu
Guest
« Reply #1 on: October 08, 2008, 06:05:22 am »

yes. for bash yup. you might also need to specify the cross compiler also like what you did with python. For busybox, you should read their docs. Wink
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Design By Forum Hosting
Powered by SMF 1.1.21 | SMF © 2015, Simple Machines