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

How do I run release version of flutter app with ivi-homescreen ? #11

Closed
shrkamat opened this issue Oct 22, 2021 · 4 comments
Closed

How do I run release version of flutter app with ivi-homescreen ? #11

shrkamat opened this issue Oct 22, 2021 · 4 comments

Comments

@shrkamat
Copy link

shrkamat commented Oct 22, 2021

Firs of all this is not an issue. I am not able to find steps to run release version of flutter apps.

With this patch I was able to run debug version of the the apps with ivi-homescreen.

diff --git a/shell/engine.cc b/shell/engine.cc
index 5eb4205..7c979f1 100644
--- a/shell/engine.cc
+++ b/shell/engine.cc
@@ -87,7 +87,7 @@ Engine::Engine(App* app, size_t index)
       }),
       m_renderer_config(
           {.type = kOpenGL,
-           .open_gl = {
+           .open_gl = FlutterOpenGLRendererConfig {
                .struct_size = sizeof(FlutterOpenGLRendererConfig),
                .make_current = [](void* userdata) -> bool {
                  auto e = reinterpret_cast<Engine*>(userdata);

Above fix is probably only required for g++ & not clang++.

$ g++ --version
g++ (Ubuntu 11.2.0-7ubuntu2) 11.2.0

However when I attempt to run release bundle I see an error about missing flutter_assets/kernel_blob.bin

[INFO:display.cc(67)] No agl_shell extension present
[INFO:display.cc(71)] WL_SHM_FORMAT_XRGB32 not available
[INFO:display.cc(257)] Pointer Present
[INFO:display.cc(266)] Keyboard Present
[ERROR:/home/skamath/proactive/flutter/ivi-homescreen/shell/engine.cc(142)] (0) /usr/local/share/homescreen/bundle/flutter_assets/kernel_blob.bin missing Flutter Kernel
@shrkamat
Copy link
Author

@shrkamat shrkamat changed the title How do I run release version of the app ? How do I run release version of flutter app with ivi-homescreen ? Oct 22, 2021
@jwinarske
Copy link
Contributor

There are the types of engine builds. Runtime=debug, runtime=release, runtime=profile. In order to run AOT image, you need engine version release, or profile. This is why there is a runtime check in the embedder. Engine runtime=debug only work with non-AOT flutter build; flutter build bundle

@jwinarske
Copy link
Contributor

For example of how to generate AOT refer to the sequence used here: https://github.com/meta-flutter/meta-flutter/blob/main/recipes-graphics/flutter-apps/flutter-gallery_git.bb

@jwinarske
Copy link
Contributor

jwinarske pushed a commit that referenced this issue Sep 27, 2023
jwinarske pushed a commit that referenced this issue Oct 1, 2023
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

2 participants