[Lazarus] 0.9.26 (FPC 2.2.2) on Slackware and Debian

Mark Morgan Lloyd markMLl.lazarus at telemetry.co.uk
Thu Oct 30 19:27:28 CET 2008


Luca Olivetti wrote:
> En/na Mark Morgan Lloyd ha escrit:
> 
>> Thanks Andrew, I'll work on it. Is there a way of deducing what packages 
>> need to be installed rather than trying anything that looks relevant?
> 
> You can install the apt-file utility, then do a "apt-file file search 
> <missing so file>", it should list all the packages containing the file.

Exquisite :-)

So on a virgin Debian system building Lazarus with gtk2 will complain 
that these .so files (actually symlinks) are missing:

libgdk_pixbuf-2.0.so
libgtk-x11-2.0.so
libgdk-x11-2.0.so
libgobject-2.0.so
libglib-2.0.so
libgthread-2.0.so
libgmodule-2.0.so
libpango-1.0.so
libatk-1.0.so

Using apt-file ties them to these packages:

libgtk2.0-dev:		/usr/lib/libgdk_pixbuf-2.0.so
libgtk2.0-dev:		/usr/lib/libgtk-x11-2.0.so
libgtk2.0-dev:		/usr/lib/libgdk-x11-2.0.so
libglib2.0-dev:		/usr/lib/libgobject-2.0.so
libglib2.0-dev:		/usr/lib/libglib-2.0.so
libglib2.0-dev:		/usr/lib/libgthread-2.0.so
libglib2.0-dev:		/usr/lib/libgmodule-2.0.so
libpango1.0-dev:	/usr/lib/libpango-1.0.so
libatk1.0-dev:		/usr/lib/libatk-1.0.so

For completeness, it also appears to show that installing the 
lsb-build-desktop3 package would create all of the symlinks in the 
/usr/lib/lsb3 directory. I don't know whether this is at all relevant 
but feel it's worth remarking upon.

In actual fact it is sufficient to install libgtk2.0-dev, which pulls in 
the others.

So for gtk 1 and 2 respectively:

gtk1:
-----
libgdk-pixbuf-dev
libgtk1.2-dev

gtk2:
-----
libgtk2.0-dev

This allows both "make all" and "make bigide" to complete.

Needless to say the first couple of times I tried this failed. 
Eventually I realised I was running on the wrong computer :-)

Does anybody think there's anything related I can usefully check while 
I've got nothing else significant on the system?

-- 
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]



More information about the Lazarus mailing list