* GNU Emacs --with-gtk
@ 2006-11-30 9:22 dhruva
2006-11-30 10:20 ` David Kastrup
2006-11-30 10:34 ` Jan Djärv
0 siblings, 2 replies; 4+ messages in thread
From: dhruva @ 2006-11-30 9:22 UTC (permalink / raw)
Hi,
I am trying to build CVS Emacs with GTK. I have installed GTK2.0 on
Debian (Knoppix distro). The build fails. Any help to get me going is
appreciated.
$ ./configure --with-gtk
Yields... (part of the output that shows GTK was indeed found)
[...]
checking for gtk+-2.0 >= 2.4 glib-2.0 >= 2.4... yes
checking GTK_CFLAGS... -I/usr/include/gtk-2.0
-I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo
-I/usr/include/pango-1.0 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include
checking GTK_LIBS... -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0
-lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lfontconfig -lXext -lXrender
-lXinerama -lXi -lXrandr -lXcursor -lXfixes -lpango-1.0 -lcairo -lX11
-lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0
checking for gdk_display_open... yes
checking for gtk_file_selection_new... yes
checking for gtk_file_chooser_dialog_new... yes
[...]
Configured for `i686-pc-linux-gnu'.
Where should the build process find the source code?
/home/krishndh/stub/emacs-build
What operating system and machine description files should Emacs use?
`s/gnu-linux.h' and `m/intel386.h'
What compiler should emacs be built with? gcc -g -O2
-Wno-pointer-sign
Should Emacs use the GNU version of malloc? yes
(Using Doug Lea's new malloc from the GNU C Library.)
Should Emacs use a relocating allocator for buffers? yes
Should Emacs use mmap(2) for buffer allocation? no
What window system should Emacs use? none
What toolkit should Emacs use? GTK
Where do we find X Windows header files? NONE
Where do we find X Windows libraries? NONE
Does Emacs use -lXaw3d? no
Does Emacs use -lXpm? no
Does Emacs use -ljpeg? no
Does Emacs use -ltiff? no
Does Emacs use -lungif? no
Does Emacs use -lpng? no
Does Emacs use X toolkit scroll bars? yes
The build failure:
gcc -c -D_BSD_SOURCE -Demacs -DHAVE_CONFIG_H -DUSE_GTK -I.
-I/home/krishndh/stub/emacs-build/src -D_BSD_SOURCE
-I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include
-I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -g -O2
-Wno-pointer-sign xmenu.c
In file included from xmenu.c:130:
gtkutil.h:163: error: syntax error before '*' token
gtkutil.h:165: warning: 'struct scroll_bar' declared inside parameter list
gtkutil.h:165: warning: its scope is only this definition or
declaration, which is probably not what you want
gtkutil.h:179: warning: 'struct scroll_bar' declared inside parameter list
gtkutil.h:192: error: syntax error before '*' token
gtkutil.h:194: error: syntax error before 'Display'
gtkutil.h:195: error: syntax error before '*' token
gtkutil.h:196: error: syntax error before '*' token
gtkutil.h:204: error: syntax error before 'Pixmap'
xmenu.c: In function 'syms_of_xmenu':
xmenu.c:3797: error: 'Smenu_bar_open' undeclared (first use in this function)
xmenu.c:3797: error: (Each undeclared identifier is reported only once
xmenu.c:3797: error: for each function it appears in.)
make[2]: *** [xmenu.o] Error 1
make[2]: Leaving directory `/home/krishndh/stub/emacs-build/src'
make[1]: *** [bootstrap-build] Error 2
make[1]: Leaving directory `/home/krishndh/stub/emacs-build'
make: *** [bootstrap] Error 2
with best regards,
dk
--
dhruva (dk)
Contents reflect my personal views only!
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: GNU Emacs --with-gtk
2006-11-30 9:22 GNU Emacs --with-gtk dhruva
@ 2006-11-30 10:20 ` David Kastrup
2006-11-30 12:50 ` dhruva
2006-11-30 10:34 ` Jan Djärv
1 sibling, 1 reply; 4+ messages in thread
From: David Kastrup @ 2006-11-30 10:20 UTC (permalink / raw)
Cc: Emacs Devel
dhruva <dhruvakm@gmail.com> writes:
> Hi,
> I am trying to build CVS Emacs with GTK. I have installed GTK2.0 on
> Debian (Knoppix distro). The build fails. Any help to get me going is
> appreciated.
>
> $ ./configure --with-gtk
> Yields... (part of the output that shows GTK was indeed found)
> [...]
> checking for gtk+-2.0 >= 2.4 glib-2.0 >= 2.4... yes
> checking GTK_CFLAGS... -I/usr/include/gtk-2.0
> -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo
> -I/usr/include/pango-1.0 -I/usr/include/glib-2.0
> -I/usr/lib/glib-2.0/include
> checking GTK_LIBS... -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0
> -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lfontconfig -lXext -lXrender
> -lXinerama -lXi -lXrandr -lXcursor -lXfixes -lpango-1.0 -lcairo -lX11
> -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0
> checking for gdk_display_open... yes
> checking for gtk_file_selection_new... yes
> checking for gtk_file_chooser_dialog_new... yes
>
> [...]
> Configured for `i686-pc-linux-gnu'.
>
> Where should the build process find the source code?
> /home/krishndh/stub/emacs-build
> What operating system and machine description files should Emacs use?
> `s/gnu-linux.h' and `m/intel386.h'
> What compiler should emacs be built with? gcc -g -O2
> -Wno-pointer-sign
> Should Emacs use the GNU version of malloc? yes
> (Using Doug Lea's new malloc from the GNU C Library.)
> Should Emacs use a relocating allocator for buffers? yes
> Should Emacs use mmap(2) for buffer allocation? no
> What window system should Emacs use? none
> What toolkit should Emacs use? GTK
> Where do we find X Windows header files? NONE
> Where do we find X Windows libraries? NONE
> Does Emacs use -lXaw3d? no
> Does Emacs use -lXpm? no
> Does Emacs use -ljpeg? no
> Does Emacs use -ltiff? no
> Does Emacs use -lungif? no
> Does Emacs use -lpng? no
> Does Emacs use X toolkit scroll bars? yes
Well, you obviously did not install any development libraries for X11,
libpng, libjpeg, libtiff and probably a few other things.
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: GNU Emacs --with-gtk
2006-11-30 9:22 GNU Emacs --with-gtk dhruva
2006-11-30 10:20 ` David Kastrup
@ 2006-11-30 10:34 ` Jan Djärv
1 sibling, 0 replies; 4+ messages in thread
From: Jan Djärv @ 2006-11-30 10:34 UTC (permalink / raw)
Cc: Emacs Devel
dhruva skrev:
> Hi,
> I am trying to build CVS Emacs with GTK. I have installed GTK2.0 on
> Debian (Knoppix distro). The build fails. Any help to get me going is
> appreciated.
>
Check src/config.h and see if you have:
/* Define to 1 if you want to use the X window system. */
#define HAVE_X_WINDOWS 1
My guess is that you haven't. Then check config.log and figure out why it
can't find X11.
Configure has uses GTK because you said so (--with-gtk), but you apparently
lack some X11 files.
Jan D.
> $ ./configure --with-gtk
> Yields... (part of the output that shows GTK was indeed found)
> [...]
> checking for gtk+-2.0 >= 2.4 glib-2.0 >= 2.4... yes
> checking GTK_CFLAGS... -I/usr/include/gtk-2.0
> -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo
> -I/usr/include/pango-1.0 -I/usr/include/glib-2.0
> -I/usr/lib/glib-2.0/include
> checking GTK_LIBS... -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0
> -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lfontconfig -lXext -lXrender
> -lXinerama -lXi -lXrandr -lXcursor -lXfixes -lpango-1.0 -lcairo -lX11
> -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0
> checking for gdk_display_open... yes
> checking for gtk_file_selection_new... yes
> checking for gtk_file_chooser_dialog_new... yes
>
> [...]
> Configured for `i686-pc-linux-gnu'.
>
> Where should the build process find the source code?
> /home/krishndh/stub/emacs-build
> What operating system and machine description files should Emacs use?
> `s/gnu-linux.h' and `m/intel386.h'
> What compiler should emacs be built with? gcc -g -O2
> -Wno-pointer-sign
> Should Emacs use the GNU version of malloc? yes
> (Using Doug Lea's new malloc from the GNU C Library.)
> Should Emacs use a relocating allocator for buffers? yes
> Should Emacs use mmap(2) for buffer allocation? no
> What window system should Emacs use? none
> What toolkit should Emacs use? GTK
> Where do we find X Windows header files? NONE
> Where do we find X Windows libraries? NONE
> Does Emacs use -lXaw3d? no
> Does Emacs use -lXpm? no
> Does Emacs use -ljpeg? no
> Does Emacs use -ltiff? no
> Does Emacs use -lungif? no
> Does Emacs use -lpng? no
> Does Emacs use X toolkit scroll bars? yes
>
>
> The build failure:
> gcc -c -D_BSD_SOURCE -Demacs -DHAVE_CONFIG_H -DUSE_GTK -I.
> -I/home/krishndh/stub/emacs-build/src -D_BSD_SOURCE
> -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include
> -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0
> -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -g -O2
> -Wno-pointer-sign xmenu.c
> In file included from xmenu.c:130:
> gtkutil.h:163: error: syntax error before '*' token
> gtkutil.h:165: warning: 'struct scroll_bar' declared inside parameter list
> gtkutil.h:165: warning: its scope is only this definition or
> declaration, which is probably not what you want
> gtkutil.h:179: warning: 'struct scroll_bar' declared inside parameter list
> gtkutil.h:192: error: syntax error before '*' token
> gtkutil.h:194: error: syntax error before 'Display'
> gtkutil.h:195: error: syntax error before '*' token
> gtkutil.h:196: error: syntax error before '*' token
> gtkutil.h:204: error: syntax error before 'Pixmap'
> xmenu.c: In function 'syms_of_xmenu':
> xmenu.c:3797: error: 'Smenu_bar_open' undeclared (first use in this
> function)
> xmenu.c:3797: error: (Each undeclared identifier is reported only once
> xmenu.c:3797: error: for each function it appears in.)
> make[2]: *** [xmenu.o] Error 1
> make[2]: Leaving directory `/home/krishndh/stub/emacs-build/src'
> make[1]: *** [bootstrap-build] Error 2
> make[1]: Leaving directory `/home/krishndh/stub/emacs-build'
> make: *** [bootstrap] Error 2
>
> with best regards,
> dk
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: GNU Emacs --with-gtk
2006-11-30 10:20 ` David Kastrup
@ 2006-11-30 12:50 ` dhruva
0 siblings, 0 replies; 4+ messages in thread
From: dhruva @ 2006-11-30 12:50 UTC (permalink / raw)
Cc: Emacs Devel
Hi,
On 11/30/06, David Kastrup <dak@gnu.org> wrote:
> Well, you obviously did not install any development libraries for X11,
> libpng, libjpeg, libtiff and probably a few other things.
That was the missing link, after installing the above libs, things
work fine as I was usual... Thanks.
-dk
--
dhruva (dk)
Contents reflect my personal views only!
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2006-11-30 12:50 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-30 9:22 GNU Emacs --with-gtk dhruva
2006-11-30 10:20 ` David Kastrup
2006-11-30 12:50 ` dhruva
2006-11-30 10:34 ` Jan Djärv
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.