Building Flutter Engine for Custom OS and custom tool chains.

267 views
Skip to first unread message

Vijay Ch

unread,
Dec 20, 2018, 1:43:05 AM12/20/18
to Flutter Dev
Hello,
I want to build flutter for Custom OS where it has it own gcc based build tool chain.
But when i try to compile it on my Linux it is able to generate the ninja files using gn build.
And it fails during ninja build saying clang/clang++ not found.
Since my custom tool chain doesn't support clang, i tried disabling the option --no-clang, but it didn't work.


I also want to understand the below build options given for gn.

--target-toolchain = Path to my tool chain
--target-triple = the compiler name some thing like "arm-linux-gnueabihf "
--toolchain-prefix = what should be the prefix here?

Can any one from the group give the answers?

Thanks in advance
Vijay

Vijay Ch

unread,
Dec 20, 2018, 7:52:17 AM12/20/18
to Flutter Dev
I can see the below changes in gn script

gn_args['is_clang'] = not sys.platform.startswith(('cygwin', 'win'))

does it mean that clang is mandatory in the tool chain to build flutter?

Eric Seidel

unread,
Jan 2, 2019, 1:22:22 PM1/2/19
to Vijay Ch, Flutter Dev
+Chinmay Garde likely has the answers, but may not be back in the office yet.

https://medium.com/flutter-io/flutter-on-raspberry-pi-mostly-from-scratch-2824c5e7dcb1
is also his guide of walking through building for another platform.

Hope that helps.
> --
> You received this message because you are subscribed to the Google Groups "Flutter Dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages