Re: Static linking in GTK Windows




There is another possibility for gtk.  If you put all the .dll files
in the same folder as the exe, and optionally put in some subfolders
for the gtkrc and theme dlls, then you can run it without
installing.  Just remove the folder and it's gone.

This is the approach I take.  The first time I tried to run my GTK+
Win32 app on a user's machine I spent a few hours tracking down all of
the needed .DLL and .rc files.

Perhaps this list of needed files will save somebody those few hours.

So, if your installer puts YourApp.exe into the directory
"C:\Program Files\YourApp\YourApp.exe", here is a list of the other
files that you will need to install.  This list is for GTK+ version
2.2.2.

C:\Program Files\YourApp\bin
C:\Program Files\YourApp\bin\gspawn-win32-helper.exe
C:\Program Files\YourApp\etc
C:\Program Files\YourApp\etc\gtk-2.0
C:\Program Files\YourApp\etc\gtk-2.0\gdk-pixbuf.loaders
C:\Program Files\YourApp\etc\gtk-2.0\gtk.immodules
C:\Program Files\YourApp\etc\gtk-2.0\gtkrc
C:\Program Files\YourApp\etc\pango
C:\Program Files\YourApp\etc\pango\pango.aliases
C:\Program Files\YourApp\etc\pango\pango.modules
C:\Program Files\YourApp\iconv.dll
C:\Program Files\YourApp\intl.dll
C:\Program Files\YourApp\lib
C:\Program Files\YourApp\lib\gtk-2.0
C:\Program Files\YourApp\lib\gtk-2.0\2.2.0
C:\Program Files\YourApp\lib\gtk-2.0\2.2.0\immodules
C:\Program Files\YourApp\lib\gtk-2.0\2.2.0\immodules\im-am-et.dll
C:\Program Files\YourApp\lib\gtk-2.0\2.2.0\immodules\im-cyrillic-translit.dll
C:\Program Files\YourApp\lib\gtk-2.0\2.2.0\immodules\im-hangul.dll
C:\Program Files\YourApp\lib\gtk-2.0\2.2.0\immodules\im-inuktitut.dll
C:\Program Files\YourApp\lib\gtk-2.0\2.2.0\immodules\im-ipa.dll
C:\Program Files\YourApp\lib\gtk-2.0\2.2.0\immodules\im-thai-broken.dll
C:\Program Files\YourApp\lib\gtk-2.0\2.2.0\immodules\im-ti-er.dll
C:\Program Files\YourApp\lib\gtk-2.0\2.2.0\immodules\im-ti-et.dll
C:\Program Files\YourApp\lib\gtk-2.0\2.2.0\immodules\im-viqr.dll
C:\Program Files\YourApp\lib\gtk-2.0\2.2.0\loaders
C:\Program Files\YourApp\lib\gtk-2.0\2.2.0\loaders\libpixbufloader-ani.dll
C:\Program Files\YourApp\lib\gtk-2.0\2.2.0\loaders\libpixbufloader-bmp.dll
C:\Program Files\YourApp\lib\gtk-2.0\2.2.0\loaders\libpixbufloader-gif.dll
C:\Program Files\YourApp\lib\gtk-2.0\2.2.0\loaders\libpixbufloader-ico.dll
C:\Program Files\YourApp\lib\gtk-2.0\2.2.0\loaders\libpixbufloader-jpeg.dll
C:\Program Files\YourApp\lib\gtk-2.0\2.2.0\loaders\libpixbufloader-png.dll
C:\Program Files\YourApp\lib\gtk-2.0\2.2.0\loaders\libpixbufloader-pnm.dll
C:\Program Files\YourApp\lib\gtk-2.0\2.2.0\loaders\libpixbufloader-ras.dll
C:\Program Files\YourApp\lib\gtk-2.0\2.2.0\loaders\libpixbufloader-tga.dll
C:\Program Files\YourApp\lib\gtk-2.0\2.2.0\loaders\libpixbufloader-tiff.dll
C:\Program Files\YourApp\lib\gtk-2.0\2.2.0\loaders\libpixbufloader-wbmp.dll
C:\Program Files\YourApp\lib\gtk-2.0\2.2.0\loaders\libpixbufloader-xbm.dll
C:\Program Files\YourApp\lib\gtk-2.0\2.2.0\loaders\libpixbufloader-xpm.dll
C:\Program Files\YourApp\lib\locale
C:\Program Files\YourApp\lib\locale\am
C:\Program Files\YourApp\lib\locale\am\LC_MESSAGES
C:\Program Files\YourApp\lib\locale\am\LC_MESSAGES\gtk20.mo
C:\Program Files\YourApp\lib\locale\ar
C:\Program Files\YourApp\lib\locale\ar\LC_MESSAGES
C:\Program Files\YourApp\lib\locale\ar\LC_MESSAGES\gtk20.mo
C:\Program Files\YourApp\lib\locale\az
C:\Program Files\YourApp\lib\locale\az\LC_MESSAGES
C:\Program Files\YourApp\lib\locale\az\LC_MESSAGES\gtk20.mo
C:\Program Files\YourApp\lib\locale\be
C:\Program Files\YourApp\lib\locale\be\LC_MESSAGES
C:\Program Files\YourApp\lib\locale\be\LC_MESSAGES\gtk20.mo
C:\Program Files\YourApp\lib\locale\bg
C:\Program Files\YourApp\lib\locale\bg\LC_MESSAGES
C:\Program Files\YourApp\lib\locale\bg\LC_MESSAGES\gtk20.mo
C:\Program Files\YourApp\lib\locale\ca
C:\Program Files\YourApp\lib\locale\ca\LC_MESSAGES
C:\Program Files\YourApp\lib\locale\ca\LC_MESSAGES\gtk20.mo
C:\Program Files\YourApp\lib\locale\cs
C:\Program Files\YourApp\lib\locale\cs\LC_MESSAGES
C:\Program Files\YourApp\lib\locale\cs\LC_MESSAGES\gtk20.mo
C:\Program Files\YourApp\lib\locale\cy
C:\Program Files\YourApp\lib\locale\cy\LC_MESSAGES
C:\Program Files\YourApp\lib\locale\cy\LC_MESSAGES\gtk20.mo
C:\Program Files\YourApp\lib\locale\da
C:\Program Files\YourApp\lib\locale\da\LC_MESSAGES
C:\Program Files\YourApp\lib\locale\da\LC_MESSAGES\gtk20.mo
C:\Program Files\YourApp\lib\locale\de
C:\Program Files\YourApp\lib\locale\de\LC_MESSAGES
C:\Program Files\YourApp\lib\locale\de\LC_MESSAGES\gtk20.mo
C:\Program Files\YourApp\lib\locale\el
C:\Program Files\YourApp\lib\locale\el\LC_MESSAGES
C:\Program Files\YourApp\lib\locale\el\LC_MESSAGES\gtk20.mo
C:\Program Files\YourApp\lib\locale\en IPA
C:\Program Files\YourApp\lib\locale\en IPA\LC_MESSAGES
C:\Program Files\YourApp\lib\locale\en IPA\LC_MESSAGES\gtk20 mo
C:\Program Files\YourApp\lib\locale\en_GB
C:\Program Files\YourApp\lib\locale\en_GB\LC_MESSAGES
C:\Program Files\YourApp\lib\locale\en_GB\LC_MESSAGES\gtk20.mo
C:\Program Files\YourApp\lib\locale\es
C:\Program Files\YourApp\lib\locale\es\LC_MESSAGES
C:\Program Files\YourApp\lib\locale\es\LC_MESSAGES\gtk20.mo
C:\Program Files\YourApp\lib\locale\et
C:\Program Files\YourApp\lib\locale\et\LC_MESSAGES
C:\Program Files\YourApp\lib\locale\et\LC_MESSAGES\gtk20.mo
C:\Program Files\YourApp\lib\locale\eu
C:\Program Files\YourApp\lib\locale\eu\LC_MESSAGES
C:\Program Files\YourApp\lib\locale\eu\LC_MESSAGES\gtk20.mo
C:\Program Files\YourApp\lib\locale\fa
C:\Program Files\YourApp\lib\locale\fa\LC_MESSAGES
C:\Program Files\YourApp\lib\locale\fa\LC_MESSAGES\gtk20.mo
C:\Program Files\YourApp\lib\locale\fi
C:\Program Files\YourApp\lib\locale\fi\LC_MESSAGES
C:\Program Files\YourApp\lib\locale\fi\LC_MESSAGES\gtk20.mo
C:\Program Files\YourApp\lib\locale\fr
C:\Program Files\YourApp\lib\locale\fr\LC_MESSAGES
C:\Program Files\YourApp\lib\locale\fr\LC_MESSAGES\gtk20.mo
C:\Program Files\YourApp\lib\locale\ga
C:\Program Files\YourApp\lib\locale\ga\LC_MESSAGES
C:\Program Files\YourApp\lib\locale\ga\LC_MESSAGES\gtk20.mo
C:\Program Files\YourApp\lib\locale\gl
C:\Program Files\YourApp\lib\locale\gl\LC_MESSAGES
C:\Program Files\YourApp\lib\locale\gl\LC_MESSAGES\gtk20.mo
C:\Program Files\YourApp\lib\locale\he
C:\Program Files\YourApp\lib\locale\he\LC_MESSAGES
C:\Program Files\YourApp\lib\locale\he\LC_MESSAGES\gtk20.mo
C:\Program Files\YourApp\lib\locale\hi
C:\Program Files\YourApp\lib\locale\hi\LC_MESSAGES
C:\Program Files\YourApp\lib\locale\hi\LC_MESSAGES\gtk20.mo
C:\Program Files\YourApp\lib\locale\hr
C:\Program Files\YourApp\lib\locale\hr\LC_MESSAGES
C:\Program Files\YourApp\lib\locale\hr\LC_MESSAGES\gtk20.mo
C:\Program Files\YourApp\lib\locale\hu
C:\Program Files\YourApp\lib\locale\hu\LC_MESSAGES
C:\Program Files\YourApp\lib\locale\hu\LC_MESSAGES\gtk20.mo
C:\Program Files\YourApp\lib\locale\ia
C:\Program Files\YourApp\lib\locale\ia\LC_MESSAGES
C:\Program Files\YourApp\lib\locale\ia\LC_MESSAGES\gtk20.mo
C:\Program Files\YourApp\lib\locale\id
C:\Program Files\YourApp\lib\locale\id\LC_MESSAGES
C:\Program Files\YourApp\lib\locale\id\LC_MESSAGES\gtk20.mo
C:\Program Files\YourApp\lib\locale\it
C:\Program Files\YourApp\lib\locale\it\LC_MESSAGES
C:\Program Files\YourApp\lib\locale\it\LC_MESSAGES\gtk20.mo
C:\Program Files\YourApp\lib\locale\ja
C:\Program Files\YourApp\lib\locale\ja\LC_MESSAGES
C:\Program Files\YourApp\lib\locale\ja\LC_MESSAGES\gtk20.mo
C:\Program Files\YourApp\lib\locale\ko
C:\Program Files\YourApp\lib\locale\ko\LC_MESSAGES
C:\Program Files\YourApp\lib\locale\ko\LC_MESSAGES\gtk20.mo
C:\Program Files\YourApp\lib\locale\lt
C:\Program Files\YourApp\lib\locale\lt\LC_MESSAGES
C:\Program Files\YourApp\lib\locale\lt\LC_MESSAGES\gtk20.mo
C:\Program Files\YourApp\lib\locale\lv
C:\Program Files\YourApp\lib\locale\lv\LC_MESSAGES
C:\Program Files\YourApp\lib\locale\lv\LC_MESSAGES\gtk20.mo
C:\Program Files\YourApp\lib\locale\mk
C:\Program Files\YourApp\lib\locale\mk\LC_MESSAGES
C:\Program Files\YourApp\lib\locale\mk\LC_MESSAGES\gtk20.mo
C:\Program Files\YourApp\lib\locale\ml
C:\Program Files\YourApp\lib\locale\ml\LC_MESSAGES
C:\Program Files\YourApp\lib\locale\ml\LC_MESSAGES\gtk20.mo
C:\Program Files\YourApp\lib\locale\mn
C:\Program Files\YourApp\lib\locale\mn\LC_MESSAGES
C:\Program Files\YourApp\lib\locale\mn\LC_MESSAGES\gtk20.mo
C:\Program Files\YourApp\lib\locale\ms
C:\Program Files\YourApp\lib\locale\ms\LC_MESSAGES
C:\Program Files\YourApp\lib\locale\ms\LC_MESSAGES\gtk20.mo
C:\Program Files\YourApp\lib\locale\nl
C:\Program Files\YourApp\lib\locale\nl\LC_MESSAGES
C:\Program Files\YourApp\lib\locale\nl\LC_MESSAGES\gtk20.mo
C:\Program Files\YourApp\lib\locale\nn
C:\Program Files\YourApp\lib\locale\nn\LC_MESSAGES
C:\Program Files\YourApp\lib\locale\nn\LC_MESSAGES\gtk20.mo
C:\Program Files\YourApp\lib\locale\no
C:\Program Files\YourApp\lib\locale\no\LC_MESSAGES
C:\Program Files\YourApp\lib\locale\no\LC_MESSAGES\gtk20.mo
C:\Program Files\YourApp\lib\locale\pl
C:\Program Files\YourApp\lib\locale\pl\LC_MESSAGES
C:\Program Files\YourApp\lib\locale\pl\LC_MESSAGES\gtk20.mo
C:\Program Files\YourApp\lib\locale\pt
C:\Program Files\YourApp\lib\locale\pt\LC_MESSAGES
C:\Program Files\YourApp\lib\locale\pt\LC_MESSAGES\gtk20.mo
C:\Program Files\YourApp\lib\locale\pt_BR
C:\Program Files\YourApp\lib\locale\pt_BR\LC_MESSAGES
C:\Program Files\YourApp\lib\locale\pt_BR\LC_MESSAGES\gtk20.mo
C:\Program Files\YourApp\lib\locale\ro
C:\Program Files\YourApp\lib\locale\ro\LC_MESSAGES
C:\Program Files\YourApp\lib\locale\ro\LC_MESSAGES\gtk20.mo
C:\Program Files\YourApp\lib\locale\ru
C:\Program Files\YourApp\lib\locale\ru\LC_MESSAGES
C:\Program Files\YourApp\lib\locale\ru\LC_MESSAGES\gtk20.mo
C:\Program Files\YourApp\lib\locale\sk
C:\Program Files\YourApp\lib\locale\sk\LC_MESSAGES
C:\Program Files\YourApp\lib\locale\sk\LC_MESSAGES\gtk20.mo
C:\Program Files\YourApp\lib\locale\sl
C:\Program Files\YourApp\lib\locale\sl\LC_MESSAGES
C:\Program Files\YourApp\lib\locale\sl\LC_MESSAGES\gtk20.mo
C:\Program Files\YourApp\lib\locale\sp
C:\Program Files\YourApp\lib\locale\sp\LC_MESSAGES
C:\Program Files\YourApp\lib\locale\sp\LC_MESSAGES\gtk20.mo
C:\Program Files\YourApp\lib\locale\sr
C:\Program Files\YourApp\lib\locale\sr Latn
C:\Program Files\YourApp\lib\locale\sr Latn\LC_MESSAGES
C:\Program Files\YourApp\lib\locale\sr Latn\LC_MESSAGES\gtk20 mo
C:\Program Files\YourApp\lib\locale\sr\LC_MESSAGES
C:\Program Files\YourApp\lib\locale\sr\LC_MESSAGES\gtk20.mo
C:\Program Files\YourApp\lib\locale\sv
C:\Program Files\YourApp\lib\locale\sv\LC_MESSAGES
C:\Program Files\YourApp\lib\locale\sv\LC_MESSAGES\gtk20.mo
C:\Program Files\YourApp\lib\locale\ta
C:\Program Files\YourApp\lib\locale\ta\LC_MESSAGES
C:\Program Files\YourApp\lib\locale\ta\LC_MESSAGES\gtk20.mo
C:\Program Files\YourApp\lib\locale\tr
C:\Program Files\YourApp\lib\locale\tr\LC_MESSAGES
C:\Program Files\YourApp\lib\locale\tr\LC_MESSAGES\gtk20.mo
C:\Program Files\YourApp\lib\locale\uk
C:\Program Files\YourApp\lib\locale\uk\LC_MESSAGES
C:\Program Files\YourApp\lib\locale\uk\LC_MESSAGES\gtk20.mo
C:\Program Files\YourApp\lib\locale\vi
C:\Program Files\YourApp\lib\locale\vi\LC_MESSAGES
C:\Program Files\YourApp\lib\locale\vi\LC_MESSAGES\gtk20.mo
C:\Program Files\YourApp\lib\locale\wa
C:\Program Files\YourApp\lib\locale\wa\LC_MESSAGES
C:\Program Files\YourApp\lib\locale\wa\LC_MESSAGES\gtk20.mo
C:\Program Files\YourApp\lib\locale\yi
C:\Program Files\YourApp\lib\locale\yi\LC_MESSAGES
C:\Program Files\YourApp\lib\locale\yi\LC_MESSAGES\gtk20.mo
C:\Program Files\YourApp\lib\locale\zh_CN
C:\Program Files\YourApp\lib\locale\zh_CN\LC_MESSAGES
C:\Program Files\YourApp\lib\locale\zh_CN\LC_MESSAGES\gtk20.mo
C:\Program Files\YourApp\lib\locale\zh_TW
C:\Program Files\YourApp\lib\locale\zh_TW\LC_MESSAGES
C:\Program Files\YourApp\lib\locale\zh_TW\LC_MESSAGES\gtk20.mo
C:\Program Files\YourApp\lib\pango
C:\Program Files\YourApp\lib\pango\1.2.0
C:\Program Files\YourApp\lib\pango\1.2.0\modules
C:\Program Files\YourApp\lib\pango\1.2.0\modules\pango-arabic-ft2.dll
C:\Program Files\YourApp\lib\pango\1.2.0\modules\pango-basic-ft2.dll
C:\Program Files\YourApp\lib\pango\1.2.0\modules\pango-basic-win32.dll
C:\Program Files\YourApp\lib\pango\1.2.0\modules\pango-hebrew-ft2.dll
C:\Program Files\YourApp\lib\pango\1.2.0\modules\pango-indic-ft2.dll
C:\Program Files\YourApp\lib\pango\1.2.0\modules\pango-thai-ft2.dll
C:\Program Files\YourApp\libatk-1.0-0.dll
C:\Program Files\YourApp\libgdk-win32-2.0-0.dll
C:\Program Files\YourApp\libgdk_pixbuf-2.0-0.dll
C:\Program Files\YourApp\libglib-2.0-0.dll
C:\Program Files\YourApp\libgmodule-2.0-0.dll
C:\Program Files\YourApp\libgobject-2.0-0.dll
C:\Program Files\YourApp\libgthread-2.0-0.dll
C:\Program Files\YourApp\libgtk-win32-2.0-0.dll
C:\Program Files\YourApp\libpango-1.0-0.dll
C:\Program Files\YourApp\libpangoft2-1.0-0.dll
C:\Program Files\YourApp\libpangowin32-1.0-0.dll
C:\Program Files\YourApp\libpng.dll
C:\Program Files\YourApp\zlib.dll

--
Ken Rastatter, Senior Design Engineer
Honeywell Sensotec
2080 Arlingate Lane, Columbus, Ohio, 43228-4112 USA
Home Page:  http://www.sensotec.com
"These opinions are mine and not necessarily those of Honeywell."



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