|
|
| Author |
Message |
|
|
axpen Familiar Face
Joined: 27 Aug 2007 Posts: 14
|
Posted: Wed Sep 26, 2007 10:17 pm Post subject: Checking GTK+ Installation On Windows |
|
|
OK basically my subject says it all. I'm wanting to know if there are any standard ways of checking whether GTK+ is installed, on windows or linux. I know alot of projects just install duplicates, but certainly that isn't very efficient. I was just wondering if there is a way to check since actual locations on the machine can vary with installations. One way I would presume would be the best way would be to check actual libs for GTK+ components like pango, glib, gobject... But again their physical locations vary.
Thanks for your time and help,
--Alex |
|
| Back to top |
|
 |
axpen Familiar Face
Joined: 27 Aug 2007 Posts: 14
|
Posted: Mon Oct 29, 2007 5:07 pm Post subject: |
|
|
| Wow I guess this is a harder question than I thought it would be :P, I found out one thing, G_OS_WIN32 will tell us that the OS is windows, just check that and make a gboolean = true ifdef G_OS_WIN32. |
|
| Back to top |
|
 |
Micah Carrick Never Seen the Sunlight
Joined: 21 Sep 2005 Posts: 404 Location: Portland, OR USA
|
Posted: Mon Oct 29, 2007 5:43 pm Post subject: |
|
|
During installation on Linux, autotools uses this check:
pkg-config --modversion gtk+-2.0 |
|
| Back to top |
|
 |
axpen Familiar Face
Joined: 27 Aug 2007 Posts: 14
|
Posted: Sun Nov 04, 2007 3:27 am Post subject: |
|
|
Thanks for the reply, I would use pkg-config, but I can't assume that they have msys or cygwin installed. I could check for pkg-config or else check for GTK_BASEPATH, but is that really how pros check for GTK? Or do they just say if our application doesn't work, install GTK?
Thanks for the help,
--Alex |
|
| Back to top |
|
 |
Micah Carrick Never Seen the Sunlight
Joined: 21 Sep 2005 Posts: 404 Location: Portland, OR USA
|
Posted: Mon Nov 05, 2007 2:33 pm Post subject: |
|
|
| No clue. Maybe take a look at gaim or gimp for Windows installers? |
|
| Back to top |
|
 |
|