Compiling Legacy v1.3.5 to v1.8 - dagelf/synergy-core GitHub Wiki
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.
These are for Windows XP SP3 (the earliest Windows supported) and above.
- Visual Studio 2015
- Qt 5.6
- CMake 2.8
- Python 2.x
- Wix v3.8
- Bonjour SDK for Windows
- Command line git in your PATH.
(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.
QMAKESPEC
environmental variable. the correct value for this is X:\Qt\5.6\mingw49_32\mkspecs\win32-g++
- All dependencies required for Windows x86
- Install Homebrew
- Install XCode (also available via the Mac App Store)
- Update the command line tools setting - Preferences -> Locations
- In the Command Line Tools drop down, select “Xcode 9.4”
- Install the latest version of Qt 5.9 Qt (5.9.6 as of Jun 11/18)
- Choose open source option
- Run package manager
- Select Qt 5.9.x and unselect everything other than macOS
- At bottom of list ensure Qt Creator is selected under “Tools”
- Select Continue and agree to terms
- Install cmake, openssl, libsodium using Homebrew:
brew install cmake openssl libsodium
sudo apt-get install git cmake make g++ xorg-dev libqt4-dev libcurl4-openssl-dev libavahi-compat-libdnssd-dev libssl-dev libx11-dev
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"
sudo apt-get install build-essential cmake libavahi-compat-libdnssd-dev libcurl4-openssl-dev libssl-dev lintian python qt4-dev-tools xorg-dev fakeroot
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"
su yast2 -i cmake python gcc-c++ xorg-x11-devel libcurl-devel libopenssl-devel
su urpmi cmake python gcc-c++ make xorg-x11-dev libcurl-dev (SSL dev package, not sure what it's called on Mandriva)
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)
- 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
Use cmake
to build the project from the root directory of the git repository.
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
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
git clone https://github.com/symless/synergy-core.git cd synergy-core mkdir build cd build cmake .. make