Posts: 1
Joined: Tue Jan 21, 2014 1:49 pm

Cross compile python 2.7.6 to pi

Tue Jan 21, 2014 9:37 pm

It's my first post here ;) and I have a bit of a problem...
I'm trying to cross compile python 2.7.6 from source to my pi
and the cross compilation succeeds (I think so at least...)
but when I copy the whole dir that "make install" command created I can't run the cross compiled python binaries...

This is the code I compiled python with the source is from python.org

Code: Select all

export CC=arm-bcm2708hardfp-linux-gnueabi-gcc export LD=arm-bcm2708hardfp-linux-gnueabi-ld export CXX=arm-bcm2708hardfp-linux-gnueabi-g++ export CPP="arm-bcm2708hardfp-linux-gnueabi-g++ -E" export READELF=arm-bcm2708hardfp-linux-gnueabi-readelf export RANLIB=arm-bcm2708hardfp-linux-gnueabi-ranlib export AR=arm-bcm2708hardfp-linux-gnueabi-ar
echo ac_cv_file__dev_ptmx=no > ./config.site
echo ac_cv_file__dev_ptc=no >> ./config.site
CONFIG_SITE=config.site ./configure --prefix=/home/koles/Downloads/rpi/pythonPI --enable-ipv6 --build=arm-unknown-linux-gnueabihf --host=arm-unknown-linux-gnueabihf
make -j4
make install
all goes without errors..
where do I make the mistake?


I succeeded with the cross compilation but with "gcc-linaro-arm-linux-gnueabihf-raspbian" tool chain and everything runs. WHT?
Why the previous tool chain didn't work? Did I miss some configuration options?

Return to “C/C++”