Page 1 of 1

compiling latest mpy on OSX fails on frozen

Posted: Fri Mar 17, 2017 9:34 am
by roland_vs
I just updated my micropython source to the latest revision, and tried to compile it on OSX.
I cannot get beyond the part where the modules (in this case the display) need to be build into frozen code.
I did make clean first in stmhal. Then just make to build the code for the PYB10 board.
Somewhere in the building process it gets stuck on

Code: Select all

MPY modules/lcd160cr.py
make: ../mpy-cross/mpy-cross: No such file or directory
make: *** [build-PYBV10/frozen_mpy/lcd160cr.mpy] Error 1
So did I overlook something trivial?

Thank you in advance :-)

Re: compiling latest mpy on OSX fails on frozen

Posted: Fri Mar 17, 2017 9:38 am
by deshipu
You need to run make in mpy-cross directory first.

Re: compiling latest mpy on OSX fails on frozen

Posted: Fri Mar 17, 2017 11:40 am
by roland_vs
Thanks it works.

One observation is that the files in stmhal/modules/ appears in the file system as aliases (links) to the drivers/display directory rather than a file that holds a reference to the directory or the source code itself (as copy).

MPY is getter better and better! Great work!