Luca Olivetti wrote:

>> I'm trying to build Lazarus using FPC 2.0.4 on Debian 3.1 ("Sarge"),
>> and I've hit the perennial -lglib etc. problems.
>>
>> I've set up symlinks including
>>
>> libglib.so -> libglib-2.0.so
>> libgdk.so -> libgdk-x11-2.0.so
>> libgtk.so -> libgtk-x11-2.0.so
>
> Don't do that, it's bad practice. Install the "-dev" package instead.

I already have packages installed including

libglib2.0-dev
libgtk2.0-dev

As a particular example, the only libglib.so on the system is the one I set up
last night.

> DISCLAIMER: I don't do development under debian so I cannot be sure that

I'm trying to :-) although it's not the distro I've got most experience with.
The one other major job the system in question is doing is running the Qemu
emulator (so that I can run the software I'm hoping to port to Lazarus) which
I compiled from scratch, so I'm fairly happy that as Debian development
systems go it's not particularly broken.


<Somewhat later...>

Google points me at a message posted by sasa last August which gives these packages as prerequisites under Debian 3.1:

libglib1.2-dev Development files for GLib library
libgtk1.2-dev Development files for the GIMP Toolkit
libgdk-pixbuf-dev The GdkPixBuf library - development files
libgdk-pixbuf2 The GdkPixBuf image library, gtk+ 1.2 version

The problem I was having appears to be that I'd installed the SDL development stuff to get Qemu running which bring in the glib v2 etc. libraries, however what's needed is glib v1 etc. and it is these that set up symlinks such as libglib.so.

Making sure that those packages were installed allowed the compilation to succeed, Lazarus still needed to be told where the FPC sources were before it was much use and also where gdb is.

So far I've made no serious attempt to use anything other than GTK v1 widgets. QT's out since it will be some while before Debian bundles v4.

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

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

_________________________________________________________________
    To unsubscribe: mail [EMAIL PROTECTED] with
               "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to