How to compile sample project in linux or windows to armv61?

this code compiles wrongly.

static lv_color_t needle_colors[2] = {LV_COLOR_RED, LV_COLOR_BLUE};
            obj = lv_gauge_create(main_page, NULL);
            lv_gauge_set_needle_count(obj, 2, needle_colors);
            lv_gauge_set_value(obj, 0, 30);
            lv_gauge_set_value(obj, 1, 60);
            lv_page_focus(main_page, obj, LV_ANIM_ON);
            auto_del(obj, TIME_STEP * 2 + 16);
lv_examples/src/lv_demo_stress/lv_demo_stress.c:303:13: error: initializer element is not constant
             static lv_color_t needle_colors[] = {LV_COLOR_RED, LV_COLOR_BLUE};
             ^
lv_examples/src/lv_demo_stress/lv_demo_stress.c:303:13: error: (near initialization for 'needle_colors[0]')

as i see this was done to convert colors between different color bit systems. but how to fix this?