Skip to content
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

Generating new fonts will not compile with arduino #2

Open
mikep1998 opened this issue Nov 22, 2019 · 0 comments
Open

Generating new fonts will not compile with arduino #2

mikep1998 opened this issue Nov 22, 2019 · 0 comments

Comments

@mikep1998
Copy link

Hello, I have just started using lvgl on ESP32 Arduino project. I wanted to generate new fonts. I used the "Online TTF to C Array Unicode Font Converter" https://littlevgl.com/ttf-font-to-c-array.

When I try to compile the .c file I get compile error.
first error:
src\nokora_bold150_2bit.h:1:23: fatal error: lvgl/lvgl.h: No such file or directory
Easy fix just remove the lvgl from the path.
Second error:
src\nokora_bold150_2bit.h:2529:1: error: narrowing conversion of '-2' from 'int' to 'uint8_t {aka unsigned char}' inside { } [-Wnarrowing]

Third error:
src\nokora_bold150_2bit.h:2529:1: sorry, unimplemented: non-trivial designated initializers not supported

this is the compiler not supporting names initializer. this may be able to fix with a different compiler.
I'm using the default setup from VCode and PlatformIO. I'm not sure how to change the compiler.

I understand that these error are not in your changes. But they are errors with Arduino usage. So I thought maybe you could drive them to get fixed.

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant