kdschlosser / lv_cpython

CPython bindings to LVGL
Other
16 stars 4 forks source link

fatal error: 'SDL2/SDL.h' file not found #7

Closed sam0910 closed 1 year ago

sam0910 commented 1 year ago

Greetings! Thank you the great binding.

In install process, I could not solve this MacOS(M1), Python 3.10.10

I've downloaded SDL.dmg, manually copy 'SDL2.framework' to /Library/Frameworks. but still missing the header


fatal error: 'SDL2/SDL.h' file not found
src/lvgl/lv_conf.h:849:36: note: expanded from macro 'LV_SDL_INCLUDE_PATH'
#define LV_SDL_INCLUDE_PATH    <SDL2/SDL.h>
kdschlosser commented 1 year ago

Instead of building it install the version that is already compiled.

pip install lvgl

kdschlosser commented 1 year ago

Also I don't know what MACOS(M1) is. This works on OSX.

kdschlosser commented 1 year ago

https://stackoverflow.com/questions/28016258/using-homebrew-installed-sdl2-with-xcode

sam0910 commented 1 year ago

Thank you so much for the reply,

pip install lvgl


File "..../python3.10/site-packages/builder/__init__.py", line 2, in <module>
import util
ModuleNotFoundError: No module named 'util'
[end of output]

❯ pip install util ERROR: Could not find a version that satisfies the requirement util (from versions: none) ERROR: No matching distribution found for util



I've installed the 'utils' but not util.. it not exist.