English | 简体中文
Please refer to README.md
- download
wget https://nodejs.org/dist/v17.3.1/node-v17.3.1-linux-x64.tar.xz
sudo mkdir -p /usr/local/lib/nodejs
sudo tar -xJvf node-v17.3.1-linux-x64.tar.xz -C /usr/local/lib/nodejs
- Set the environment variable
Go to ~/.profile, add the following line to the end:
export PATH=/usr/local/lib/nodejs/node-v17.3.1-linux-x64/bin:$PATH
- Test installation
$ node -v
$ npm version
$ npx -v
yum install re2c
git clone git://github.com/ninja-build/ninja.git
cd ninja
./configure.py --bootstrap
cp ninja /usr/bin/
swiftshader depends on some header files.
yum install libX11-devel --nogpg
Execute the following script in the linux/ directory:
./build_pag.sh
You will get the library files in the vendor/libpag directory
Execute the following commands in the linux/ directory:
cmake -B ./build -DCMAKE_BUILD_TYPE=Release
cmake --build ./build -- -j 12
You will get the demo executable file in the build directory.