Re: Need help : Installing gtk+ on Windows 2000



On Thu, 04 May 2006 23:43:37 -0600, Michael Torrie wrote:

> If you compile your program against the headers and development
> libraries as provided by Tor (the second link) then if the end user
> installs this runtime, he will be able to run your application. Just be
> aware, though, that your app must have the gtk runtime's bin directory
> in the execution path.  Most people do this by creating a windows
> shortcut to the real exe that starts the real exe in the working
> directory of C:\Program Files\Common files\GTK\2.0\bin (or whatever the
> path is you installed the runtime to).

Actually, a much better way to put GTK+- in application's PATH is to create
a Registry entry at
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\App
Paths\<yourapp.exe> where the (Default) points to the full path+-exe name
and Path contains directories that should be added to PATH.

> Alternatively you can get the installer package I just mentioned,
> install it, and then copy the entire GTK runtime to be relative to your
> exe and build a big bundle out of the entire thing.  It is preferred, I
> think, to look for GTK in the standard place (de facto standard), 
> C:\Program Files\Common files\GTK\2.0\bin.  This is what I personally
> do, as does the Gimp, and GAIM.  This way all gtk apps can share a
> common runtime.

Don't expect GTK+- to be in C:\Program Files\Common Files\GTK\2.0 - my
installer just suggests this as the default directory (to be precise, it
suggests %COMMONFILES%\GTK\2.0 by default), but the user is free to choose
any directory. The de-facto standard is that GTK+- install path is stored in
Registry, either in HKEY_LOCAL_MACHINE\Software\GTK\2.0 or
HKEY_CURRENT_USER\Software\GTK\2.0 (only if GTK+- was installed by currently
logged-on user, and he doesn't have administrator privileges). That key
contains at least Path and Version entries, which tell you where to look
for GTK+-.

-- 
< Jernej Simon+AQ0-i+AQ0- >< http://deepthought.ena.si/ >
< Contact address: >< jernej simoncic at isg si >




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