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

Re: libctk3-dev examples don't compile



Hugo Vanwoerkom wrote:
Hi,

libctk3 says: "Console Tool Kit is a toolkit for writing text-based GUIs. The syntax is almost the same as GTK+. It provides mouse support on the console through gpm". Sounds promising.

libctk3-dev comes with examples.
They don't compile because the includes point to the wrong place.

After jiggling that around they still don't compile because of the presence of:

G_BEGIN_DECLS

at the start of header files.

libctk3, libctk3-dev, libctk-dev have no bugs filed against them.

Has anybody been successful with the examples? It's just a directory with a Makefile and nothing else. The Makefile points LIBS to the wrong place. After fixing that G_BEGIN_DECLS remains...


I ended up changing the Makefile:

--- Makefile.orig       2006-05-06 10:09:26.000000000 -0500
+++ Makefile    2006-05-06 10:09:55.000000000 -0500
@@ -1,7 +1,8 @@
 SRCS    := assert.c clist.c labelwrap.c lots.c om.c table.c
 TARGETS := $(SRCS:%.c=%)
 CFLAGS += -I/usr/lib/glib/include
-LIBS    := ../ctk/.libs/libctk.a -larr -lgpm -lglib
+#LIBS    := ../ctk/.libs/libctk.a -larr -lgpm -lglib
+LIBS    := -lctk -larr -lgpm -lglib
 #LIBS    := -lctk

 all:   $(TARGETS)
@@ -10,7 +11,7 @@
        rm -f $(TARGETS)

 %:     %.c
-       $(CC) $(CFLAGS) -o $@ $^ $(LIBS)
+       $(CC) `pkg-config glib-2.0 --libs --cflags` -o $@ $^ $(LIBS)

 %.c:   %.c.gz
        gzip -dc $< >$@

That makes the examples compile, but they don't work: no keys no mouse.


Well, downloading the source from:
http://sourceforge.net/projects/libctk/

that *does* compile immediately without fail.

So something went wrong with building the Debian package (only in stable and old-stable).

H







Reply to: