User Tools

Site Tools


synergy

This is an old revision of the document!


Table of Contents

Synergy

Project : Github

Installation

Due to infrastructure requirement, my mac now has 10.12 SDK and 10.11 MacOS.
I was able to successfully build Synergy and install on system, but failed to run with following error.

export PATH=$PATH:/usr/local/Cellar/qt5/5.9.0_1/bin
./hm.sh conf -g2 --mac-sdk 10.12 --mac-identity ElCapitan
./hm.sh build
./hm.sh dist mac

Error

You have OS X 10.11.6. The application requires OS X 10.12 or later.

Next step for me is to explicitly build app for 10.11 using 10.12 SDK.
As quick fix here is what i changed.

diff --git a/ext/toolchain/commands1.py b/ext/toolchain/commands1.py
index f32ec483..7f41f489 100644
--- a/ext/toolchain/commands1.py
+++ b/ext/toolchain/commands1.py
@@ -449,10 +449,10 @@ class InternalCommands:
                        if generator.cmakeName.find('Unix Makefiles') == -1:
                                sdkDir = self.getMacSdkDir()
                                cmake_args += " -DCMAKE_OSX_SYSROOT=" + sdkDir
-                               cmake_args += " -DCMAKE_OSX_DEPLOYMENT_TARGET=" + self.macDeploy
+                               cmake_args += " -DCMAKE_OSX_DEPLOYMENT_TARGET=" + '10.11'
 
-                       cmake_args += " -DOSX_TARGET_MAJOR=" + macSdkMatch.group(1)
-                       cmake_args += " -DOSX_TARGET_MINOR=" + macSdkMatch.group(2)
+                       cmake_args += " -DOSX_TARGET_MAJOR=" + '10'
+                       cmake_args += " -DOSX_TARGET_MINOR=" + '11'
 
                # if not visual studio, use parent dir
                sourceDir = generator.getSourceDir()
@@ -510,7 +510,7 @@ class InternalCommands:
                        shortForm = "macosx" + self.macSdk
                        version = str(major) + "." + str(minor)
 
-                       qmake_cmd_string += " QMAKE_MACOSX_DEPLOYMENT_TARGET=" + self.macDeploy
+                       qmake_cmd_string += " QMAKE_MACOSX_DEPLOYMENT_TARGET=" + '10.11'
 
                        (qMajor, qMinor, qRev) = self.getQmakeVersion()
                        if qMajor <= 4:

After above changes i was able to build and run synergy, there you go package build on 10.12 SDK for OS 10.11.

Autossh

Opensource version of synergy does not support encryption any more.
In order to secure data transmitted over network i use ssh tunnel, they suggest the same on their website.
Best bet is to use autossh, so if you are roaming between location it will auto connect when you are on same network.

Installation

brew install autossh

Setup Tunnel

autossh -f -v -M 24800 -N -R 24800:localhost:22 user@hostname

Client
Set ServerIP = 'localhost'

That should do it.

synergy.1498238102.txt.gz · Last modified: 2020/08/10 02:29 (external edit)