Re: Installing GTK libraries

Jernej Simončič <[email protected]>
Newsgroups gmane.comp.video.gimp.windows.devel
Organization E-mailaholics International
Message-ID <[email protected]>
Hello Bill,
 
24. oktober 2002, 18:43:46, you wrote:

> I see that the Gimp has put the gtk 1.3 stuff in a directory called c:
> \gtk1.3 and the Gimp execs are eslewhere.  I also saw a registry key setup
> that points to the directory.  Does this work for gtk+ 2.0?  If so, how do
> I setup the right keys?  Also, will this work on all versions of windows?
> How does the Gimp find the gtk libraries?

Here's how I did it for The Gimp:

- GTK+ 1.3 is by default installed in Common Files\GTK\1.3\ (however,
  it can be changed to just about anything by the user). This path is
  stored in Registry, in either HKEY_CURRENT_USER or
  HKEY_LOCAL_MACHINE (depends on user's rights), in \Software\GTK\1.3\
  in the key Path. There's also a key named Version, which contains
  the GTK+ 1.3 version in format 1.3.0-20020912

- The Gimp installer then reads that key from the Registry and set's
  Gimp's working folder (in the shortcut) to that folder (also, some
  of The Gimp's DLLs are placed there). If the user has administrator
  rights (or if he's using Win9x/ME), a registry key is also created
  in HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\AppPaths\Gimp.exe\Path
  which sets the initial path where gimp.exe searches the libraries.

Both scripts can be downloaded from
<http://www2.arnes.si/~sopjsimo/gimp/> (look for installers, near the
bottom of page).
  
I also made a GTK+ 2.0 installer some time ago, that works the same
way as GTK+ 1.3. You'll find the installation script if you search the
archives a little.

-- 
Jernej Simoncic, [email protected]
http://www2.arnes.si/~sopjsimo/
ICQ: 26266467

If there are twelve clowns in a ring, you can jump in the middle and
start reciting Shakespeare, but to the audience, you'll just be the
thirteenth clown.
       -- Walinsky's First Law of Political Campaigns
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.