Crosscompiling

From Sharpfin
Revision as of 09:41, 23 August 2007 by Philipp (talk | contribs) (New page: Crosscompiling is easy these days, even with most autoconf/automake configurable packages. The following works for me * Create a directory where you want to put the fresh compiled libra...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


Crosscompiling is easy these days, even with most autoconf/automake configurable packages. The following works for me

  • Create a directory where you want to put the fresh compiled libraries, header files and binaries. For example
 # mkdir /tmp/reciva/root
  • Make sure the toolchains 'bin' dir is in your path
 # export PATH=$PATH:/opt/crosstool/gcc-3.3.4-glibc-2.3.2/arm-softfloat-linux-gnu/bin/
  • Configure the package, using the cross compiler and optional previously installed libraries and headers
 # export LDFLAGS="-L/tmp/reciva/root/lib" 
 # export CPPFLAGS="-I/tmp-reciva/root/include" 
 # ./configure --prefix=/tmp/reciva/root/ --host=arm-softfloat-linux-gnu "$@"
  • If all went well, configure should finish without problems, and you can now build and install the software
 # make
 # make install