OK - I'm trying to build from source and have even managed to add some help on the wiki https://github.com/micropython/micropyt ... ng-Started
However, I have a build problem on my main Linux Mint Release 18. I think it's an environment problem - but no idea 'how' to solve it!
When i try and compile for the pyboard 'D' with this command:
Code: Select all
make BOARD=PYBD_SF2 FROZEN_MPY_DIR=modules
This happens for every file that uses stdlib.h. I realise this is most likely something wrong with my environment. But some helpful pointers would be great. An example error message is:
Code: Select all
In file included from ../../lib/mbedtls/library/aes.c:31:0:
./mbedtls/mbedtls_config.h:83:20: fatal error: stdlib.h: No such file or directory
#include <stdlib.h>
^
compilation terminated.
In file included from ../../lib/mbedtls/library/aesni.c:30:0:
./mbedtls/mbedtls_config.h:83:20: fatal error: stdlib.h: No such file or directory
#include <stdlib.h>
Code: Select all
~ $ find /usr/include/ -name "stdio.h"
/usr/include/x86_64-linux-gnu/bits/stdio.h
/usr/include/c++/4.7/tr1/stdio.h
/usr/include/c++/4.8/tr1/stdio.h
/usr/include/c++/5/tr1/stdio.h
/usr/include/stdio.h
/usr/include/i386-linux-gnu/bits/stdio.h
My version of gcc is:
Code: Select all
gcc --version
gcc (Ubuntu 5.4.0-6ubuntu1~16.04.11) 5.4.0 20160609
Kind regards, Nicholas