Can't get libpng, essential to Inkscape compile.

David Fox dfox94085 at gmail.com
Wed Sep 16 03:16:33 UTC 2009


On Tue, Sep 15, 2009 at 2:38 PM, John Culleton <john at wexfordpress.com> wrote:
> I installed ubuntu (actually xubuntu but that has no bearing) just
> to get the latest development version of Inkscape. I downloaded
> the source tarball, unpacked it and then went through the usual
> apt-get this apt-get that to get the package to configure.

In future, it might be easier (if you want to compile the source for
the version that is in ubuntu, that is) to do an apt-get build-dep on
inkscape, which should install all the dependencies that inkscape
requires to compile. That saves you the extra step of repeated
./configure, install, ./configure, wait for it to blow up, type
sessions that can get frustrating (although that in and of itself is a
learning experience). Of course, once you have the required
dependencies installed, you wan't have to install them again, and they
will come in handy later on (many packages use PNG tools).


>
> The show stopper after all this was  libpng, a pretty common lib.
> Therefore I did
> apt-get install libpng

It's a virtual package. There are version 1.2 and version 3 versions
of that library. Since you are compiling, you probably want to install
a development version of the library (this includes all headers and
symbols).

Here's what aptitude search libpng returns on my system.


v   libpng-dev                       -
p   libpng-sixlegs-java              - Java package to read and
display PNG image
i   libpng12-0                       - PNG library - runtime
v   libpng12-0-dev                   -
i   libpng12-dev                     - PNG library - development


I'd probably go first and install libpng12-dev, but the inkscape may
want a newer version.

Here's what 'aptitude show inkscape' shows (in part) - I cut and
pasted just the Build Depends. Each stanza tells you what library and
what minimum version is required.

Depends: libatk1.0-0 (>= 1.20.0), libc6 (>= 2.4), libcairo2 (>=
1.6.0),
         libcairomm-1.0-1 (>= 1.6.4), libfontconfig1 (>= 2.4.0),
libfreetype6 (>=
         2.2.1), libgc1c2 (>= 1:6.8-1.1), libgcc1 (>= 1:4.1.1),
libgconf2-4 (>=
         2.13.5), libglib2.0-0 (>= 2.16.0), libglibmm-2.4-1c2a (>=
2.19.3),
         libgnomevfs2-0 (>= 1:2.17.90), libgtk2.0-0 (>= 2.16.0),
         libgtkmm-2.4-1c2a (>= 1:2.16.0), libgtkspell0 (>= 2.0.10),
liblcms1 (>=
         1.15-1), libpango1.0-0 (>= 1.14.0), libpangomm-1.4-1 (>=
2.24.0),
         libpng12-0 (>= 1.2.13-4), libpoppler-glib4, libpoppler4,
libpopt0 (>=
         1.14), libsigc++-2.0-0c2a (>= 2.0.2), libssl0.9.8 (>=
0.9.8f-5),
         libstdc++6 (>= 4.2.1), libwpd8c2a, libwpg-0.1-1, libx11-6,
libxft2 (>
         2.1.1), libxml2 (>= 2.6.27), libxslt1.1 (>= 1.1.18), zlib1g
(>= 1:1.1.4)

So it does want libpng12-0 (dev).





-- 
thanks for letting me change the magnetic patterns on your hard disk.




More information about the ubuntu-users mailing list