ReferencePlatforms/Linux-scratchbox: Difference between revisions

Jump to navigation Jump to search
No edit summary
Line 243: Line 243:
  tar jxf Python-2.5.5.tar.bz2
  tar jxf Python-2.5.5.tar.bz2
  cd Python-2.5.5
  cd Python-2.5.5
CC='host-gcc' --prefix=/usr/local
  make -j4
  make -j4
  /scratchbox/moz_scratchbox
  /scratchbox/moz_scratchbox
Line 256: Line 255:
  make install
  make install
  cd Python-2.5.5
  cd Python-2.5.5
  CC=host-gcc CXX=host-g++ ./configure --prefix=/host_usr
  CC=host-gcc CXX=host-g++ ./configure --prefix=/usr/local
  make -j4
  make -j4
  make altinstall
  make altinstall
find /usr/local -name "*.so*" -exec ldd {} \; | grep "not found" # should have no output
==Host Python for Maemo4==
Before you install host-python for maemo4, run this
/builds/scratchbox/moz_scratchbox sb-conf select CHINOOK-ARMEL-2007
/builds/scratchbox/moz_scratchbox fakeroot apt-get remove python2.5 -y
Which will remove these packages
python-dev python-xml python-distutils
You will also need to remove the PYTHONPATH= line in ~/.bashrc
These are the steps to build x86 python for maemo4:
/builds/scratchbox/moz_scratchbox
wget http://www.python.org/ftp/python/2.5.5/Python-2.5.5.tar.bz2
wget http://www.openssl.org/source/openssl-0.9.8m.tar.gz
wget http://mercurial.selenic.com/release/mercurial-1.5.1.tar.gz
wget http://www.bzip.org/1.0.5/bzip2-1.0.5.tar.gz
tar jxf Python-2.5.5.tar.bz2
tar zxf openssl-0.9.8m.tar.gz
tar zxf mercurial-1.5.1.tar.gz
tar zxf bzip-1.0.5.tar.gz
cd openssl-0.9.8m
CC=host-gcc CXX=host-g++ ./config shared --prefix=/usr/local
make -j4
make install
cd ../bzip-1.0.5
make CC=host-gcc PREFIX=/usr/local install
make CC=host-gcc -f Makefile-libbz2_so
cp libbz2.so.1.0.4 /usr/local/lib/
cd ../Python-2.5.5
CC=host-gcc CXX=host-g++ ./configure --prefix=/usr/local
make -j4
make altinstall
cd ../mercurial-1.5.1
python2.5 setup.py install
  find /usr/local -name "*.so*" -exec ldd {} \; | grep "not found" # should have no output
  find /usr/local -name "*.so*" -exec ldd {} \; | grep "not found" # should have no output
Confirmed users
1,377

edits

Navigation menu