You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: BUILDING.md
+13-9Lines changed: 13 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@
5
5
To build Filament, you must first install the following tools:
6
6
7
7
- CMake 3.22.1 (or more recent)
8
-
- clang 16.0 (or more recent) (Required for Linux and macOS; see [Windows](#windows) section for MSVC support)
8
+
- clang 17.0 (or more recent) (Required for Linux and macOS; see [Windows](#windows) section for MSVC support)
9
9
-[ninja 1.10](https://github.com/ninja-build/ninja/wiki/Pre-built-Ninja-packages) (or more recent)
10
10
11
11
Additional dependencies may be required for your operating system. Please refer to the appropriate
@@ -79,6 +79,10 @@ The following CMake options are boolean options specific to Filament:
79
79
-`FILAMENT_INSTALL_BACKEND_TEST`: Install the backend test library so it can be consumed on iOS
80
80
-`FILAMENT_USE_EXTERNAL_GLES3`: Experimental: Compile Filament against OpenGL ES 3
81
81
-`FILAMENT_SKIP_SAMPLES`: Don't build sample apps
82
+
-`FILAMENT_ENABLE_EXCEPTIONS`: Enable C++ exceptions (default: ON, OFF for iOS). Required for JNI bindings.
83
+
-`FILAMENT_ENABLE_RTTI`: Enable C++ RTTI (default: OFF).
84
+
85
+
Note: If you intend to use the JNI library (Android/Java build), you need to have `FILAMENT_ENABLE_EXCEPTIONS` enabled. If you are using Filament on Android as a pure native library and want to save space, you can disable it (e.g., using `./build.sh -E`).
82
86
83
87
To turn an option on or off:
84
88
@@ -93,17 +97,17 @@ Options can also be set with the CMake GUI.
93
97
94
98
Make sure you've installed the following dependencies:
95
99
96
-
-`clang-16` or higher
100
+
-`clang-17` or higher
97
101
-`libglu1-mesa-dev`
98
-
-`libc++-16-dev` (`libcxx-devel` and `libcxx-static` on Fedora) or higher
99
-
-`libc++abi-16-dev` (`libcxxabi-static` on Fedora) or higher
102
+
-`libc++-17-dev` (`libcxx-devel` and `libcxx-static` on Fedora) or higher
103
+
-`libc++abi-17-dev` (`libcxxabi-static` on Fedora) or higher
100
104
-`ninja-build`
101
105
-`libxi-dev`
102
106
-`libxcomposite-dev` (`libXcomposite-devel` on Fedora)
0 commit comments