Updated Compiling Cockatrice (markdown)

ctrlaltca
2016-07-11 12:18:21 +02:00
parent 6855c1424f
commit 4eafc0c08f

@@ -189,8 +189,46 @@ sudo apt-get remove appmenu-qt5
### Ubuntu 16.xx
This version of ubuntu is recent enough to provide up-to-date dependencies,
so you won't need to add any external repository. Just ensure you installed
Qt5, Cmake and Protobuf packages and follow the generic installation procedure.
More precise instructions will follow.
all the prerequisite packages:
You first need to install some prerequisite packages:
```bash
# Update packages list
sudo apt-get update
# Install the needed prerequisites
sudo apt-get install -y git build-essential g++ cmake \
libprotobuf-dev protobuf-compiler \
qt5-default qttools5-dev qttools5-dev-tools \
qtmultimedia5-dev libqt5multimedia5-plugins libqt5svg5-dev \
libqt5sql5-mysql libqt5websockets5-dev
```
Then, grab the cockatrice source code and create a directory to host the build:
```bash
# Get a copy of Cockatrice's source code
git clone git://github.com/Cockatrice/Cockatrice
# Create a directory to host the build process
cd Cockatrice
mkdir build
cd build
```
Now, configure the build and create a deb package
```bash
# Configure the build
cmake .. -DWITH_SERVER=1
# Alternatively, if you want to create a debug build to troubleshoot issues:
# cmake .. -DWITH_SERVER=1 -DCMAKE_BUILD_TYPE=Debug
# Compile Cockatrice and build a debian package
make package -j2
```
At last, install the package.
```bash
# Install the package
sudo dpkg -i Cockatrice*.deb
```
### Arch Linux
Cockatrice is available compiled with Qt5 in the AUR as [cockatrice-git](https://aur.archlinux.org/packages/cockatrice-git/)