Skip to content

Commit

Permalink
修复mkworld编译异常的问题
Browse files Browse the repository at this point in the history
先前直接Build时,会出现:`../../osdep/OSUtils.hpp:46:10: fatal error: nlohmann/json.hpp: No such file or directory` 的问题,造成最后并没有编译出正确的planet的问题;
此外,直接使用 wget 往 `/usr/include` 下塞东西确实不够优雅,但是不知道为啥 `apt install nlohmann-json-dev` 是 missing 的,考虑到这块后续也不会有啥变化,就是用了这种比较简单直接的方式
  • Loading branch information
pescn authored Jun 22, 2022
1 parent c8f9c09 commit 9a16916
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@ dpkg-reconfigure --frontend noninteractive tzdata
rm -rf /var/lib/apt/lists/*

apt update
apt install git python3 npm make curl -y
apt install git python3 npm make curl wget -y

mkdir /usr/include/nlohmann/
cd /usr/include/nlohmann/ && wget https://github.com/nlohmann/json/releases/download/v3.10.5/json.hpp

npm config set registry http://registry.npm.taobao.org && npm install -g node-gyp
curl -s https://install.zerotier.com | bash
cd /opt && git clone -v http://gh-proxy.markxu.vip/https://github.com/key-networks/ztncui.git
Expand Down

0 comments on commit 9a16916

Please sign in to comment.