Hello,
When trying to compile libggi & libgii (a CVS version from Wednesday IIRC)
--with-kii I have a few problems.
Up to now, I've been obliged to apply a few fixes to "kii.h" (see diff)
and I'm wondering if there are correct. And as <kgi/system.h>
should be included by kii.h, I now have the following error:
/bin/sh ../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../../input/kii
-I../.. -I../../../include -I../../include -I /usr/local/kgiwip/build/include
-D_REENTRANT -D_THREAD_SAFE -DDEBUG -g -Wall -c ../../../input/kii/input.c
gcc -DHAVE_CONFIG_H -I. -I../../../input/kii -I../.. -I../../../include
-I../../include -I /usr/local/kgiwip/build/include -D_REENTRANT -D_THREAD_SAFE -DDEBUG
-g -Wall -Wp,-MD,.deps/input.pp -c ../../../input/kii/input.c -fPIC -DPIC -o input.lo
In file included from /usr/local/kgiwip/build/include/kii/kii.h:36,
from ../../../input/kii/input.c:33:
/usr/local/kgiwip/build/include/kgi/system.h:63: #error HOST_OS or HOST_CPU not defined
/usr/local/kgiwip/build/include/kgi/system.h:100: #error check this, no type
definitions included?
/usr/local/kgiwip/build/include/kgi/system.h:112: #error kgi_udelay not implemented
/usr/local/kgiwip/build/include/kgi/system.h:120: #error kgi_nanosleep not implemented
make: *** [input.lo] Error 1
However, it seems to me kgi/system.h is necessary for the
"KGI_SYS_DECLARE_INTEGRAL_TYPES(kii)"... I must be doing something wrong,
for sure. But well, what?
Rodolphe
PS:
Concerning libggi, I get the following output (but well, it may be a
little early to worry due to the gii error):
# /usr/local/bin/monitest
LibGG: unable to open lib: /usr/local/lib/ggi/input/kii.so: cannot open shared object
file: No such file or directory
LibGGI: failed to load input: kii
LibGGI: Failed to set mode: [P8/8]
unable to set any mode at all, exiting!
identified to mapper graphic-0.9.0-0
Trying mode []
Suggested mode [P8/8]
#
and an error in kern.log: kgim_display_check_mode:401:E:Unknown command
fdeffff8 from monitor.
Index: kii.h
===================================================================
RCS file: /cvsroot/kgi-wip/kgi-0.9/kgi/include/kii/kii.h,v
retrieving revision 1.3
diff -u -r1.3 kii.h
--- kii.h 15 Oct 2002 00:02:43 -0000 1.3
+++ kii.h 29 Nov 2002 22:03:33 -0000
@@ -33,6 +33,8 @@
#define KII_REVISION "$Revision: 1.3 $"
+#include <kgi/system.h>
+
KGI_SYS_DECLARE_INTEGRAL_TYPES(kii)
typedef struct { kii_s_t x,y; } kii_scoord_t;
@@ -503,6 +505,8 @@
#else /* #ifdef __KERNEL__ */
+#include <stdio.h> /* for FILE */
+
typedef struct kii_context_s kii_context_t;
extern kii_error_t kiiInit(kii_context_t **ctx);
@@ -521,9 +525,6 @@
extern const kii_event_t *kiiNextEvent(kii_context_t *ctx);
extern void kiiPrintEvent(kii_context_t *ctx, FILE *f, const kii_event_t *ev);
-
-
-extern kii_keymap_t default_kii_keymap; /* keymap.c */
#endif /* #ifdef __KERNEL__ */
Index: kgi.h
===================================================================
RCS file: /cvsroot/kgi-wip/kgi-0.9/kgi/include/kgi/kgi.h,v
retrieving revision 1.7
diff -u -r1.7 kgi.h
--- kgi.h 15 Oct 2002 00:02:43 -0000 1.7
+++ kgi.h 29 Nov 2002 22:05:30 -0000
@@ -48,6 +48,8 @@
#ifndef _kgi_kgi_h
#define _kgi_kgi_h
+#include <kgi/system.h>
+
KGI_SYS_DECLARE_INTEGRAL_TYPES(kgi)
typedef void *kgi_wait_queue_t;