Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Compile: Synergy on mac

I wanna use Synergy on my MAC and Windows. download synergy.zip file from https://github.com/synergy/synergy

and then I try to compile to Xcode Project

But I get the following error message

bash-3.2# ./hm.sh conf -g2
Mapping command: conf -> configure
Error: Arg missing: --mac-identity

I don't know why I cannot compile Synergy.

Questions.

  1. What is --mac-identity?
  2. How to typing command to terminal on my MAC?
like image 836
byzz Avatar asked Nov 14 '14 05:11

byzz


1 Answers

I just ran into that problem, and the solutions here helped me on my quest. I'm still running Yosemite but El Capitan is out.

The consequence of that is that SDK has a different path, since it now is able to compile for El Capitan.

sh ./hm.sh config -g2 --mac-sdk 10.11 --mac-identity Yosemite # My answer

Anytime a new OS is out, it would be logical to run

xcrun --show-sdk-path

to update the argument.

As for the answer to "what is mac-identity", it's a parameter to the compile script located at ext/toolchain/commands1.py, which uses it to codesign:

    err = os.system('codesign --deep -fs "' + self.macIdentity + '" Synergy.app') 

somewhere along line 830.

BoldAsLove is correct that these lines must be commented out (or deleted)

#               if (NOT (OSX_TARGET_MAJOR EQUAL 10))
#                       message(FATAL_ERROR "Mac OS X target must be 10.x")
#               endif ()

Also, qmake was stored in

/opt/local/libexec/qt5-mac/bin/qmake

but this is probably a macports quirk.

like image 58
Kheldar Avatar answered Oct 24 '22 08:10

Kheldar