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
 
Post new topic   Reply to topic    GTK+ Forums Forum Index -> General GTK+ Discussion
Author Message
tadeboro
Never Seen the Sunlight


Joined: 23 Jul 2008
Posts: 2114
Location: Slovenia

PostPosted: Tue Jun 16, 2009 6:37 am    Post subject: Reply with quote

Hi.

Even with no theme installed, glade should load some default icons from it's data directory. Can you check if you have any files in C:\devel\gtk\share\glade3\pixmaps\hicolor\22x22\actions (replace C:\devel\gtk with your gtk installation path)?
Back to top
michaeltm



Joined: 15 Jun 2009
Posts: 4

PostPosted: Tue Jun 16, 2009 7:51 am    Post subject: They're there. Reply with quote

tadeboro wrote:
Hi.

Even with no theme installed, glade should load some default icons from it's data directory. Can you check if you have any files in C:\devel\gtk\share\glade3\pixmaps\hicolor\22x22\actions (replace C:\devel\gtk with your gtk installation path)?


Hi,

The icons are there as png-images. Should I move them to a more appropriate folder?
Back to top
tadeboro
Never Seen the Sunlight


Joined: 23 Jul 2008
Posts: 2114
Location: Slovenia

PostPosted: Thu Jun 18, 2009 6:51 am    Post subject: Reply with quote

Hi.

Sorry for late response.

Those pngs are fine and should be loaded by glade. I reinstalled my windows gtk installation in attempt to replicate your errors, but everything works fine here. (I installed from all-in-one C-only installer listed at the end of my tutorial.)

Did you try to install GTK+ this way?
Back to top
michaeltm



Joined: 15 Jun 2009
Posts: 4

PostPosted: Thu Jun 18, 2009 8:50 am    Post subject: No all-in-one C-only installer Reply with quote

tadeboro wrote:
Hi.

Sorry for late response.

Those pngs are fine and should be loaded by glade. I reinstalled my windows gtk installation in attempt to replicate your errors, but everything works fine here. (I installed from all-in-one C-only installer listed at the end of my tutorial.)

Did you try to install GTK+ this way?


Hi,

My MinGW was installed separately a month ago. Then I stumbled upon this forum when searching for a way to install gtk+ and followed the steps that you have wrote.
I did not install everything with the all-in-one C-only installer but downloaded the seperate packages and copied the contents to the folders specified.
Everything seems to work fine except for glade that generates the error messages you have seen before.
Back to top
harinath88
GTK+ Geek


Joined: 30 Jul 2009
Posts: 88

PostPosted: Fri Jul 31, 2009 5:32 am    Post subject: problem in installing Reply with quote

hi,

iam very glad for ur kind info about installation gtk in windows.
iam very new to gtk .

i followed ur instructions ,but i am facing problem with glade

if i give glade-3 command in msys it is giving error like bellow
sh:glade-3:command not found

plz help me where i did mistake

thanks,
harianth
Back to top
tadeboro
Never Seen the Sunlight


Joined: 23 Jul 2008
Posts: 2114
Location: Slovenia

PostPosted: Fri Jul 31, 2009 9:43 am    Post subject: Reply with quote

Hello and welcome to the GTK+ forums.

Is glade-3 executable present in your bin folder?
Back to top
suityou01
Familiar Face


Joined: 30 Dec 2008
Posts: 32

PostPosted: Sat Oct 10, 2009 6:51 pm    Post subject: Reply with quote

Oh dear oh dear. I started out on a project using GTK over a year ago. I am virtualising my development environment and need to reinstall all my development tools. Everything is going great apart from this bit.

I now have a hug mess on my HDD from following the walkthroughs on here. Are we using mingw or ghc? Are we hacking environment variables or not?

I have some kind of bastardisation of the first and second walkthroughs that just gives me thousands of compile time errors, and I have have lost two entire days on this now.

It's an awful lot of code to put in the bin and go to .Net, so can someone please put together a definitive walkthrough, or installer or something. I hope to go release my project to the public but get a sick to the pit of my stomach feeling when I feel that I have invested so much time and effort in these tools and they are just so flaky and troublesome as to be unmaintainable.

Having followed the walkthrough, and overcoming the CC1 file error, I now get

Quote:

C:/gtk/include/glib-2.0/glib/gmacros.h:40:20: stddef.h: No such file or director
y
In file included from /mingw/include/float.h:19,
from /mingw/lib/gcc/mingw32/../../../include/float.h:19,
from C:/gtk/lib/glib-2.0/include/glibconfig.h:13,
from C:/gtk/include/glib-2.0/glib/gtypes.h:34,
from C:/gtk/include/glib-2.0/glib/galloca.h:34,
from C:/gtk/include/glib-2.0/glib.h:32,
from C:/gtk/include/glib-2.0/gobject/gtype.h:26,
from C:/gtk/include/glib-2.0/gobject/gboxed.h:26,
from C:/gtk/include/glib-2.0/glib-object.h:25,
from C:/gtk/include/glib-2.0/gio/gioenums.h:30,
from C:/gtk/include/glib-2.0/gio/giotypes.h:30,
from C:/gtk/include/glib-2.0/gio/gio.h:28,
from C:/gtk/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30,
from C:/gtk/include/gtk-2.0/gdk/gdk.h:32,
from C:/gtk/include/gtk-2.0/gtk/gtk.h:32,
from main.c:1:
/mingw/include/float.h:19:23: no include path in which to search for float.h
In file included from C:/gtk/include/glib-2.0/glib/gthread.h:36,
from C:/gtk/include/glib-2.0/glib/gasyncqueue.h:34,
from C:/gtk/include/glib-2.0/glib.h:34,
from C:/gtk/include/glib-2.0/gobject/gtype.h:26,
from C:/gtk/include/glib-2.0/gobject/gboxed.h:26,
from C:/gtk/include/glib-2.0/glib-object.h:25,
from C:/gtk/include/glib-2.0/gio/gioenums.h:30,
from C:/gtk/include/glib-2.0/gio/giotypes.h:30,
from C:/gtk/include/glib-2.0/gio/gio.h:28,
from C:/gtk/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30,
from C:/gtk/include/gtk-2.0/gdk/gdk.h:32,
from C:/gtk/include/gtk-2.0/gtk/gtk.h:32,
from main.c:1:
C:/gtk/include/glib-2.0/glib/gutils.h:35:20: stdarg.h: No such file or directory

In file included from C:/gtk/include/glib-2.0/glib/gthread.h:36,
from C:/gtk/include/glib-2.0/glib/gasyncqueue.h:34,
from C:/gtk/include/glib-2.0/glib.h:34,
from C:/gtk/include/glib-2.0/gobject/gtype.h:26,
from C:/gtk/include/glib-2.0/gobject/gboxed.h:26,
from C:/gtk/include/glib-2.0/glib-object.h:25,
from C:/gtk/include/glib-2.0/gio/gioenums.h:30,
from C:/gtk/include/glib-2.0/gio/giotypes.h:30,
from C:/gtk/include/glib-2.0/gio/gio.h:28,
from C:/gtk/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30,
from C:/gtk/include/gtk-2.0/gdk/gdk.h:32,
from C:/gtk/include/gtk-2.0/gtk/gtk.h:32,
from main.c:1:
C:/gtk/include/glib-2.0/glib/gutils.h:214: error: syntax error before "va_list"
In file included from C:/gtk/include/glib-2.0/glib/gbookmarkfile.h:28,
from C:/gtk/include/glib-2.0/glib.h:38,
from C:/gtk/include/glib-2.0/gobject/gtype.h:26,
from C:/gtk/include/glib-2.0/gobject/gboxed.h:26,
from C:/gtk/include/glib-2.0/glib-object.h:25,
from C:/gtk/include/glib-2.0/gio/gioenums.h:30,
from C:/gtk/include/glib-2.0/gio/giotypes.h:30,
from C:/gtk/include/glib-2.0/gio/gio.h:28,
from C:/gtk/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30,
from C:/gtk/include/gtk-2.0/gdk/gdk.h:32,
from C:/gtk/include/gtk-2.0/gtk/gtk.h:32,
from main.c:1:
/mingw/lib/gcc/mingw32/../../../include/time.h:104: error: syntax error before "
strftime"
/mingw/lib/gcc/mingw32/../../../include/time.h:198: error: syntax error before '
*' token
/mingw/lib/gcc/mingw32/../../../include/time.h:199: error: syntax error before '
*' token
/mingw/lib/gcc/mingw32/../../../include/time.h:200: error: syntax error before '
*' token
/mingw/lib/gcc/mingw32/../../../include/time.h:200: error: syntax error before '
*' token
/mingw/lib/gcc/mingw32/../../../include/time.h:201: error: syntax error before '
*' token
/mingw/lib/gcc/mingw32/../../../include/time.h:201: error: syntax error before '
*' token
/mingw/lib/gcc/mingw32/../../../include/time.h:207: error: syntax error before "
wcsftime"
In file included from C:/gtk/include/glib-2.0/glib/giochannel.h:36,
from C:/gtk/include/glib-2.0/glib.h:50,
from C:/gtk/include/glib-2.0/gobject/gtype.h:26,
from C:/gtk/include/glib-2.0/gobject/gboxed.h:26,
from C:/gtk/include/glib-2.0/glib-object.h:25,
from C:/gtk/include/glib-2.0/gio/gioenums.h:30,
from C:/gtk/include/glib-2.0/gio/giotypes.h:30,
from C:/gtk/include/glib-2.0/gio/gio.h:28,
from C:/gtk/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30,
from C:/gtk/include/gtk-2.0/gdk/gdk.h:32,
from C:/gtk/include/gtk-2.0/gtk/gtk.h:32,
from main.c:1:


This is just the tip of the iceberg.
If someone could give me a decent walkthrough I would happily scrape all this crud of my HDD and start again.
Back to top
suityou01
Familiar Face


Joined: 30 Dec 2008
Posts: 32

PostPosted: Sun Oct 11, 2009 8:59 am    Post subject: Reply with quote

Still battling away at this. I have managed to plug some holes in the environment variables and install missing libs but now I am stumped with this one

\mingw\lib\gcc\mingw32\..\..\..\mingw32\bin\ld.exe: cannot find -lfontconfig

On the front page of GTK download screen FontConfig is listed as a download but the zip contains no lib file! Nor is there any hint given as to what to do with the contents of the zip file.

After all this time, has no one written an installer? Please help. I really wanted my project to be all open source, but I am losing sooooo much time on this stuff I am seriously thinking about bailing and going down the .Net route, which would be a great pity.
Back to top
suityou01
Familiar Face


Joined: 30 Dec 2008
Posts: 32

PostPosted: Sun Oct 11, 2009 9:23 am    Post subject: Reply with quote

I have extracted the GTK all in one bundle from http://www.gtk.org/download-windows.html to the c:\gtk directory. This has cured most of the missing libs.

Now I am getting

\mingw\lib\gcc\mingw32\..\..\..\mingw32\bin\ld.exe: cannot find -lgcc

Nearly in tears :roll:
Back to top
suityou01
Familiar Face


Joined: 30 Dec 2008
Posts: 32

PostPosted: Sun Oct 11, 2009 9:57 am    Post subject: Reply with quote

OK, I am compiling now. I wanted to post my findings.

I completely removed the c:\ghc folder, and any reference to it from my environment variables.

I installed MingW from http://sourceforge.net/projects/mingw/files/
version 5.1.6

I also extracted the GTK bundle from http://ftp.gnome.org/pub/gnome/binaries/win32/gtk+/2.16/gtk+-bundle_2.16.6-20090911_win32.zip

Into the C:\GTK folder

I think my environment variables are the same as per the first walkthrough, but not ovviously including the one for C:\GHC

HTH
.
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
Page 7 of 7

 


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