Find the answer to your Linux question:
Results 1 to 2 of 2
Hi! I just downloaded firefox (3.03) and realized I had to install a newer version of gtk (2.10 or higher). Unfortunately this is not in the repositories (running Debian btw) ...
  1. #1
    Just Joined!
    Join Date
    Nov 2008
    Posts
    1

    Linking to library when compiling

    Hi!

    I just downloaded firefox (3.03) and realized I had to install a newer version of gtk (2.10 or higher). Unfortunately this is not in the repositories (running Debian btw) so this far I've compiled & installed glib (2.18.2) in /opt/gtk-2.14/ (heard from somewhere that you could put what you're compiling and dependencies in one place) without any problems.

    So far I've tried to compile gtk with:

    $ export PKG_CONFIG_PATH="/opt/gtk-2.14/lib/pkgconfig"
    $ ./configure --prefix=/opt/gtk-2.14

    but it stops saying "Requested 'glib-2.0 >= 2.17.6' but version of GLib is 2.16.3". GLib 2.16.3 is the current version installed via synaptic. I'm wondering how i could link correctly to glib 2.18.2 that i compiled?

    Thanks in advance, HoChi

  2. #2
    Content Team _madman_'s Avatar
    Join Date
    Jun 2006
    Posts
    53
    If you run "./configure --help" you should get a lot of options to pass to configure. For example:

    LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
    nonstandard directory <lib dir>

    ./configure --prefix=/opt/usr LDFLAGS=-L/opt/path/to/libs/

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...