Skip to content

Building on Linux

Matthew Leibowitz edited this page Mar 25, 2018 · 42 revisions

As of v1.60.1 (yet to be released), building libSkiaSharp.so is very easy and does not even require the mono/SkiaSharp repository. However, it is best to just clone the mono/SkiaSharp repository as it also pulls down additional tools used to build skia, namely depot_tools.

Prior to v1.60.1, use the "Building on Linux (LEGACY)" guide.

Downloading the Code

The first step is to clone the mono/skia repository:

$ git clone https://github.com/mono/skia.git -b v1.60.1

To build the current master, check out xamarin-mobile-bindings as this is the Xamarin "master" - the master branch is reserved for the Google "master".

Downloading the Tools

In order to build libSkiaSharp, Google's depot_tools is also required:

$ https://chromium.googlesource.com/chromium/tools/depot_tools.git