Cross Compiling Python 2.7.10 and 3.4.3 for MIPSel OpenWrt via uClibc with SSL and SQLite support

The notes that were written after succeeding to cross compile Python 2.7.10 and 3.4.3 for MIPSel OpenWrt via uClibc.

I’m not gonna write a very detailed guide. I post my build script on the GitHub, please leave a comment if you have any question.

Build log (3.4.3)

Run test cases on the device (3.4.3)

1
bin/python3 lib/python3.4/test/test___all__.py

Note

  • 2.7.10 is 100% passed
  • 3.4.3’s xml.parsers.expat module will cause segmentation fault.

Refs

  1. Cross Compiling Python for Embedded Linux

Thanks to

Cheng Wig, he showed me the positive attitude at work.