Building The Looking Glass Client from Source

This guide will step you through building the looking glass client on Debian and Ubuntu based systems from source, before you attempt to do this you should have a basic understanding how to use the shell.

Prerequisites

Before building you will need to install the following packages on your system

  • git
  • libsdl2-dev
  • libsdl2-ttf-dev
  • libssl-dev
  • libspice-protocol-dev
  • libfontconfig1-dev
  • libx11-dev
  • fonts-freefont-ttf

You can do this by running the following command:

sudo apt-get install git libsdl2-dev libsdl2-ttf-dev libssl-dev libspice-protocol-dev libfontconfig1-dev libx11-dev fonts-freefont-ttf

Cloning the Repository

To obtain the source simply clone the repository at github using the following command (or you may go to github and download the zip archive):

git clone https://github.com/gnif/LookingGlass.git .

Building the Client

Simply change directory into the client and run make.

cd LookingGlass/client
make

You should now have the file 'looking-glass-client' inside the bin directory.

Next, Configuring libvirt for Looking Glass