[Glade-users] libglade in cygwin, code generation problem , Please help
- From: shakyashuprabha at yahoo.com (shuprabha shakya)
- Subject: [Glade-users] libglade in cygwin, code generation problem , Please help
- Date: Sat, 30 Dec 2006 10:46:58 -0800 (PST)
Dear Sir/Madam,
I have been trying to use libglade under cygwin [in Windows XP]. I have installed the packages (libglade)
provided by cygwin. Then I tried to generate C code from the glade file generated from glade 3.
I took the sample code [stage1] from the libglade documentation provided in the link
http://users.bigpond.net.au/mlm/libglade/#sources
the makefile is like this:
//-------------------------------------------------MAKEFILE----------------------------------------------------------------------
CC=gcc
CFLAGS=-g -W -Wall `libglade-config --cflags`
LIBS=`libglade-config --libs`
TARGET=stage1
OBJECTS=stage1.o
$(TARGET): $(OBJECTS)
$(CC) -o $@ $^ $(LIBS)
clean:
rm -f *.o *~ $(TARGET) *.bak
//---------------------------------------------------------------------------------------------------------------------------
On compiling the code, i get the following error
//------------------------------------Compiling---------------------------------------------------------------------------
interlab at Alexgender /home/libglade-intro/stage1
$ make
gcc -g -W -Wall `libglade-config --cflags` -c -o stage1.o stage1.c
/bin/sh: libglade-config: command not found
stage1.c: 4:21 : gtk/gtk.h: No such file or directory
stage1.c: 5:25 : glade/glade.h: No such file or directory
stage1.c:13: error: parse error before '*' token
stage1.c:13: warning: type defaults to `int' in declaration of `xml'
stage1.c:13: warning: data definition has no type or storage class
stage1.c: In function `main':
stage1.c:18: warning: implicit declaration of function `gtk_init'
stage1.c:19: warning: implicit declaration of function `glade_init'
stage1.c:22: warning: implicit declaration of function `glade_xml_new'
stage1.c:22: warning: assignment makes pointer from integer without a cast
stage1.c:25: warning: implicit declaration of function `g_warning'
stage1.c:30: warning: implicit declaration of function `gtk_main'
make: *** [stage1.o] Error 1
//-------------------------------------------------------------------------------------------------------------------------------------
It says, libglade-config command is not avialable
but on checking the package , it shows like
//---------------------------------------------------------------------------------------------------------------------------------------
$ cygcheck -p libglade
Found 14 matches for libglade.
libbonoboui2/libbonoboui2-2.10.1-1 GUI library for the GNOME component and compound document
system
libbonoboui2/libbonoboui2-2.8.0-1 GUI library for the GNOME component and compound document
system
libglade2/libglade2-2.4.0-1 Library for loading Glade interfaces at runtime
libglade2/libglade2-2.4.0-1-src Library for loading Glade interfaces at runtime
libglade2/libglade2-2.5.1-1 Library for loading Glade interfaces at runtime
libglade2/libglade2-2.5.1-1-src Library for loading Glade interfaces at runtime
libgnomecanvas2/libgnomecanvas2-2.10.2-1 GNOME 2.x canvas widget library (runtime)
libgnomecanvas2/libgnomecanvas2-2.12.0-1 GNOME 2.x canvas widget library (runtime)
libgnomeui2/libgnomeui2-2.10.1-1 GUI part of the GNOME library (runtime)
libgnomeui2/libgnomeui2-2.12.0-1 GUI part of the GNOME library (runtime)
libgnomeui2/libgnomeui2-2.12.1-1 GUI part of the GNOME library (runtime)
pygtk2/pygtk2-2.6.3-1 Python bindings for GTK2 and libglade
pygtk2/pygtk2-2.6.3-1-src Python bindings for GTK2 and libglade
qt3-bin/qt3-bin-3.3.4-2 C++ GUI application framework (Development tools)
//---------------------------------------------------------------------------------------------------------------------------------------
I wonder what could be the problem. Am I doing something wrong?
If so, how can i generate C code by installing linglade package in cygwin.
I would be very grateful to hear from you.
Sincerely,
Shuprabha Shakya
shupa
shupa
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/glade-users/attachments/20061230/ad3a7917/attachment.html
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]