Skip to content

Building on Windows

Katie Chan edited this page Aug 26, 2017 · 12 revisions

Official packaging

Prerequisities

How to

Open huggle3-qt-lx/windows and run release.ps1, despite it may fail. In case that happens, it would show a clear error that tells you what is wrong and how to fix it. Follow that.

Once you build x86 version, you can open windows64 folder and run pack.ps1, that would build a setup for 64 bit huggle

Other custom builds

Prerequisites

Huggle requires 2 files that are automatically generated by packaging scripts.

  • huggle/version.txt
  • huggle/definitions.hpp

In case you are running custom builds and don't use any of the packaging scripts, you need to make these files yourself. For definitions, you only need to copy definitions_prod.hpp to definitions.hpp (then you can modify it to your needs). For version.txt, you can either run update.sh in bash, or just create an empty text file called version.txt. This will also work, although there will be less information about Huggle version in About form.

Visual Studio

  • Install cmake
  • Run cmake and configure and generate with -DHUGGLE_EXT=true -DQT5_BUILD=true (file huggle/CMakeLists.txt)
  • Open generated huggle.sln file in Visual Studio
  • Build whole solution

Note: sometimes MOC fails, so you may need to keep restarting build until it finishes, this is a Qt bug

Qt creator

Note, if there is no huggle.pro you can copy huggle.orig to huggle.pro and then use that instead

Clone this wiki locally