-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
compile micropython (lvgl) for unix #2
Comments
As I said in my previous answer, we are in a complicated situation at the moment: the ESP32 port of micropython now uses a new build system based on Espressif's idf.py command, which in turn is based on cmake. This build system does not have the facilities yet, needed to build C-modules into the micropython binary, required by lv_micropython. |
OK , compiled : MicroPython v1.14-453-g86f3583-dirty on 2021-02-26; linux version
but confused with environment variable and PYTHONPATH / MPY_PATH. |
If you are running under Linux then MicroPython will look for modules under $HOME/.micropython/lib. So... I have display_driver.py and display_driver_utils.py, imagetools and a few more in this directory. cat header.py lc_ex_bar.py > bar_executable.py |
lv_examples/src ?? i will test with populate .micropython/lib , seeing with sys.path but not created. |
Bonjour, |
OK for monserrat 48 |
"bad interpreter" you get if your path to lv_micropython is wrong. Make sure that /opt/bin/lv_micropython is replaced by the path to your lv_micropython binary. Then it must work! |
Forgot: adding uasyncio to .micropython/lib may not be enough: the "standard" micropython uses a previous version of uasyncio and you might get conflicts. Not sure though! |
OK the full path , with interpreter name ! work fine |
Bonjour Uraich, PS : demo_printer : whaooo ! |
Bonjour Uraich , |
I have seen that the micropython build system now has the facilities needed to include C or C++ user modules. With this it should be possible to add the lvgl part. Maybe I will give it a try myself even though I am clearly not a cmake expert. |
Bonjour Uraich , other subject : ftDuino32 will be good tool for twatch-2020 developement ! thanks and Regards |
There IS news: |
Bonjour Uraich
try to build micropython (lvgl) for unix as in your post in 'micropython forum'.
but issue :
xxxxx@LIN0141157:
/twatch-2020-micropython/ports/unix$ make V=1 VARIANT=dev/twatch-2020-micropython/ports/unix$python3 ../../py/makeversionhdr.py build-dev/genhdr/mpversion.h
python3 ../../tools/makemanifest.py -o build-dev/frozen_content.c -v "MPY_DIR=../.." -v "MPY_LIB_DIR=../../../micropython-lib" -v "PORT_DIR=/home/Charles.Rayer/twatch-2020-micropython/ports/unix" -v "BOARD_DIR=" -b "build-dev" -f"-mcache-lookup-bc" variants/dev/manifest.py
Traceback (most recent call last):
File "../../tools/makemanifest.py", line 344, in
main()
File "../../tools/makemanifest.py", line 254, in main
include(input_manifest)
File "../../tools/makemanifest.py", line 51, in include
with open(manifest) as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/xxxxx/twatch-2020-micropython/ports/unix/variants/dev/manifest.py'
../../py/mkrules.mk:142 : la recette pour la cible « build-dev/frozen_content.c » a échouée
make: *** [build-dev/frozen_content.c] Erreur 1
xxxxx@LIN0141157:
some tricks for dowload/clone or other ?
Thank's for help and
Regards
PS : lv_mpy_examples +++
The text was updated successfully, but these errors were encountered: