Skip to content

Compiling v1.3.5 to v1.8 (legacy)

Nick Bolton edited this page Jan 10, 2022 · 1 revision

Table of Contents

Introduction

This guide is for Synergy v1.3.5 to v1.8. First you need to clone the Source Code from our GitHub repo, then install the dependencies, and finally, follow the compile instructions.

Dependencies

Windows x86

These are for Windows XP SP3 (the earliest Windows supported) and above.

You may need to add your Python install directory to the end of your PATH environment variable
(System --> Advanced System Settings --> Environment Variables)
.

Using Python 3.x will result in syntax errors as print became a function rather than a statement: What's new in Python 3.0

Note: If you want to change the installed directory of Bonjour SDK, please double check the BONJOUR_SDK_HOME environment variable after installation.

Note: You may need to add your QT directory to your PATH environment variable, especially for the qmake and mingw32-make. make sure:

  • add X:\Qt\5.6\mingw49_32\bin;X:\Qt\Tools\mingw492_32\bin into the Path.
Note: You may need to set your QMAKESPEC environmental variable. the correct value for this is X:\Qt\5.6\mingw49_32\mkspecs\win32-g++

Windows 64-bit

macOS 10.13

  1. Install Homebrew
  2. Install XCode (also available via the Mac App Store)
    1. Update the command line tools setting - Preferences -> Locations
    2. In the Command Line Tools drop down, select “Xcode 9.4”
  3. Install the latest version of Qt 5.9 Qt (5.9.6 as of Jun 11/18)
    1. Choose open source option
    2. Run package manager
    3. Select Qt 5.9.x and unselect everything other than macOS
    4. At bottom of list ensure Qt Creator is selected under “Tools”
    5. Select Continue and agree to terms
  4. Install cmake, openssl, libsodium using Homebrew:
    1. brew install cmake openssl libsodium

Ubuntu 10.04 to 15.10

 sudo apt-get install git cmake make g++ xorg-dev libqt4-dev libcurl4-openssl-dev libavahi-compat-libdnssd-dev libssl-dev libx11-dev

CentOS 6/7

 sudo yum install cmake make gcc-c++ libX11-devel libXext-devel libXi-devel libXtst-devel libXinerama-devel libcurl-devel qt-devel avahi-compat-libdns_sd-devel openssl-devel rpm-build rpmlint
 PATH="$PATH:/usr/lib64/qt4/bin:/usr/lib/qt4/bin"

Debian 7/8

  sudo apt-get install build-essential cmake libavahi-compat-libdnssd-dev libcurl4-openssl-dev libssl-dev lintian python qt4-dev-tools xorg-dev fakeroot

Fedora 20

 sudo yum install cmake make gcc-c++ libX11-devel libXtst-devel libXext-devel libXinerama-devel libcurl-devel qt-devel avahi-compat-libdns_sd-devel openssl-devel rpm-build rpmlint
 PATH="$PATH:/usr/lib64/qt4/bin:/usr/lib/qt4/bin"

OpenSUSE 11.1

 su
 yast2 -i cmake python gcc-c++ xorg-x11-devel libcurl-devel libopenssl-devel

Mandriva One 200

 su
 urpmi cmake python gcc-c++ make xorg-x11-dev libcurl-dev (SSL dev package, not sure what it's called on Mandriva)

OpenSolaris 2009.06

 su
 pkg install SUNWPython SUNWcmake SUNWgcc SUNWxorg-headers SUNWxwinc libcurl-devel

(libcurl-devel or SSL dev package, not sure what it's called on Solaris)

Unix or other Linux

  • CMake
  • Python
  • GNU Make
  • GCC (2.95 and up)
  • X11R4 and up (headers and libraries)
  • Xtst (e.g. libXtst-devel)
  • Qt 2010.03
  • libCURL
  • SSL dev package

Compile

Use cmake to build the project from the root directory of the git repository.

Windows

 git clone https://github.com/symless/synergy-core.git
 cd synergy-core
 mkdir build
 call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat"
 cmake -G "Visual Studio 14 2015 Win64" -DCMAKE_BUILD_TYPE=%CMAKE_BUILD_TYPE%
 msbuild synergy-core.sln /p:Platform="x64" /p:Configuration=Release /m

macOS

 git clone https://github.com/symless/synergy-core.git
 cd synergy-core
 mkdir build
 cmake -DCMAKE_OSX_SYSROOT=/Library/Developer/CommandLineTools/SDKs/MacOSX10.13.sdk -DCMAKE_OSX_DEPLOYMENT_TARGET=10.9 -DCMAKE_OSX_ARCHITECTURES=x86_64
 make

Linux

 git clone https://github.com/symless/synergy-core.git
 cd synergy-core
 mkdir build
 cd build
 cmake ..
 make