numenta/nupic — pull request #418 by akamlani (2013-11-16 09:09:43+00:00)
Title: Linux 32-bit ARMv7 Architecture Support

Test Platform: ARMv7, Linux 3.4, Chromebook Ubuntu via Crouton
Github NuPIC Issue: 387
Wiki Action: Will add wiki section for further details once merged.

Note: New Platform is 'linux32armv7'. Ideally the Platform should consist of the following in the future:
/Linux
/Arch
/x86 {32-bit, 64-bit}
/ARM {ARMv6, ARMv7} //32-bit only
However this is a separate issue.

[Library Versions for New Platform]
yaml-cpp (0.3.0)
zlib (1.28)
apr: (1.4.8), apr-util (1.5.2)
swig: 1.3.36 (2.0.10 requires later version of python)

[Compilation flags for Platform Libraries]
swig:
cd swig; autogen.sh; make

zlib:
cd zlib; "CFLAGS=-fPIC" ./configure; make

apr-1.4.8:
./configure 'CFLAGS=-fPIC -g -O2 -pthread' 'CXXFLAGS=-fPIC -g -O2 -pthread' --enable-static --enable-threads
make
ar -rcs libapr-1.a find . -name "*.o"

apr-util-1.5.2:
./configure 'CFLAGS=-fPIC -g -O2 -pthread' 'CXXFLAGS=-fPIC -g -O2 -pthread' --with-mysql --with-apr=../apr-1.4.8/
make
ar -rcs libaprutil-1.a find . -name "*.o"