From 2c85725d9e9c407e9bb4cd8a2ba9e6b44af3fd44 Mon Sep 17 00:00:00 2001 From: Romain Guy Date: Sun, 5 Aug 2018 01:17:09 -0700 Subject: [PATCH] Update build instructions for Linux --- README.md | 11 +++++++++++ build.sh | 10 +++++----- 2 files changed, 16 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 819d5b9fd3..9c69d4d5a1 100644 --- a/README.md +++ b/README.md @@ -190,6 +190,10 @@ Make sure you've installed the following dependencies: - `libc++abi-dev` - `ninja-build` +In addition your distribution might require: + +- `libxi-dev` + Then invoke `cmake`: ``` @@ -217,6 +221,13 @@ $ ninja This will build Filament, its tests and samples, and various host tools. +If you experience link errors you must ensure that you are using `libc++abi` by passing this +extra parameter to `cmake`: + +``` +-DFILAMENT_REQUIRES_CXXABI=true +``` + #### macOS To compile Filament you must have the most recent version of Xcode installed and you need to diff --git a/build.sh b/build.sh index 4140ac875c..c393a5cc80 100755 --- a/build.sh +++ b/build.sh @@ -315,12 +315,12 @@ function validate_build_command { exit 1 fi fi - # Make sure we have Java + # Make sure we have Java javac_binary=`which javac` - if [ "$JAVA_HOME" == "" ] || [ ! "$javac_binary" ]; then - echo "Warning: JAVA_HOME is not set, skipping Java projects" - ENABLE_JAVA=OFF - fi + if [ "$JAVA_HOME" == "" ] || [ ! "$javac_binary" ]; then + echo "Warning: JAVA_HOME is not set, skipping Java projects" + ENABLE_JAVA=OFF + fi set -e }