GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Mon Nov 24, 2014 8:10 am

All times are UTC




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: GTK+ with Eclipse on Windows
PostPosted: Fri Nov 30, 2007 8:21 am 
Offline
Familiar Face

Joined: Fri Nov 30, 2007 8:12 am
Posts: 5
HI,

I have install gtk+ glade on windows and i wish to compile using eclipse IDE.

First i create a project, set include path to
C:\Program Files\Common Files\GTK\2.0\include
C:\Program Files\Common Files\GTK\2.0\include\gtk-2.0
C:\Program Files\Common Files\GTK\2.0\include\cairo
C:\Program Files\Common Files\GTK\2.0\include\glib-2.0
C:\Program Files\Common Files\GTK\2.0\include\pango-1.0
C:\Program Files\Common Files\GTK\2.0\include\atk-1.0
C:\Program Files\Common Files\GTK\2.0\lib\gtk-2.0\include
C:\Program Files\Common Files\GTK\2.0\lib\glib-2.0\include

and lib path to
C:\Program Files\Common Files\GTK\2.0\lib

Then i compile, there is no problem with the header, but i think the problem is come from linker to library.

The error message is like below:-
Settings/SKTan/workspace/test1/Debug/../src/test1.cpp:13: undefined reference to `gtk_widget_show'
:C:/Documents and Settings/SKTan/workspace/test1/Debug/../src/test1.cpp:15: undefined reference to `gtk_main'

Any know how to solve this? Thanks in advance.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 30, 2007 4:37 pm 
Offline
Never Seen the Sunlight

Joined: Wed Sep 21, 2005 12:07 am
Posts: 563
Location: Portland, OR USA
I don't work with eclipse, but is there a way to see what it's using to compile it?

_________________
Micah Carrick - Forum Administrator
http://www.micahcarrick.com


Top
 Profile  
 
 Post subject:
PostPosted: Sat Dec 01, 2007 2:14 pm 
Offline
Familiar Face

Joined: Fri Nov 30, 2007 8:12 am
Posts: 5
it using mingw32 to compile. but there is also some problem with eclipse makefile which i do not understand. i need more time to learn with eclipse.

what method ppl use to compile gtk under windows?


Top
 Profile  
 
 Post subject:
PostPosted: Sat Dec 01, 2007 6:09 pm 
Offline
Never Seen the Sunlight

Joined: Wed Sep 21, 2005 12:07 am
Posts: 563
Location: Portland, OR USA
I've only dabbled, but I compile my GTK+ applications in Windows the same way I do in Linux--by running gcc myself or from a typical POSIX install script (configure, make, make install). I do both of these using MinGW/MSYS.

You may want to read this post: http://www.gtkforums.com/about894.html

_________________
Micah Carrick - Forum Administrator
http://www.micahcarrick.com


Top
 Profile  
 
 Post subject:
PostPosted: Sun Dec 02, 2007 12:31 am 
Offline
Familiar Face

Joined: Fri Nov 30, 2007 8:12 am
Posts: 5
i see, but using Msys is hard, you need to install every component to start. download dll and exe file from glade is another problem with me, i don't know where to put those file so that my compiler can find it.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Dec 02, 2007 6:33 pm 
Offline
Never Seen the Sunlight

Joined: Wed Sep 21, 2005 12:07 am
Posts: 563
Location: Portland, OR USA
Unfortunately, from what I've read, developing GTK+ in Windows is not as easy as other OS's. Be it MSYS, Cygwin, Visual Studio, Bloodshed Dev++, or Eclipse-- you need to know or figure out what all the dependencies are that you need, how you compiler/linker will find them and what linker flags it uses.

There are some GTK+ Development installers out there, however, I don't have any experience using them.

_________________
Micah Carrick - Forum Administrator
http://www.micahcarrick.com


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 03, 2007 12:58 am 
Offline
Familiar Face

Joined: Fri Nov 30, 2007 8:12 am
Posts: 5
thank you. I will try with MSYS.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 04, 2007 5:55 am 
Offline
Familiar Face

Joined: Fri Nov 30, 2007 8:12 am
Posts: 5
I success my compilation under Msys. Below site is useful info to compile under Win32.

http://www.mingw.org/MinGWiki/index.php/GladeGuide


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group