I have disabled macro LV_BUILD_EXAMPLES in lv_conf.h but still. When i do cmake in build directory and perform make it generates lv_eamples library. I have tried disabling some widgets option also in lv_conf.h and they are also getting compiled for lvgl library. The lv_conf.h is kept parallel with lvgl directory as per documentation. I feel like its not considering lv_conf.h properly. Is there something which I am missing. I have kept color depth 16 in conf.h and it looks like it has considered that property.
I am sorry for wasting time. The path for lv_conf.h was not correct. I found my mistake.
But even after placing it in correct path. The liblvgl_examples.a is getting created
I’ve had the same problem with LVGL 9.3.0 and I’ve found out it’s CONFIG_LV_BUILD_EXAMPLES and not LV_BUILD_EXAMPLES:
Using the following in CMakeLists.txt helps:
cmake_minimum_required(VERSION 3.14) # I am using 3.14, will probably work with 3.13 too
set(CMAKE_POLICY_DEFAULT_CMP0077 NEW) # ← VERY IMPORTANT!! Otherwise you won’t be able to set the “normal variables” starting with CONFIG_…
set(CONFIG_LV_BUILD_DEMOS OFF) # for demos
set(CONFIG_LV_BUILD_EXAMPLES OFF) # for examples
set(CONFIG_LV_USE_THORVG_INTERNAL OFF) # for ThorVG