$ brew install cmake qt
$ git clone https://github.com/symless/synergy.git
$ xcrun --show-sdk-version
10.12
Use this version to configure the compiler in the next step.
$ export PATH=/usr/local/Cellar/qt/5.9.1/bin:$PATH
Note your PATH to qt will be different.
$ cd synergy
$ ./hm.sh configure -g2 --mac-sdk 10.12 --mac-identity test
Ran into this issue: https://github.com/symless/synergy/issues/5666
$ ./hm.sh build
Ran into this issue: https://github.com/symless/synergy/issues/5719
Used a combination of this https://blog.update.sh/archives/category/os and the solution listed https://github.com/symless/synergy/issues/5719 to come with the following diffs
diff --git a/ext/toolchain/commands1.py b/ext/toolchain/commands1.py
index f32ec483..1b3edf8a 100644
--- a/ext/toolchain/commands1.py
+++ b/ext/toolchain/commands1.py
@@ -779,7 +779,8 @@ class InternalCommands:
frameworkRootDir = "/Library/Frameworks"
else:
# TODO: auto-detect, qt can now be installed anywhere.
- frameworkRootDir = "/Developer/Qt5.2.1/5.2.1/clang_64/lib"
+ #frameworkRootDir = "/Developer/Qt5.2.1/5.2.1/clang_64/lib"
+ frameworkRootDir = "/usr/local/Cellar/qt/5.9.1/Frameworks"
target = bundleTargetDir + "/Contents/Frameworks"
@@ -788,7 +789,7 @@ class InternalCommands:
for dir in dirs:
if dir.startswith("Qt"):
shutil.copy(
- frameworkRootDir + "/" + dir + "/Contents/Info.plist",
+ frameworkRootDir + "/" + dir + "/Resources/Info.plist",
target + "/" + dir + "/Resources/")
def symlink(self, source, target):
@@ -823,7 +824,6 @@ class InternalCommands:
if dir.startswith("Qt"):
self.try_chdir(target + "/" + dir +"/Versions")
self.symlink("5", "Current")
- self.move("../Resources", "5")
self.restore_chdir()
self.try_chdir(target + "/" + dir)
Apply diffs.
$ ./hm.sh build
TADA!