Skip to content

Installation

Géry Casiez edited this page Apr 14, 2020 · 6 revisions

Installation tutorial of libpointing

Mac OS X

You can install libpointing easily using Homebrew or MacPorts.

Simply run the following in the terminal:

brew install libpointing

Or with MacPorts (not up to date):

sudo port install libpointing

Using libpointing

To compile a project using libpointing simply link the library and the include directory:

-lpointing -L/usr/local/lib

In addition, you can find the latest release on Github releases. Download the latest version and run make && make install.

Windows

Install Chocolatey and then run choco install libpointing

All files will be installed in C:/Program Files/libpointing

Please find compiled libs here. To use libpointing you will need to link hid.lib (installed with Windows Driver Kit) and setupapi.lib.

Note, if you are using QtCreator, deselect Shadow build to avoid linking problems.

Linux (Ubuntu)

  • Add the line deb http://inria.github.io/libpointing/distrib debian/ to the /etc/apt/sources.list
  • Run apt-get update
  • Run apt-get install libpointing
  • Once libpointing is installed, you can directly use it by adding -lpointing flag.

In addition, you can download and install the latest release on Github releases.

Building from sources

This repo also includes example applications, bindings, etc and transfer functions built with Echomouse.

On Mac OS or Linux

Qmake is used as a building tool. Run qmake and make in the root directory to compile all.

On Windows

Compile all.pro or open pointing/pointing.vcxproj to build without qmake.

Note, if you are using QtCreator, deselect Shadow build to avoid linking problems.

Install libpointing with npm

Visit this page.