Escher build instructions
Escher can be built targeting both Fuchsia and Linux. Building for Linux is useful because it allows use of Vulkan development tools that are not yet available on Fuchsia.
Building for Fuchsia
Escher itself is part of any Fuchsia build that includes Scenic, i.e. any build that targets a device with a screen. The Escher examples and tests are built by adding //src/ui/examples/escher and //src/ui/lib/escher:escher_tests to your fx set invocation.
Building for Linux
Escher can also build on Linux. In order to do so, you need to:
-
Install build dependencies:
-
Install a GPU driver that supports Vulkan:
- NVIDIA: version >= 367.35
- Intel: Mesa >= 12.0
-
Set the
VK_LAYER_PATHandLD_LIBRARY_PATHenvironment variables. Here we use the Vulkan layers and loader from Vulkan SDK: -
Specify that you want the Escher examples and unit-tests to be built:
cd $FUCHSIA_DIR fx set terminal.x64 --with='//src/ui/examples/escher,//src/ui/lib/escher:escher_tests'-
See Getting started for how to set up the
fxtool. -
The command-line above is just an example.
-
-
Do the following each time you want to rebuild and run the
waterfallexample: -
Escher unit-tests are built and run similarly: