How to build libflutter.so in an Ubuntu environment

I am developing some apps, I need refresh libflutter.so with different versions, however, I am not able to build libflutter.so, anyone can give me exact steps to build libflutter.so successfuly?

I am only able to build libflutter_engine.so with below steps:

  1. create .gclient

solutions = [
{
“managed”: False,
“name”: “src/flutter”,
“url”: “GitHub - flutter/engine: The Flutter engine”,
“custom_deps”: {},
“deps_file”: “DEPS”,
“safesync_url”: “”,
“custom_vars”: {
“download_android_deps”: False,
“download_windows_deps”: False,
},
},
]

  1. gclient sync
  2. config flutter:

cd src
./flutter/tools/gn --target-os=linux --linux-cpu=arm64 --runtime-mode=debug --unoptimized
–embedder-for-target --disable-desktop-embeddings --no-build-embedder-examples
–enable-fontconfig

  1. build flutter:

ninja -C out/linux_debug_unopt_arm64

libflutter_engine.so is NOT libflutter.so, then I was wired for how to generate libflutter.so(already tried a lot of ways, not success so far

Please help on this!!!

no body knows?

Not familiar with this exact problem but I think you’ll get better responses from the engine channel on the official discord

Thanks, could you share a link or snapshot for engineer channel? I tried with discord for sometime, and did not find a place to publish my questions.

Please check this page. What I meant was specifically the hackers-engine channel

1 Like

it shows: you don’t have permission to send messages in this channel.

I posted with below link, hope someone can help on this topic.

https://www.reddit.com/r/FlutterDev/comments/1oh6t41/how_to_build_libflutterso_with_ubuntu_machine/

Did you read that doc at all? You gotta accept the rules in welcome first and then it should work