Advertising (This ad goes away for registered users. You can Login or Register)

(windows) eclipse + gtk, how to compile?

Programming on your favorite platform, for your favorite platform? Post here
Post Reply
asgard20032
Posts: 186
Joined: Thu Jan 20, 2011 1:16 pm
Location: Milky Way, Solar system, Earth, North America, Canada, Québec..... In front of my computer

(windows) eclipse + gtk, how to compile?

Post by asgard20032 » Wed Jun 27, 2012 5:22 am

Hi, im currently trying eclipse, but like with other IDE, i can't compile any program that use GTK+. I tried lot of thing, pkg-config(come with the gtk+ bundle), adding every include path by hand... really everything.

Does someone has good information on how to use gtk+ under windows?

I wanted to use GTK+ since from what I heard, its a great library. Unfortunately, lot of DLL, and can't manage to make it work. There is no other cross-platform GUI library in C (except FLTK). With code::block, managed to finally build an application, to finally discover that some feature don't work, i get compiler and linker message again... The code is 100% OK, this is not related to source. Code tested by many people from some tutorial. Its configuring linker and compiler that cause me lot of trouble.

I really want to use GTK+, because contrary to Qt, it is a little bit more lower level (I mean that the Qt framework is just to much complete, with GTK+, they don't give us everything, more work to do, harder), and for learning purpose, I think i will learn more using something a little lower level. Also, Qt is C++, and i think i should continue more month on C before jumping on C++.

Under Linux, no problem at all making GTK+ to work with pkg-config. But if I want to use GTK+, its because its C, low level, AND CROSS-PLATFORM. Otherwise, if I was going to remain locked to linux for GUI, i would rather use motif library than using a cross platform library when i can't do cross-platform development.

Here is one of the best discover i did recently, very good tutorial:
http://www.zetcode.com/tutorials/gtktutorial/
Advertising
Image

User avatar
garrei
Posts: 234
Joined: Fri Mar 16, 2012 3:35 am
Location: Australia

Re: (windows) eclipse + gtk, how to compile?

Post by garrei » Wed Jun 27, 2012 6:01 am

thankyou for enlightening us with your... ummm experience... still not sure what the point of the post was though. :shock:
Advertising
My PC: AMD FX 8-core 4.2Ghz, 16gb RAM, GTX 580, 60gb SSD, Blu-ray Burner, WiFi, 1.5TB HDD, 1000W PSU, 27" Full HD Monitor
My PSP Slim 2002 - TA-085
My PS3 Slim 160GB 4.25 OFW
My Vita: WiFi only :(

asgard20032
Posts: 186
Joined: Thu Jan 20, 2011 1:16 pm
Location: Milky Way, Solar system, Earth, North America, Canada, Québec..... In front of my computer

Re: (windows) eclipse + gtk, how to compile?

Post by asgard20032 » Wed Jun 27, 2012 6:26 am

Does someone has good information on how to use gtk+ under windows
I am asking for some info, link, tutorial on getting a project to compile using mingw32 and gtk+ library under windows.(windows version of mingw, not the cross compiler one, since im compiling from windows).
Last edited by asgard20032 on Wed Jun 27, 2012 6:41 am, edited 2 times in total.
Image

User avatar
garrei
Posts: 234
Joined: Fri Mar 16, 2012 3:35 am
Location: Australia

Re: (windows) eclipse + gtk, how to compile?

Post by garrei » Wed Jun 27, 2012 6:29 am

asgard20032 wrote:
Does someone has good information on how to use gtk+ under windows
I am asking for some info, link, tutorial on getting a project compiled using mingw32 under windows.(windows version of mingw, not the cross compiler one, sunce im compiling from windows).
ohhh... you should end your post with that too, just to re-iterate. I'm a *** coder so i just gave up on it, no clue what you're on about xD
My PC: AMD FX 8-core 4.2Ghz, 16gb RAM, GTX 580, 60gb SSD, Blu-ray Burner, WiFi, 1.5TB HDD, 1000W PSU, 27" Full HD Monitor
My PSP Slim 2002 - TA-085
My PS3 Slim 160GB 4.25 OFW
My Vita: WiFi only :(

Post Reply

Return to “Programming”