csb2csd

1.下载csb2csd-master,https://github.com/DavidFeng/csb2csd/archive/refs/heads/master.zip

2.解压 unzip csb2csd-master.zip

3.下载lua-flatbuffers-0.2 https://github.com/DavidFeng/lua-flatbuffers/archive/refs/tags/0.2.zip

4.解压lua-flatbuffers-0.2.zip

5.编译lua-flatbuffes-0.2.zip

unzip lua-flatbuffers-0.2.zip
cd lua-flatbuffers-0.2.zip
make 
如果出现buflib.h:8:17: fatal error: lua.h: No such file or directory
就直接到第6步

6.下载https://www.lua.org/ftp/lua-5.3.6.tar.gz lua-5.3.6.tar

tar zxvf lua-5.3.6.tar.gz
cd lua-5.3.6
编译:make linux
报错:
lua.c:82:31: fatal error: readline/readline.h: No such file or directory
则安装:
apt-get install libreadline-dev
make linux
make install
cd ../lua-flatbuffers-0.2
make 报错:
'lua53': No such file or directory
则 
ln -s /usr/local/bin/lua /usr/local/bin/lua53
再 make
cd  ../csb2csd-master
cp ../lua-flatbuffers-0.2/buffer.so ./ 到csb2csd-master目录下
编译csb2csd-master make 
然后测试 用例: 
lua lily.lua test/TestAnimation.csb
输出:
读入csb文件: ./test/TestAnimation.csb
输出csd文件: out/test/TestAnimation.csd
则编译成功

7.下载start.tar

解压 start.tar.gz: tar zxvf star.tar.gz
更改文件权限 chmod +x start.sh
执行: ./start.sh
输出:
读入csb文件: ./test/TestAnimation.csb
输出csd文件: out/test/TestAnimation.csd