Installing libavg

We have libavg packages available for several system configurations. This page describes how to install them. If you don't find your configuration here, if you want the newest developer version, or if you'd like to compile libavg yourself for some other reason, have a look at one of the following pages:

It's also a good idea to have a look at the SupportedGraphicsDrivers page to make sure your graphics driver supports the functions libavg needs.

Mac

The Mac installer is a standard dmg that works from Lion upwards. It uses 64 bit Python 2.7. If anything goes wrong, have a look at Known Mac Installation Issues.

The installation is simple:

  • Download the disk image from the Download page
  • Doubleclick it to mount.
  • Doubleclick the pkg file it contains to start the installer.
  • Follow the install steps.

Optional, but highly recommended:

  • Open a command line and type the following to run the tests:
1$ cd /Library/Python/2.7/site-packages/libavg/avg/test/
2$ ./Test.py

You should see lots of test images and wild console output, ending in something like:

Ran 273 tests in 11.231s

OK

If this isn't the case, please tell us.

Linux

Ubuntu

There is a package (sudo apt-get install python-libavg) available for Ubuntu. If this package is outdated, then your best bet is to download the tarball from the download page and do a source install like described on the UbuntuSourceInstall page.

Archlinux

There is an experimental Archlinux package here: https://github.com/fried-ice/libavg-PKBUILD.

The official package (https://github.com/libavg/libavg_PKGBUILD/blob/master/PKGBUILD) is orphaned and won't work with current libavg.

Other

Follow instructions as described on UbuntuSourceInstall and adjust them accordingly. If anything goes wrong, have a look at Known Linux Installation Issues.

Windows

The windows installer was tested under Windows 7 and 8. The prebuilt version is compiled for Python 2.7 (32 bit), so that needs to be installed. These are the steps to install it:

  • Download the Visual C++ runtimes, the CMU 1394 Digital Camera Driver and the libavg installer from the Download page and execute the installers.
  • Add C:\Python27\scripts to the PATH so the avg utilities are accessible.

Optional, but highly recommended:

  • Open a command line and execute the tests
1C:\> cd \Python27\lib\site-packages\libavg\test
2C:\...\> c:\Python27\python Test.py

You should lots of test images and wild console output, ending in something like:

1  Ran 273 tests in 11.231s
2
3  OK

If this isn't the case, please tell us.