Csl /Crosscompiling

Here's an example for crosscompiling

 wget http://www.ece.arizona.edu/~sprinkjm/teaching/ece473/uploads/Main/ece473-573-hw01-question1-1.0.tar.gz

Now, go into the directory

 tar xzf ece473-573-hw01-question1-1.0.tar.gz
 cd ece473-573-hw01-question1-1.0
 mkdir build-arm-linux && cd build-arm-linux
 ../configure --host=arm-linux
 make

Once the file is made, you can check that it is of kind ARM

 file src/main
 src/main: ELF 32-bit LSB executable, ARM, version 1, dynamically linked (uses shared libs), not stripped

Then, scp this file over to your gumstix.

 scp src/main root@gumstix:/root/main

I doubt this will run initially, since it is a CPP file (and not stdc). Thus, you will need to also copy the stdlibcpp to the gumstix machine

 cd ${BASECROSS}/lib
 tar czf libstdcpp.tgz libstdc++.so*
 scp libstdcpp.tgz root@gumstix:/lib
 ssh root@gumstix "cd /lib && tar xzf --delete libstdcpp.tgz

I haven't tried this last part yet, so it may not work.