Closed retsyo closed 3 years ago
In other word,
ulab
in not linked intolv_micropython
.I don't know whether
ulab
can be compiled intolv_micropython
on other OS, but I think the answer is "NO". So is there a way to fix it?
Hi @retsyo,
I've just built the unix port of lv_micropython with ulab as you described (USER_C_MODULES=/where/I/cloned/ulab
) and it works as expected. I don't see any problem, I can import ulab
and use it.
I suspect that what you are seeing might be related to the Window port. We actively support the unix, esp32 and stm32 ports. The Window port is not maintained in lv_micropython although I think someone tried it in the past. There just aren't many people running Micropython directly under Windows.
I suggest you try this with the unix port.
If you don't have a Linux machine you could run Linux on a VM with VirtualBox or VMware player instead. It's pretty easy to install and set up.
Hi @retsyo,
I have tried to build windows port of lv_micropython@master with ulab and can use it. My build environment is Ubuntu+libSDL+mingw gcc. -> Building on Debian/Ubuntu Linux system Here are my commands:
$ make clean
$ make CROSS_COMPILE=i686-w64-mingw32- USER_C_MODULES=/path/to/micropython-ulab MICROPY_PY_FFI=0 MICROPY_PY_BTREE=0
The first clean command is important, please do not ignore it.
The running output:
PS C:\path\to\micropython> .\micropython.exe
MicroPython v1.14-457-g3bf6c7f12-dirty on 2021-03-12; win32 version
Use Ctrl-D to exit, Ctrl-E for paste mode
>>> import ulab
>>> ulab.
__class__ __name__ __version__ dtype
numpy scipy utils
>>>
Closing since we can't reproduce the problem. Feel free to open if the problem is still there.
I can compile ulab into official micropython's
ports/windows
via the simple way stated in the document of ulab in MSYS2+Mingw64Then
however, for lv_micropython with my patch to enable building in MSYS2+Mingw64 on windows
which says
As we can read that
Including User C Module from /e/ulab/code
. HoweverIn other word,
ulab
in not linked intolv_micropython
.I don't know whether
ulab
can be compiled intolv_micropython
on other OS, but I think the answer is "NO". So is there a way to fix it? Thanks