Re: Problem with GTK+2 for Windows



Wolfgang,

Firstly, this whole thread should probably be held on the Windows GTK
mailing list (rather than the generic gtk-app-devel one) so I've
cross-posted to it - apologies to everyone else.  I would recommend
subscribing to that list if you're doing any Windows GTK work.  Anyway, to
answer your question ...

I use a pre-built version of GTK for Windows that Tor Lillqvist distributes
on http://www.gimp.org/~tml/gimp/win32 in a number of different zipfiles.
As he explains on that site, unzip all the files that you need into a
directory of your choosing (using the same base directory for each zipfile).
For example, c:\my_gtk.

You should then get a directory structure a bit like this (warning - ascii
art):

c:\my_gtk\
        \bin
        \doc
        \etc                - with gtk-2.0 and pango subdirectories
        \include
        \lib                - all the .dll's, .lib's and .a's, plus subdirs
        \man
        \share

The lib and etc directories are the most important ones.  You need to add
the c:\my_gtk\lib directory to your PATH (you might also like to add the bin
directory).

As I understand it, whenever you run a Windows-based GTK application, the
PATH is searched to find the necessary DLLs (and hopefully they are found in
your \lib directory).  Tor's GTK libraries lookup the location that they are
running in and if it ends in \lib they then look for ..\etc for certain
configuration files.  If these files are missing then you're in trouble
(notably, I think that a missing ..\etc\pango\pango.modules will cause your
problem).  There are also subdirectories of the \lib directory but I can't
remember all the details about them - make sure you have them if you still
have problems.

A slightly simpler way of doing all this (but much less generic for multiple
applications etc.) is to stick your application and all the DLLs in the same
directory and run the app from there.  In this instance you don't need to
modify the PATH but you must put the "etc" subdirectory in the same
directory.

As I say, the remainder of this conversation should probably continue on the
windows mailing list where hopefully someone will correct any errors in the
above explanation!.  See http://groups.yahoo.com/group/gimpwin-dev for more
information.

Hope this helps more,
Richard.


----- Original Message -----
From: "Wolfgang Draxinger" <wdraxinger darkstargames de>
To: "Richard Warren" <rew primagraphics co uk>
Sent: Tuesday, June 25, 2002 4:26 PM
Subject: Re: Problem with GTK+2 for Windows


Richard Warren wrote:
Wolfgang,

I think this can happen if you don't have the correct files sitting
relative
to each other in your windows gtk installation directory.  You need the
various libraries in a "lib" directory with additional gtk and pango
files
in a parallel "etc" directory.  This should happen automatically if you
install the zipfiles that Tor supplies his pre-built win32 gtk in
(follow
the links on the www.gtk.org site - they also lead to a win32 mailing
list
for gtk which you might find useful as well).

I think the particular file you need is etc\pango\pango.modules.  If you
don't have it I believe you get very small black dots/squares wherever
you
expect text.

That's exactly what I encounter :-(


Hope that helps,
Richard.

Where exactly have these file to be placed? Windoze has a just crappy
definition of a standard directory structure?
So are they going to
C:\Windows
of
C:\lib
or something else?

--
+------------------------------------------------+
| +----------------+ WOLFGANG DRAXINGER          |
| | ,-.   DARKSTAR | lead programmer             |
| |(   ) +---------+ wdraxinger darkstargames de |
| | `-' / GAMES /                                |
| +----+''''''''     http://www.darkstargames.de |
+------------------------------------------------+






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]