Update build instructions for Linux

This commit is contained in:
Romain Guy
2018-08-05 01:17:09 -07:00
parent 7c60824022
commit 2c85725d9e
2 changed files with 16 additions and 5 deletions

View File

@@ -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

View File

@@ -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
}