Difference between revisions of "CompilingUbuntu"
Ivan.cukic (talk | contribs) m |
(describe how to build libgc) |
||
Line 1: | Line 1: | ||
== Dapper == | |||
If you're going to build Inkscape, you'll need to have a full complement of build requirements. This is very easy to do in Ubuntu Dapper: | |||
<pre> | <pre> | ||
sudo apt-get build-dep inkscape | sudo apt-get build-dep inkscape | ||
sudo apt-get install liblcms-dev libboost-graph-dev build-essential | sudo apt-get install liblcms-dev libboost-graph-dev build-essential | ||
echo "deb-src http://ftp.us.debian.org/debian/ unstable main" >> /etc/apt/sources.list | |||
sudo apt-get update | |||
apt-get source libgc-dev | |||
cd libgc* | |||
fakeroot dpkg-buildpackage -uc -us | |||
sudo dpkg -i ../ligbc*.deb | |||
</pre> | |||
If you want version 0.44 from Debian Unstable, you can compile it in the same way as libgc above: | |||
<pre> | |||
apt-get source inkscape | |||
cd inkscape* | |||
fakeroot dpkg-buildpackage -uc -us | |||
sudo dpkg -i ../inkscape*.deb | |||
</pre> | |||
To build the SVN snapshots: | |||
<pre> | |||
# Untar and navigate to the inkscape source folder | # Untar and navigate to the inkscape source folder | ||
./configure | ./configure | ||
Line 36: | Line 57: | ||
apt-get install cvs build-essential intltool libtool libgtkmm-2.4-dev libglib2.0-dev libpng12-dev libxslt1-dev libsigc++-2.0-dev libpopt-dev libgc-dev | apt-get install cvs build-essential intltool libtool libgtkmm-2.4-dev libglib2.0-dev libpng12-dev libxslt1-dev libsigc++-2.0-dev libpopt-dev libgc-dev | ||
Inkscape requires libgc-6. | Inkscape requires libgc-6.7. | ||
Breezy | Breezy uses 6.4, Dapper uses 6.6. | ||
Hoary uses version 6.3, which is provided in the Repos. (Is there somewhere to get a .deb for 6.4?) | Hoary uses version 6.3, which is provided in the Repos. (Is there somewhere to get a .deb for 6.4?) | ||
Line 48: | Line 69: | ||
sudo make install | sudo make install | ||
== libgc 6.5 debs for | == Old libgc 6.5 debs for Breezy == | ||
http://inkscape.modevia.com/ap/libgc-dev_6.5-1_i386.deb | http://inkscape.modevia.com/ap/libgc-dev_6.5-1_i386.deb | ||
http://inkscape.modevia.com/ap/libgc1_6.5-1_i386.deb | http://inkscape.modevia.com/ap/libgc1_6.5-1_i386.deb | ||
[[Category:Developer Documentation]] | [[Category:Developer Documentation]] |
Revision as of 19:32, 30 July 2006
Dapper
If you're going to build Inkscape, you'll need to have a full complement of build requirements. This is very easy to do in Ubuntu Dapper:
sudo apt-get build-dep inkscape sudo apt-get install liblcms-dev libboost-graph-dev build-essential echo "deb-src http://ftp.us.debian.org/debian/ unstable main" >> /etc/apt/sources.list sudo apt-get update apt-get source libgc-dev cd libgc* fakeroot dpkg-buildpackage -uc -us sudo dpkg -i ../ligbc*.deb
If you want version 0.44 from Debian Unstable, you can compile it in the same way as libgc above:
apt-get source inkscape cd inkscape* fakeroot dpkg-buildpackage -uc -us sudo dpkg -i ../inkscape*.deb
To build the SVN snapshots:
# Untar and navigate to the inkscape source folder ./configure make sudo make install
Instead of doing "make install", on Debian-based distributions (such as Ubuntu) it is better to do
sudo checkinstall
since checkinstall first builds the .deb package and then installs it, thus making the package system aware of the newly installed inkscape. If you get the "command not found" message, do
sudo apt-get install checkinstall
Notes:
build-dep gets all the dependencies for the version of Inkscape that comes with Ubuntu. We're not building the same version, but most of the dependencies are the same.
libcms-dev was required for ./configure to work, and libboost-graph-dev was needed for "network connector layout functionality"
This was done on a recently installed Dapper (Ubuntu 6.06) system. I built Inkscape version 0.44.
The following packages are need to compile cvs inkscape under a default Ubuntu Hoary/Breezy/Dapper system:
apt-get install cvs build-essential intltool libtool libgtkmm-2.4-dev libglib2.0-dev libpng12-dev libxslt1-dev libsigc++-2.0-dev libpopt-dev libgc-dev
Inkscape requires libgc-6.7.
Breezy uses 6.4, Dapper uses 6.6.
Hoary uses version 6.3, which is provided in the Repos. (Is there somewhere to get a .deb for 6.4?)
To overwrite libgc-6.3 with libgc-6.4:
Download gc6.4 ./configure --prefix=/usr make sudo make install
Old libgc 6.5 debs for Breezy
http://inkscape.modevia.com/ap/libgc-dev_6.5-1_i386.deb http://inkscape.modevia.com/ap/libgc1_6.5-1_i386.deb