mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-08-11 19:45:53 -05:00
Page:
Compiling Cockatrice (Windows)
Pages
Bug
Client server protocol
Cockatrice on Android (phone tablet)
Compiling Cockatrice (Linux)
Compiling Cockatrice (Windows)
Compiling Cockatrice (macOS)
Compiling Cockatrice
Contributing Code
Contributing to the Cockatrice Tokens File
Custom Cards & Sets
Custom Download URLs
Custom Keyboard Shortcuts
Custom Picture Download URLs
Debugging
Deck List Import Formats
Donations
EDH Kingdoms
Frequently Asked Questions (FAQs)
Frequently Asked Questions
Getting Started
Home
How to Create a GitHub Ticket Regarding Cockatrice
How to Create a GitHub Ticket
How to use unreleased versions created by pull requests
Installing Cockatrice on Chromebooks
Installing Cockatrice
Installing Servatrice on Kubernetes
Installing on Linux
Installing on Windows
Installing on macOS [DRAFT]
Limited Formats
One minute game guide
Pawn Identification Chart
Public Servers
Servatrice Command Line Reference
Servatrice FAQ Troubleshooting
Servatrice Server Maintenance
Setting up Servatrice
Sound themes
The Cockatrice Etiquette Primer
Themes
Translation FAQ
Translator Hall of Fame
Troubleshooting
Tutorials
Unofficial Developer Builds
Updating Cockatrice
Using Apache2 to Proxy Servatrice Websockets with SSL
Using NGINX to Wrap Servatrice Websockets in SSL
temp windows gui
Clone
Compiling On Windows
Looking to get setup on Windows? This guide should help you start with CLion! Windows is finicky and this guide should hopefully help you recreate whatever mess I ended up with that is fully functional.
Software
- Visual Studio 2022 Community Edition
- Select "Desktop Development with C++" and then tick all boxes in the Installation Details section (Windows 10/11 SDKs optional)
- Jetbrains CLion 2022.3 (or newer)
- This is free software, but you can do this completely in Visual Studio, if necessary
- Python 3.11 (or newer)
- Download the installer
- Tick
Add python.exe to PATH - Custom Installation > Next
- Tick all boxes
- Install
- Qt and CMake via Python
-
python3 -m pip install aqtinstall cmake aqt install-qt windows desktop 6.6.3 msvc2019_64 -m all aqt install-tool windows desktop tools_opensslv3_x64
-
- Git Bash 2.39.0 (or newer)
- It's a good piece of software to have, regardless
- Nullsoft Scriptable Install System (NSIS) 3.08 (or newer)
- This is how we can package our software for distribution, if necessary
Development Environment Configurations
- Add Qt6 to your PATH Environment Variable
Windows Start > Edit System Environment Variables > Environment variables... > PATH > Edit...- Add the absolute path of your Qt6 binary directory
- Ex:
C:\Users\Zach\Documents\Development\Qt\6.6.3\msvc2019_64\bin
- Ex:
- Add the absolute path of your Qt6 binary directory
- Establish VCPKG repository
Windows Start > Git Bash-
git clone https://github.com/Cockatrice/Cockatrice.git ~/Desktop/Cockatrice cd ~/Desktop/Cockatrice git submodule update --init
-
- Setup CLion with the proper Toolchain and CMake profile
- Open Cockatrice project in CLion
- Set up the VS2022 Toolchain Configuration
File > Settings > Build, Execution, Deployment > Toolchains > +- Name:
Visual Studio 17 2022 - Toolset:
C:\Program Files\Microsoft Visual Studio\2022\Community
- Set up a CMake profile
File > Settings > Build, Execution, Deployment > CMake > +- Build type:
Release - Toolchain:
Visual Studio 17 2022 - Generator:
Visual Studio 17 2022 - CMake options:
-DCMAKE_GENERATOR_PLATFORM="x64" -DWITH_SERVER=1 - Build options:
--parallel 8 -- -p:CL_MPcount=8 -p:UseMultiToolTask=true
- Build type:
- Modify CMake Application to build All Targets
Run > Edit Configurations... > CMake Application > cockatrice > Target > All targets
Building and Testing
- Just run it in CLion now, it should (hopefully) work!
Welcome to the Cockatrice Wiki
- One Minute Game Guide
- Getting Started (placeholder)
- Tutorials
- Public Servers
- EDH Kingdoms
- Limited Formats
- The Cockatrice Etiquette Primer
Technical
- Installing Cockatrice
- Updating Cockatrice
- Compiling Cockatrice
- Frequently Asked Questions
- Troubleshooting
- Debugging
Customizing Cockatrice
Servatrice Server
- Setting up Servatrice
- Installing Servatrice on Kubernetes
- Server Maintenance
- Servatrice Command Line Reference
- FAQ / Troubleshooting
- SSL Websockets - NGINX
- SSL Websockets - Apache2
Helping Cockatrice