public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Reini Urban <rurban@x-ray.at>
To: cygwin@cygwin.com
Subject: Re: GTK+ externals are unresolved
Date: Tue, 16 Dec 2008 20:20:00 -0000	[thread overview]
Message-ID: <49480D5D.8090002@x-ray.at> (raw)
In-Reply-To: <loom.20081216T190513-304@post.gmane.org>

M.O.D. schrieb:
> John Emmas <johne53 <at> tiscali.co.uk> writes:
> 
>> Perhaps you're missing the file 'libgtk-x11-2.0.la'
> I included a directory listing in my message, showing that this file is there.
> 
> Perhaps you and John Emmas should read the messages before you reply to them.

The order of libs is wrong for $(pkg-config --libs gtk+-2.0)

-lgtk-x11-2.0 -lgdk-x11-2.0 should be at the end.

$ pkg-config --libs gtk+-2.0
-L/usr/X11R6/lib -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 
-lpangoxft-1.0 -lXft -lfreetype -lz -lXrender -lXext -lfontconfig 
-lpangox-1.0 -lX11 -lpango-1.0 -lm -lgobject-2.0 -lgmodule-2.0 
-lglib-2.0 -lintl -liconv

=>

-L/usr/X11R6/lib -latk-1.0 -lgdk_pixbuf-2.0 -lpangoxft-1.0 -lXft 
-lfreetype -lXrender -lXext -lfontconfig -lpangox-1.0 -lpango-1.0 
-lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lgdk-x11-2.0 -lgtk-x11-2.0 
-lX11 -lz -lintl -liconv

With that linker line it works okay.
But I don't know how pkgconfig should be patched to resolve the required 
pkg's recursively into the other direction.

Windows need the libs in the correct order, i.e. backwards.
-- 
Reini Urban
http://phpwiki.org/  http://murbreak.at/

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

  reply	other threads:[~2008-12-16 20:20 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-15 21:20 M.O.D.
2008-12-15 22:32 ` Greg Chicares
2008-12-16  0:15   ` M.O.D.
2008-12-15 22:45 ` John Emmas
2008-12-16  6:01   ` Andreas Eibach
2008-12-16 19:08   ` M.O.D.
2008-12-16 20:20     ` Reini Urban [this message]
2008-12-16 20:38       ` Yaakov (Cygwin/X)
2008-12-17 19:26         ` Reini Urban
2008-12-17 22:37           ` Yaakov (Cygwin/X)
2008-12-18  0:47             ` René Berber
2008-12-18  6:01               ` Yaakov (Cygwin/X)
2008-12-20 15:44                 ` Reini Urban
2008-12-21  0:45                   ` Yaakov (Cygwin/X)
2008-12-21 15:29                     ` M.O.D.
2008-12-21 16:18                       ` Yaakov (Cygwin/X)
2008-12-22 13:29                         ` M.O.D.

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=49480D5D.8090002@x-ray.at \
    --to=rurban@x-ray.at \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).