[Nautilus-list] gnome-db2html2



The instructions in the README (at
nautilus/components/help/converters/gnome-db2html2/README) on how to build
gnome-db2html2 without configuring nautilus do not work for me.  I need to
include the gnome libs, not just the glib libs, and also need not to
include the config.h header file.

These are the errors I get when following the instructions:

$ gcc -o gnome-db2html2 `xml-config --cflags --libs` \
`gnome-config --cflags --libs glib` -Wall -g \
gdb3html.c toc-elements.c sect-elements.c sect-preparse.c
gdb3html.c:3: config.h: No such file or directory
In file included from gdb3html.c:9:
/usr/include/gnome.h:12: gnomesupport.h: No such file or directory
toc-elements.c:2: config.h: No such file or directory
In file included from toc-elements.c:3:
/usr/include/gnome.h:12: gnomesupport.h: No such file or directory
sect-elements.c:1: config.h: No such file or directory
In file included from sect-elements.c:3:
/usr/include/gnome.h:12: gnomesupport.h: No such file or directory
sect-preparse.c:2: config.h: No such file or directory
In file included from sect-preparse.c:4:
/usr/include/gnome.h:12: gnomesupport.h: No such file or directory

I attach a small patch which fixes the problems for me.

Incidentally, should not these source files have license headers in them?

-- 
Richard
Index: components/help/converters/gnome-db2html2/README
===================================================================
RCS file: /cvs/gnome/nautilus/components/help/converters/gnome-db2html2/README,v
retrieving revision 1.3
diff -u -p -u -r1.3 README
--- components/help/converters/gnome-db2html2/README	2000/02/11 22:43:01	1.3
+++ components/help/converters/gnome-db2html2/README	2001/02/16 14:04:12
@@ -7,7 +7,7 @@ For those doc people who want to play wi
 to configure nautilus, you can compile it with the following
 command line:
 
-gcc -o gnome-db2html2 `xml-config --cflags --libs` `gnome-config --cflags --libs glib` -Wall -g gdb3html.c toc-elements.c sect-elements.c sect-preparse.c
+gcc -o gnome-db2html2 `xml-config --cflags --libs` `gnome-config --cflags --libs gnome` -Wall -g gdb3html.c toc-elements.c sect-elements.c sect-preparse.c
 
 You can run it by doing:
 
Index: components/help/converters/gnome-db2html2/gdb3html.c
===================================================================
RCS file: /cvs/gnome/nautilus/components/help/converters/gnome-db2html2/gdb3html.c,v
retrieving revision 1.41
diff -u -p -u -r1.41 gdb3html.c
--- components/help/converters/gnome-db2html2/gdb3html.c	2001/01/02 18:29:27	1.41
+++ components/help/converters/gnome-db2html2/gdb3html.c	2001/02/16 14:04:15
@@ -1,6 +1,8 @@
 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
 
+#ifdef HAVE_CONFIG_H
 #include <config.h>
+#endif
 
 #include "gdb3html.h"
 #include "toc-elements.h"
Index: components/help/converters/gnome-db2html2/sect-elements.c
===================================================================
RCS file: /cvs/gnome/nautilus/components/help/converters/gnome-db2html2/sect-elements.c,v
retrieving revision 1.53
diff -u -p -u -r1.53 sect-elements.c
--- components/help/converters/gnome-db2html2/sect-elements.c	2001/02/11 16:47:41	1.53
+++ components/help/converters/gnome-db2html2/sect-elements.c	2001/02/16 14:04:23
@@ -1,4 +1,8 @@
+
+#ifdef HAVE_CONFIG_H
 #include <config.h>
+#endif
+
 #include "sect-elements.h"
 #include "gnome.h"
 
Index: components/help/converters/gnome-db2html2/sect-preparse.c
===================================================================
RCS file: /cvs/gnome/nautilus/components/help/converters/gnome-db2html2/sect-preparse.c,v
retrieving revision 1.27
diff -u -p -u -r1.27 sect-preparse.c
--- components/help/converters/gnome-db2html2/sect-preparse.c	2001/02/11 16:47:41	1.27
+++ components/help/converters/gnome-db2html2/sect-preparse.c	2001/02/16 14:04:25
@@ -1,5 +1,8 @@
 
+#ifdef HAVE_CONFIG_H
 #include <config.h>
+#endif
+
 #include "sect-elements.h"
 #include "gnome.h"
 
Index: components/help/converters/gnome-db2html2/toc-elements.c
===================================================================
RCS file: /cvs/gnome/nautilus/components/help/converters/gnome-db2html2/toc-elements.c,v
retrieving revision 1.41
diff -u -p -u -r1.41 toc-elements.c
--- components/help/converters/gnome-db2html2/toc-elements.c	2001/02/15 02:19:38	1.41
+++ components/help/converters/gnome-db2html2/toc-elements.c	2001/02/16 14:04:28
@@ -1,5 +1,8 @@
 
+#ifdef HAVE_CONFIG_H
 #include <config.h>
+#endif
+
 #include <gnome.h>
 #include "sect-elements.h"
 #include "toc-elements.h"


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]