compiling_synergy_for_windows_64-bit
Table of Contents
Compiling synergy for Windows 64-bit
This procedure is kind of complicated, but it gets it done with free tools (and a few downloaded add-ons).
Prerequisites
Install everything that the Synergy Wiki recommends. I do this in a special VM just for this, because some of these tools are really old and I don't like keeping them installed.
- CMake 3.3.1
- Python 2.7.10
- Qt SDK 2010.02
- Wix 3.9
- Bonjour SDK for Windows 3.0
- Make sure CMake and Python are added to your PATH.
We're doing a 64-bit build, and the Synergy Wiki recommends VS 2005 or 2008, but I will explain how to get this done for free with Visual C++ 2010 Express. Install the following (in order, as recommended here):
-
- This will not install in Windows 10 without hackery. See this workaround.
A few extras not included with Visual C++ 2010 Express Edition
Grab a few extras normally included with the full Visual Studio 2010 but not with Express (search for them if you can't find them…)
-
- Install this in
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\amd64
- Microsoft_VC100_CRT_x64.msm for Visual Studio 2010
* Install this inC:\Program Files (x86)\Common Files\Merge Modules
Do the build
- Start a Command Prompt, go into the synergy source directory.
- Add Qt to the PATH:
set PATH=%PATH%;C:\Qt\2010.02\qt\bin;C:\Qt\2010.02\bin;C:\Qt\2010.02\mingw\bin
- Figure out the correct generator:
hm genlist
- Use the generator for Visual Studio 10 Win64 (2 as of this writing):
hm conf -g2
- Build it:
hm build
- Fix something in the installer:
- In ext/toolchain/commands1.py, edit getVersionForFilename to return a string e.g. “v1.7.4-stable” instead of trying to run git.
- Build the installer:
hm package win
compiling_synergy_for_windows_64-bit.txt · Last modified: 2015/08/31 22:03 by doug