4
4
5
5
To build Filament, you must first install the following tools:
6
6
7
- - CMake 3.19 (or more recent)
8
- - clang 14 .0 (or more recent)
7
+ - CMake 3.22.1 (or more recent)
8
+ - clang 16 .0 (or more recent)
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
@@ -88,17 +88,17 @@ Options can also be set with the CMake GUI.
88
88
89
89
Make sure you've installed the following dependencies:
90
90
91
- - ` clang-14 ` or higher
91
+ - ` clang-16 ` or higher
92
92
- ` libglu1-mesa-dev `
93
- - ` libc++-14 -dev ` (` libcxx-devel ` and ` libcxx-static ` on Fedora) or higher
94
- - ` libc++abi-14 -dev ` (` libcxxabi-static ` on Fedora) or higher
93
+ - ` libc++-16 -dev ` (` libcxx-devel ` and ` libcxx-static ` on Fedora) or higher
94
+ - ` libc++abi-16 -dev ` (` libcxxabi-static ` on Fedora) or higher
95
95
- ` ninja-build `
96
96
- ` libxi-dev `
97
97
- ` libxcomposite-dev ` (` libXcomposite-devel ` on Fedora)
98
98
- ` libxxf86vm-dev ` (` libXxf86vm-devel ` on Fedora)
99
99
100
100
``` shell
101
- sudo apt install clang-14 libglu1-mesa-dev libc++-14 -dev libc++abi-14 -dev ninja-build libxi-dev libxcomposite-dev libxxf86vm-dev -y
101
+ sudo apt install clang-16 libglu1-mesa-dev libc++-16 -dev libc++abi-16 -dev ninja-build libxi-dev libxcomposite-dev libxxf86vm-dev -y
102
102
```
103
103
104
104
After dependencies have been installed, we highly recommend using the [ easy build] ( #easy-build )
@@ -119,7 +119,7 @@ Your Linux distribution might default to `gcc` instead of `clang`, if that's the
119
119
``` shell
120
120
mkdir out/cmake-release
121
121
cd out/cmake-release
122
- # Or use a specific version of clang, for instance /usr/bin/clang-14
122
+ # Or use a specific version of clang, for instance /usr/bin/clang-16
123
123
CC=/usr/bin/clang CXX=/usr/bin/clang++ CXXFLAGS=-stdlib=libc++ \
124
124
cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=../release/filament ../..
125
125
```
@@ -129,8 +129,8 @@ solution is to use `update-alternatives` to both change the default compiler, an
129
129
specific version of clang:
130
130
131
131
``` shell
132
- update-alternatives --install /usr/bin/clang clang /usr/bin/clang-14 100
133
- update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-14 100
132
+ update-alternatives --install /usr/bin/clang clang /usr/bin/clang-16 100
133
+ update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-16 100
134
134
update-alternatives --install /usr/bin/cc cc /usr/bin/clang 100
135
135
update-alternatives --install /usr/bin/c++ c++ /usr/bin/clang++ 100
136
136
```
0 commit comments