cd /home/pi/downloads sudo wget http://synergy.googlecode.com/files/synergy-1.4.15-Source.tar.gz
sudo tar -xzf synergy-1.4.15-Source.tar.gz
sudo apt-get update && sudo apt-get upgrade -y sudo apt-get install gcc cmake libx11-dev libxtst-dev
cd synergy-1.4.15-Source
sudo nano CMakeLists.txt
set(CMAKE_INCLUDE_PATH "${CMAKE_INCLUDE_PATH}:/usr/local/include")
set(CMAKE_INCLUDE_PATH "${CMAKE_INCLUDE_PATH}:/usr/include")
It will ask you to save before closing, you must save it
sudo unzip ./tools/cryptopp562.zip -d ./tools/cryptopp562
sudo nano ./tools/CMakeLists.txt
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=native")
and edit it to the following on a Pi 1
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=armv6zk")
for the Pi 2, do this instead:
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=armv7-a")
It will ask you to save before closing, you must save it
Now we can use cmake to configure our makefile build
sudo cmake .
-- Configuring done -- Generating done -- Build files have been written to: /home/pi/download/synergy-1.4.15-Source
Now you can use make to build the source code according to the makefile
sudo make
When it finishes with no errors, a new directory at synergy-1.4.15-Source/bin should exist, and inside should be several executables files. Install these by using the copy command to copy the files into the /usr/bin directory
sudo cp -a ./bin/. /usr/bin