答案1
首先,将 Github 仓库克隆到本地,将所有文件下载到自己的电脑上:
$ git clone https://github.com/Cockatrice/Cockatrice
然后您应该能够查看 README:
$ cd Cockatrice
$ less README.md # or any other plain text file viewer
安装依赖项就像这样:
$ sudo apt-get install libprotobuf-dev protobuf-compiler qtbase5-dev qtdeclarative5-dev libqt5webkit5-dev libsqlite3-dev qt5-default qttools5-dev-tools qttools5-dev qtmultimedia5-dev libqt5svg5-dev cmake
然后按照 README 中的说明进行编译:
$ mkdir build # create directory where complied files will go
$ cd build # go to that directory
$ cmake .. # run cmake
$ make # compile
$ make install # install