synergy
This is an old revision of the document!
Synergy
Project : Github
Due to infrastructure requirement, my mac now has 10.12 SDK and 10.11 MacOS.<br> 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
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.<br> 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.
synergy.1498237170.txt.gz · Last modified: 2020/08/10 02:29 (external edit)
