Build on Ubuntu
From VipsWiki
(Difference between revisions)
| Revision as of 23:33, 22 July 2011 Phil (Talk | contribs) ← Previous diff |
Revision as of 16:26, 16 May 2012 Phil (Talk | contribs) (added introspection tools to apt-get line) Next diff → |
||
| Line 3: | Line 3: | ||
| sudo apt-get install build-essential libtiff4-dev libxml2-dev libfftw3-dev \ | sudo apt-get install build-essential libtiff4-dev libxml2-dev libfftw3-dev \ | ||
| gettext libgtk2.0-dev python-dev liblcms1-dev liboil-dev \ | gettext libgtk2.0-dev python-dev liblcms1-dev liboil-dev \ | ||
| - | libmagickwand-dev libopenexr-dev libcfitsio3-dev | + | libmagickwand-dev libopenexr-dev libcfitsio3-dev gobject-introspection |
| and for a full build from the SVN sources: | and for a full build from the SVN sources: | ||
Revision as of 16:26, 16 May 2012
Although you can just do apt-get install vips on Ubuntu, sometimes you need a development version. A fresh install of Ubuntu does not have a lot of development packages installed. A useful/safe thing to do is:
sudo apt-get install build-essential libtiff4-dev libxml2-dev libfftw3-dev \ gettext libgtk2.0-dev python-dev liblcms1-dev liboil-dev \ libmagickwand-dev libopenexr-dev libcfitsio3-dev gobject-introspection
and for a full build from the SVN sources:
sudo apt-get install automake libtool swig gtk-doc-tools libglib2.0-dev
now you can build the vips:
(if its the svn first do ./bootstrap.sh) ./configure make sudo make install
Now you need to set up your environment or the things in /usr/local won't be found
This can be added to the end of your .bashrc in your home area:
export VIPSHOME=/usr/local export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$VIPSHOME/lib export PATH=$PATH:$VIPSHOME/bin export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$VIPSHOME/lib/pkgconfig export MANPATH=$MANPATH:$VIPSHOME/man export PYTHONPATH=$VIPSHOME/lib/python2.7/site-packages
check the version of python you're using - the above 2.7 is for Ubuntu 11.x
To build nip2 from a fresh install of Ubuntu typically need:
sudo apt-get install gtk+-dev
Then download and install using
./configure make sudo make install
tested on ubuntu 10.04/10 and 11.04
