forked from google/filament
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.txt
33 lines (24 loc) · 1.03 KB
/
install.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
sudo apt-get remove clang-14
sudo apt-get install clang-14
sudo apt-get install libc++-14-dev libc++abi-14-dev
# Get the emsdk repo
git clone https://github.com/emscripten-core/emsdk.git
# Enter that directory
cd emsdk
# Fetch the latest version of the emsdk (not needed the first time you clone)
git pull
# Download and install the latest SDK tools.
./emsdk install latest
# Make the "latest" SDK "active" for the current user. (writes .emscripten file)
./emsdk activate latest
# Activate PATH and other environment variables in the current terminal
source ./emsdk_env.sh
sudo apt install build-essential git subversion cmake libx11-dev libxxf86vm-dev libxcursor-dev libxi-dev libxrandr-dev libxinerama-dev libegl-dev
sudo apt install libwayland-dev wayland-protocols libxkbcommon-dev libdbus-1-dev linux-libc-dev
sudo update-alternatives --install /usr/bin/cc cc /usr/bin/clang 200
sudo update-alternatives --install /usr/bin/c++ c++ /usr/bin/clang++ 200
CC=clang CXX=clang++ cmake -G Ninja ../..
which cc
cc --version
which c++
c++ --version