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 

good procedure to install gtk and glade in windows machine
Goto page Previous  1, 2, 3, 4, 5, 6, 7  Next
 
Post new topic   Reply to topic    GTK+ Forums Forum Index -> General GTK+ Discussion
Author Message
dreblen
Never Seen the Sunlight


Joined: 14 Jun 2007
Posts: 936
Location: Falun, WI USA

PostPosted: Tue Dec 30, 2008 8:12 pm    Post subject: Reply with quote

Does it compile if you remove "-lintl" from %GTK_COMPILE%?
Back to top
suityou01
Familiar Face


Joined: 30 Dec 2008
Posts: 32

PostPosted: Tue Dec 30, 2008 8:17 pm    Post subject: Reply with quote

dreblen wrote:
Does it compile if you remove "-lintl" from %GTK_COMPILE%?


Now a different error

Quote:

C:\Projects\gtk\first>gcc -o first.exe first.c %GTK_COMPILE%
c:\mingw\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\mingw32\bin\ld.exe: cannot fin
d -lfreetype
collect2: ld returned 1 exit status
Back to top
dreblen
Never Seen the Sunlight


Joined: 14 Jun 2007
Posts: 936
Location: Falun, WI USA

PostPosted: Tue Dec 30, 2008 8:37 pm    Post subject: Reply with quote

Once again, is there a "freetype.lib" file in C:\gtk\lib?
If not, then you'll probably need the freetype dev package:
http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/freetype-dev-2.3.6.zip
If it does already exist, then try compiling in two steps:
Code: (Plaintext)
1
2
gcc -c -o first.o first.c %GTK_COMPILE%
gcc -o first.exe first.o %GTK_COMPILE%
Back to top
suityou01
Familiar Face


Joined: 30 Dec 2008
Posts: 32

PostPosted: Tue Dec 30, 2008 8:46 pm    Post subject: Reply with quote

dreblen wrote:
Once again, is there a "freetype.lib" file in C:\gtk\lib?
If not, then you'll probably need the freetype dev package:
http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/freetype-dev-2.3.6.zip
If it does already exist, then try compiling in two steps:
Code: (Plaintext)
1
2
gcc -c -o first.o first.c %GTK_COMPILE%
gcc -o first.exe first.o %GTK_COMPILE%


Your tone suggests I am being thick, or at best unread. Is there some background reading I need to do? Should I know what these errors are? Am I wasting your time?

I followed the walkthrough. If there is additional reading, then please post a link and I will do the due diligence part.
Back to top
dreblen
Never Seen the Sunlight


Joined: 14 Jun 2007
Posts: 936
Location: Falun, WI USA

PostPosted: Tue Dec 30, 2008 8:54 pm    Post subject: Reply with quote

Sorry, it's hard to portray tone on a forum, I didn't mean to suggest that you were thick or unread.
I just don't know what your situation is, so I'm asking questions to clarify.
I'm assuming then, that freetype.lib exists.
Did you try compiling in two steps? It has solved problems for me before.
Back to top
suityou01
Familiar Face


Joined: 30 Dec 2008
Posts: 32

PostPosted: Tue Dec 30, 2008 9:08 pm    Post subject: Reply with quote

dreblen wrote:
Sorry, it's hard to portray tone on a forum, I didn't mean to suggest that you were thick or unread.
I just don't know what your situation is, so I'm asking questions to clarify.
I'm assuming then, that freetype.lib exists.
Did you try compiling in two steps? It has solved problems for me before.


Sorry dude, didn't mean to be cranky. I'm not good with asking for help as I like to figure things out for myself and the bits and pieces here are a bit fragmented for my way of thinking. To be fair though as this thread fleshes out it should make good reading, and possibly add some good FAQ points.

For clarity, permit me to explain some stuff back to you (for the benefit of the forum) - I'm getting the hang of things.

GTK core download may not be enough. When you need additional libs, they should be in c:\gtk\lib

The libs are found at

http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/

When you download one of these archives (zip for me) extract to a temp folder and then copy the contents eg \include \lib \bin \include to the c:\gtk folder

I just added the remaining missing libs, and it now compiles. Thanks for your help.

Also, there is no need to reopen the command shell for addiing in missing libs, or headers but there is for adding or ammending the environment variables.
Back to top
arcanefoam



Joined: 14 Jan 2009
Posts: 1

PostPosted: Wed Jan 14, 2009 4:09 pm    Post subject: Compiling Once everything is done Reply with quote

Ok,

I followed the steps (tadeboro ones) and everything seemd to be working ok. But, as a windows user I like widnows and not command lines (...well I actually do like command lines)... anyhow...

I am using NetBeans IDE and tried to use MinGW to compile my projects... but it seems, for what I understant, that the only way that MinGW compiler will work is using inside MSYS... Is there a way I can make things work so I can complie from my IDE and not have to move my files to the "home" folder and complie from MySys?

Thanks!
Back to top
dreblen
Never Seen the Sunlight


Joined: 14 Jun 2007
Posts: 936
Location: Falun, WI USA

PostPosted: Wed Jan 14, 2009 5:37 pm    Post subject: Reply with quote

Welcome to the GTK+ forums :)
If you set the windows path variable to include your MinGW bin directory, then you should be able to use gcc etc. from the windows command line (or netBeans).
My instructional for adding GTK+ to the %PATH% variable can be adapted to this:
http://dreblen.wordpress.com/2008/08/06/adding-gtk-to-the-windows-path/
Just follow the directions for adding to %PATH% and replace the GTK+ related stuff with the MinGW bin directory
Back to top
doglogan
Familiar Face


Joined: 11 Feb 2009
Posts: 9

PostPosted: Thu Feb 12, 2009 2:51 am    Post subject: need ramesh's gtk .zip file Reply with quote

hi...Everyone
i'm very new to this community..... & just started GTK+ progamming...
i read the posts and liked it very much..

I WANT TO INSTALL GTK & OTHER RELATED SOFTWARE IN WINDOWS XP.

pls HELP ME GET THE (.ZIP) FILES UPLOADED BY RAMESH ...

THANK TO ALL.....
Back to top
dreblen
Never Seen the Sunlight


Joined: 14 Jun 2007
Posts: 936
Location: Falun, WI USA

PostPosted: Thu Feb 12, 2009 6:23 pm    Post subject: Reply with quote

Welcome to the GTK+ forums :)
Have you tried following these directions?
http://gtkforums.com/viewtopic.php?p=4848#4848
If so, what are you having troubles with?
Thanks...
Back to top
doglogan
Familiar Face


Joined: 11 Feb 2009
Posts: 9

PostPosted: Fri Feb 13, 2009 2:10 pm    Post subject: Reply with quote

thanks Dreblen for coming to help.......
i have a few questions...
1. what packages do i need to select while installing MinGW??

2. will downloading the "Gtkmm bundle for Windows" work for c file also?


pls reply......
Back to top
dreblen
Never Seen the Sunlight


Joined: 14 Jun 2007
Posts: 936
Location: Falun, WI USA

PostPosted: Fri Feb 13, 2009 5:48 pm    Post subject: Reply with quote

1) I haven't installed MinGW for awhile, so I couldn't really say. I know that you'll need gcc and probably whatever it selects by default.
@tadeboro - This would probably be a good thing to add to your guide, that is, which packages need to be selected from MinGW.

2) I think that it will install the runtime files, but not the C development files.
Back to top
doglogan
Familiar Face


Joined: 11 Feb 2009
Posts: 9

PostPosted: Sat Feb 14, 2009 3:03 pm    Post subject: Reply with quote

@ Dreblen.... thanks a lot for ur help... but i installed UBUNTU 8.04 LTS and the packages needed for gtk+ developement.... and is working fine...

but thanks to all of u who came to my help.... thanks a lot. :D :D :D
Back to top
tadeboro
Never Seen the Sunlight


Joined: 23 Jul 2008
Posts: 2114
Location: Slovenia

PostPosted: Sun Feb 15, 2009 10:38 pm    Post subject: Reply with quote

dreblen wrote:
@tadeboro - This would probably be a good thing to add to your guide, that is, which packages need to be selected from MinGW.
I updated my guide with the information about MinGW components needed for particular setup.

I also added some info about contents of gtkmm package (C/C++ runtime and development files).

And thanks for the suggestion.
Back to top
alen121
GTK+ Geek


Joined: 28 Sep 2007
Posts: 51

PostPosted: Thu Apr 09, 2009 5:40 pm    Post subject: Reply with quote

I install gtk step by step in windows but when I want compile any program , i get some error like this
Code: (Plaintext)
1
2
3
4
5
6

C:/DOCUME~1/alen/LOCALS~1/Temp/cc1EdRty.o:test.c:(.text+0x50): undefined reference to `_gtk_init_abi_check'
C:/DOCUME~1/alen/LOCALS~1/Temp/cc1EdRty.o:test.c:(.text+0x5c): undefined reference to `_gtk_window_new'
C:/DOCUME~1/alen/LOCALS~1/Temp/cc1EdRty.o:test.c:(.text+0x6a): undefined reference to `_gtk_widget_show'
C:/DOCUME~1/alen/LOCALS~1/Temp/cc1EdRty.o:test.c:(.text+0x6f): undefined reference to `_gtk_main'
collect2: ld returned 1 exit statu
Back to top
Display posts from previous:   
Post new topic   Reply to topic    GTK+ Forums Forum Index -> General GTK+ Discussion All times are GMT
Goto page Previous  1, 2, 3, 4, 5, 6, 7  Next
Page 5 of 7

 


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