GTK+ Forums Forum Index GTK+ Forums
Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Checking GTK+ Installation On Windows

 
Post new topic   Reply to topic    GTK+ Forums Forum Index -> General GTK+ Discussion
Author Message
axpen
Familiar Face


Joined: 27 Aug 2007
Posts: 14

PostPosted: Wed Sep 26, 2007 10:17 pm    Post subject: Checking GTK+ Installation On Windows Reply with quote

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

PostPosted: Mon Oct 29, 2007 5:07 pm    Post subject: Reply with quote

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

PostPosted: Mon Oct 29, 2007 5:43 pm    Post subject: Reply with quote

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

PostPosted: Sun Nov 04, 2007 3:27 am    Post subject: Reply with quote

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

PostPosted: Mon Nov 05, 2007 2:33 pm    Post subject: Reply with quote

No clue. Maybe take a look at gaim or gimp for Windows installers?
Back to top
Display posts from previous:   
Post new topic   Reply to topic    GTK+ Forums Forum Index -> General GTK+ Discussion All times are GMT
Page 1 of 1

 


Powered by phpBB © 2001, 2005 phpBB Group
CodeBB 1.0 Beta 2
Protected by Anti-Spam ACP