How to build the skia source in linux?

618 views
Skip to first unread message

Parthipan R

unread,
Oct 22, 2020, 8:01:24 AM10/22/20
to skia-discuss
I have followed the below steps to build the skia source in Linux ubuntu 14.04 version but it will through the error like: "c++ error unrecognized command line option ‘-std=c++17’". I have tried to install the latest version gcc but it was not working. Any one please guide me to compile the sika source and run the helloworld sample. 

Ben Wagner

unread,
Oct 22, 2020, 9:58:07 AM10/22/20
to skia-d...@googlegroups.com
Please note that Ubuntu 14.04.6 is in Extended Security Maintenance
mode ( https://lists.ubuntu.com/archives/ubuntu-announce/2019-March/000241.html
). This is more or less a way for enterprises to pay for extended
support while transitioning to a newer version and is not commonly
used. To even get such patches it appears necessary to sign up for the
service ( https://ubuntu.com/blog/ua-services-deployed-from-the-command-line-with-ua-client
). As a result, it is discouraged to use these older versions of
Ubuntu and one should update.

Modern Skia is unlikely to build or run with the default system
toolchain on Ubuntu 14.04 (or for that matter the most recent
toolchain available in any package in 14.04). In theory Chrome (which
uses Skia) still supports Ubuntu 14.04, but this is done by building
with a modern version of clang and statically linking the c++ runtime.
Using older versions of Skia (like chrome/m42) is discouraged as it
will likely have numerous issues which have since been fixed.

On Thu, Oct 22, 2020 at 8:01 AM Parthipan R <rpart...@gmail.com> wrote:
>
> I have followed the below steps to build the skia source in Linux ubuntu 14.04 version but it will through the error like: "c++ error unrecognized command line option ‘-std=c++17’". I have tried to install the latest version gcc but it was not working. Any one please guide me to compile the sika source and run the helloworld sample.
>
> https://skia.googlesource.com/skia.git/+show/chrome/m42/site/user/quick/linux.md
>
> --
> You received this message because you are subscribed to the Google Groups "skia-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to skia-discuss...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/skia-discuss/4c478b45-ae66-495a-bc61-535661b955b5n%40googlegroups.com.

Parthipan R

unread,
Oct 23, 2020, 12:11:33 AM10/23/20
to skia-discuss
I need to use latest version of ubuntu to build Skia source? If yes, can you please share the steps to build Skia source in linux environment. 

Shawn Riordan

unread,
Oct 23, 2020, 12:55:34 AM10/23/20
to skia-discuss
I needed the latest version of CentOS to build recent versions of Skia.  Due to a need for a newer version of some library skia uses.  So I imagine that a newer version of ubuntu would be a good idea; for the same reason.
Other than that, the existing instructions on skia.org for building skia with clang on linux work fine:
Reply all
Reply to author
Forward
0 new messages