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

options missing in lv_conf.h #111

Open
uraich opened this issue Aug 17, 2022 · 2 comments
Open

options missing in lv_conf.h #111

uraich opened this issue Aug 17, 2022 · 2 comments
Labels

Comments

@uraich
Copy link

uraich commented Aug 17, 2022

Hi Gabor,
I am trying to build the missing Python examples as flagged by Amir.
To get an idea of what needs to be done and how the original C code looks like, I tried to build the examples on the simulator.
In order to get all examples running, the lv_conf.h file needed an update:
I had to add:
/1: Enable lv_obj fragment/
#define LV_USE_FRAGMENT 0

/*1: Support using images as font in label or span widgets */
#define LV_USE_IMGFONT 0
#if LV_USE_IMGFONT
/Imgfont image file path maximum length/
#define LV_IMGFONT_PATH_MAX_LEN 64

/*1: Use img cache to buffer header information*/
#define LV_IMGFONT_USE_IMG_CACHE_HEADER 0

#endif

/*1: Enable a published subscriber based messaging system */
#define LV_USE_MSG 1

/1: Enable Pinyin input method/
/Requires: lv_keyboard/
#define LV_USE_IME_PINYIN 0
#if LV_USE_IME_PINYIN
/1: Use default thesaurus/
/If you do not use the default thesaurus, be sure to use lv_ime_pinyin after setting the thesauruss/
#define LV_IME_PINYIN_USE_DEFAULT_DICT 1
/Set the maximum number of candidate panels that can be displayed/
/This needs to be adjusted according to the size of the screen/
#define LV_IME_PINYIN_CAND_TEXT_NUM 6

/*Use 9 key input(k9)*/
#define LV_IME_PINYIN_USE_K9_MODE      1
#if LV_IME_PINYIN_USE_K9_MODE == 1
    #define LV_IME_PINYIN_K9_CAND_TEXT_NUM 3
#endif // LV_IME_PINYIN_USE_K9_MODE

#endif
to the "OTHERS" section.
If you want to get the ffmpeg examples to compile, you will need to update the CMakeList.txt file in lvgl.
I added:
include_directories(/usr/include/freetype2)
link_directories(/usr/lib/x86_64-linux-gnu)
link_libraries(freetype rlottie avcodec avformat avutil swscale)

@kisvegabor
Copy link
Member

Could you send a PR with these changes to the release/v8.3 branch?

@stale
Copy link

stale bot commented Apr 20, 2023

This issue or pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Apr 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants