Recently, I’ve been playing Magic the Gathering after having last played it in 1998. I heard about this program called ‘cockatrice’ to test my decks, but couldn’t compile it on my Xubuntu 13.10 desktop. Finally I found out I could do it with the ‘clang’ compiler.
Here’s how to compile and install it:
Simply open a terminal (Ctrl + Alt + T) and copy a execute each command:
|
1 2 3 4 5 6 7 8 9 10 11 12 13 |
sudo apt-get install unzip clang cmake libprotobuf-dev protobuf-compiler qtmobility-dev libqt4-dev libqt4-dev-bin wget https://www.dropbox.com/s/y4vzwl6q8o96wgk/Cockatrice_git-20140115-92ff503.zip unzip Cockatrice_git-20140115-92ff503.zip -d Cockatrice cd Cockatrice mkdir build cd build export CC="/usr/bin/clang" export CXX="/usr/bin/clang++" cmake .. make sudo make install |
If you need the cards list or Windows/Mac binaries, go to Woogerworks.
« Set Global HTTP/HTTPS Proxy/Proxies on Xubuntu Using IPTables and RedSocks Linux Slackware 14.1 installation hangs when installing LILO »

ok i installed ubuntu 13.10 and i would like to install cockatrice (i played everyday when i had windows 7). I tried installing under wine but cant make the cards to work (they dont show properly, even if i downloaded them from woogerworks). Something is wrong in the path to cards folder. Tried to fix the path from cockatrice settings but the program crashes over and over. I never tried to compile or do anything like that before (im brand new to ubuntu and linux) but if u help me i will give it a try. thanks
BTW the zip file u are pointing is not there anymore
I’ll update the post tonight. Hopefully it will be more non-programmer friendly. 😉
Hi, cd Cockatrice , dont work for me. File dont exist… What am doing wrong ?? Sorry for my bad English
Woogerworks changed the structure of the zip archive. I’ve updated the post. All should work fine now.
Thank you very much guy, 😀 I Adore you… Its all works.. I build you a 30 feet high statue in my country… 😀
Dosent work for me.
zachary@zachary-LT40:~/Cockatrice/build$ cmake ..
— The CXX compiler identification is Clang 3.2.0
— Check for working CXX compiler: /usr/bin/clang++
— Check for working CXX compiler: /usr/bin/clang++ — broken
CMake Error at /usr/share/cmake-2.8/Modules/CMakeTestCXXCompiler.cmake:54 (message):
The C++ compiler “/usr/bin/clang++” is not able to compile a simple test
program.
It fails with the following output:
Change Dir: /home/zachary/Cockatrice/build/CMakeFiles/CMakeTmp
Run Build Command:/usr/bin/make “cmTryCompileExec4023683057/fast”
/usr/bin/make -f CMakeFiles/cmTryCompileExec4023683057.dir/build.make
CMakeFiles/cmTryCompileExec4023683057.dir/build
make[1]: Entering directory
/home/zachary/Cockatrice/build/CMakeFiles/CMakeTmp'/usr/bin/cmake -E cmake_progress_report
/home/zachary/Cockatrice/build/CMakeFiles/CMakeTmp/CMakeFiles 1
Building CXX object
CMakeFiles/cmTryCompileExec4023683057.dir/testCXXCompiler.cxx.o
/usr/bin/clang++ -o
CMakeFiles/cmTryCompileExec4023683057.dir/testCXXCompiler.cxx.o -c
/home/zachary/Cockatrice/build/CMakeFiles/CMakeTmp/testCXXCompiler.cxx
Linking CXX executable cmTryCompileExec4023683057
/usr/bin/cmake -E cmake_link_script
CMakeFiles/cmTryCompileExec4023683057.dir/link.txt --verbose=1
/usr/bin/clang++
CMakeFiles/cmTryCompileExec4023683057.dir/testCXXCompiler.cxx.o -o
cmTryCompileExec4023683057 -rdynamic
/usr/bin/ld: cannot find -lstdc++
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
make[1]: *** [cmTryCompileExec4023683057] Error 1
make[1]: Leaving directory
/home/zachary/Cockatrice/build/CMakeFiles/CMakeTmp’
make: *** [cmTryCompileExec4023683057/fast] Error 2
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
— Configuring incomplete, errors occurred!
zachary@zachary-LT40:~/Cockatrice/build$ make
Thank you very much. This guide saved me a lot of trouble with using VirtualBox.
Hello Im trying to install using new .zip file from Woogerworks.
I think im ok until this line:
export CXX=”/usr/bin/clang++”
After that, when i try: cmake ..
Terminal says that there is no CMakeLists……. I really dont understand – this is really hard for me. Im a noob Ubuntu user but wanna play Magic and learn. Can you help me?
PS: this is the new .zip file
https://www.dropbox.com/s/8g0g8xk2z7k7jyj/Cockatrice-05172014_DEV.zip
Not working anymore! the file doestn exist…