This is the mail archive of the cygwin-apps@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gtk2-win32 vs. gtk2-x11


Hello Corinna,

Date: Mon, 9 Aug 2004 11:12:13 +0200, Corinna writes:
> On Aug  8 01:13, Gerrit P. Haase wrote:
>> Hello,
>> 
>> I'm not sure how to release gtk+ with x11 and win32 together.
>> 
>> There are lot of duplicated filenames, only the two main DLL's have a
>> different name.  These two version cannot be installed together
>> without using different prefixes.

> Can you explain a bit more?  Are they using different header files
> with the same name instead of using #define's a lot, etc?

There are the executables:
  /usr/bin/gdk-pixbuf-query-loaders.exe
  /usr/bin/gtk-query-immodules-2.0.exe
  /usr/bin/gdk-pixbuf-csource.exe
  /usr/bin/gtk-demo.exe
in the x11 version they are linked against
  /usr/lib/libgdk-x11-2.0.dll.a
  /usr/lib/libgtk-x11-2.0.dll.a
the win32 ones are linked against
  /usr/lib/libgdk-win32-2.0.dll.a
  /usr/lib/libgtk-win32-2.0.dll.a

The headers are the same for both packages, probably with some
#ifdef's.  The GTK+ immodules have the same name, but are linked
against the main library (x11 or win32 version).  All the locale
support files are identical, some config files are identical.
The gdk-pixbuf package is included, but it is independant and all the
header and libraries are the same, also the loaders.

>> I have no idea how to resolve this now.
>> Move gtk2-x11 under prefix /usr/X11R6?  Use an /opt prefix?

> How did you solve it for the other packages you already uploaded?

There are no other packages with two versions from the same source.
Pango includes both, win32 and x11 libs in one package and the several
main libraries are sharing the remaining files, this would be the real
solution for GTK+, to build both at the same time and use unique names
for all the unique runtime DLL's, modules and import libraries and to
share the other files (like config files, headers, locale files, ...)


Gerrit
-- 
=^..^=



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]