@@ -12,7 +12,7 @@ export LLVM_VERSION=20
1212
1313apt-get install -y \
1414 git apt-utils lsb-release software-properties-common gnupg \
15- ninja-build pkg-config build-essential gdb
15+ ninja-build pkg-config build-essential gdb curl wget
1616
1717cd /usr/local && git clone https://github.com/microsoft/vcpkg.git && \
1818 cd vcpkg && ./bootstrap-vcpkg.sh && \
@@ -23,6 +23,10 @@ cd /usr/local && git clone https://github.com/microsoft/vcpkg.git && \
2323 wget -O /tmp/llvm.sh https://apt.llvm.org/llvm.sh && \
2424 chmod +x /tmp/llvm.sh && /tmp/llvm.sh ${LLVM_VERSION} && \
2525 apt-get install -y libomp-${LLVM_VERSION} -dev
26+
27+ # Add VCPKG_ROOT to environment variables
28+ echo " export VCPKG_ROOT=/usr/local/vcpkg" >> ~ /.bashrc
29+ source ~ /.bashrc
2630```
2731
2832### 1.2. Windows with MSVC
@@ -34,8 +38,10 @@ After that, open Powershell, install [scoop](https://scoop.sh/) and the followin
3438``` pwsh
3539# Allow script execution
3640Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
41+
3742# Install scoop
3843Invoke-RestMethod -Uri https://get.scoop.sh | Invoke-Expression
44+
3945# Install softwares
4046scoop install cmake ninja git vcpkg
4147```
@@ -47,8 +53,10 @@ You can skip the Visual Studio installation but install MinGW with scoop directl
4753``` pwsh
4854# Allow script execution
4955Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
56+
5057# Install scoop
5158Invoke-RestMethod -Uri https://get.scoop.sh | Invoke-Expression
59+
5260# Install softwares
5361scoop install cmake ninja git mingw vcpkg
5462```
@@ -108,5 +116,5 @@ python ./.templates/gen_project.py -n <project-name> -t <project-type>
108116After generating your project, you can remove the ".template" directory by deleting it directly, or use the following command:
109117
110118``` bash
111- python ./.template /gen_project.py --remove-templates
119+ python ./.templates /gen_project.py --remove-templates
112120```
0 commit comments