overdrivenpotato / rust-psp

Rust on PSP. Panic and allocation support. Access PSP system libraries.
Other
589 stars 31 forks source link

lvgl example #44

Closed sajattack closed 1 year ago

sajattack commented 4 years ago

Demonstrating a watchface on a very WIP gui library... requires some env vars to compile.

DEP_LV_CONFIG_PATH=rust-psp/examples/lvgl/include
TARGET_CC=psp-gcc
CRATE_CC_NO_DEFAULTS=1
TARGET_CFLAGS=-DLV_CONF_INCLUDE_SIMPLE=1 -I rust-psp/example/lvgl/include -I lvgl/lvgl-sys/vendor -march=mips2 -mabi=32 -Bstatic

image

sajattack commented 4 years ago

Might not be worth merging because of the env var shenanigans. Maybe a build.rs would help? Also dependent on psptoolchain... for now.

sajattack commented 4 years ago

Oh, also requires -Zfeatures=build_dep in the call to cargo psp

sajattack commented 4 years ago
TARGET_CFLAGS=-target mips -mcpu=mips2 -msingle-float -mlittle-endian -mno-check-zero-division
TARGET_CC=clang
sajattack commented 4 years ago

image

sajattack commented 1 year ago

This was a testing ground for embedded-graphics improvements and ultimately the crate this depends on is very unstable and incomplete. Not worth merging.