Debian / Ubuntu or other Linux systems
======================================

See debian/control file for the precise version numbers.

Manual Installation
-------------------

Install the runtime dependencies:

 * libavahi-compat-libdnssd1
 * python3-application
 * python-enum34
 * python3-eventlib
 * python3-googleapi
 * python3-lxml
 * python3-oauth2client
 * python3-pyqt5
 * python3-pyqt5.qtsvg
 * python3-pyqt5.qtwebkit
 * python3-sipsimple
 * python3-twisted
 * python3-zope.interface
 * x11vnc


Download and install python3-sipsimple and its dependencies:

https://github.com/AGProjects/python3-sipsimple/blob/master/docs/Install.linux


After installing the above dependencies, install Blink system wide using:

python3 setup.py build_ext
sudo python3 setup.py install


Creating Debian Packages
------------------------

Install the building dependencies:

  * debhelper
  * python3-all-dev
  * python3-all-dbg
  * python3-qt5
  * python3-support
  * build-essential
  * devscripts
  * libvncserver-dev

Create a clean distribution file:

python3 setup.py sdist

Go to the ./dist directory and untar the file created at the step above.

Go to the newly created directory and type:

debuild

The .deb and related files are built in the upper directory.


Installation on Microsoft Windows
=================================

Step 1. Install dependencies
----------------------------

* Install PyQt5:
  pacman -S mingw-w64-i686-python2-pyqt5

* Install VNC libraries:
  pacman -S mingw-w64-i686-libvncserver

* Install Google API client
  pip install google-api-python-client oauth2client


Step 2. Build and run Blink
---------------------------

if [ -d blink-qt ]; then
        cd blink-qt
        darcs pull -a
else
        darcs get --set-scripts-executable http://devel.ag-projects.com/repositories/blink-qt
        cd blink-qt
fi
./build_inplace
./run