compiling latest mpy on OSX fails on frozen

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
User avatar
roland_vs
Posts: 89
Joined: Tue Dec 08, 2015 8:28 pm
Location: Netherlands
Contact:

compiling latest mpy on OSX fails on frozen

Post by roland_vs » Fri Mar 17, 2017 9:34 am

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 :-)

User avatar
deshipu
Posts: 1388
Joined: Thu May 28, 2015 5:54 pm

Re: compiling latest mpy on OSX fails on frozen

Post by deshipu » Fri Mar 17, 2017 9:38 am

You need to run make in mpy-cross directory first.

User avatar
roland_vs
Posts: 89
Joined: Tue Dec 08, 2015 8:28 pm
Location: Netherlands
Contact:

Re: compiling latest mpy on OSX fails on frozen

Post by roland_vs » Fri Mar 17, 2017 11:40 am

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!

Post Reply