Skip to content

ubuntu24.04 can't run lvgl simulator #2

Open

Description

@piaoxuebingfeng
i test simulator on ubuntu24.04,but it can't work success,the simulator screen is black .

Activity

  1. chilipadi commented on Feb 15, 2026

    @chilipadi

    These changes worked for me:

    diff --git a/app/app.cpp b/app/app.cpp
    index c1eb98b..0768fc9 100644
    --- a/app/app.cpp
    +++ b/app/app.cpp
    @@ -8,6 +8,7 @@
     #include "apps/app_installer.h"
     #include <mooncake.h>
     #include <mooncake_log.h>
    +#include <lvgl.h>
     #include <string>
     #include <thread>
     
    @@ -38,6 +39,8 @@ void app::Update()
         // 'nextEventMatchingMask should only be called from the Main Thread!'
         auto time_till_next = lv_timer_handler();
         std::this_thread::sleep_for(std::chrono::milliseconds(time_till_next));
    +#else
    +    lv_timer_handler();
     #endif
     }
     
    diff --git a/app/apps/app_installer.h b/app/apps/app_installer.h
    index 50cf05d..0dd0133 100644
    --- a/app/apps/app_installer.h
    +++ b/app/apps/app_installer.h
    @@ -19,6 +19,7 @@ inline void on_startup_anim()
         mooncake::GetMooncake().openApp(app_id);
         while (1) {
             mooncake::GetMooncake().update();
    +        lv_timer_handler();
             if (mooncake::GetMooncake().getAppCurrentState(app_id) == mooncake::AppAbility::StateSleeping) {
                 break;
             }
    
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions