Re: A few new applets



>the libraries should be installed (libpanel_applet) .. and now the two
>relevant header files should be installed as well (that is
>applet-widget.h and applet-lib.h) ... so it should be in theory possible
>to do all this outside of the gnome-core tree ... if and how well this
>will work, I have no clue as I haven't tried it (I might have missed
>something, but I think that's all one needs) It might be nice to build a
>sample makfile andput it in the APPLET_WRITING tutorial
>
>also the APPLET_WRITING file should be put on the webpage I guess ...
>should I move it to gnome-devel? I would say that's a better place for it.

I tried compiling an applet outside of gnoem-core, and I came across an error
I read about before, But can't remember the solution. When I run make I get:

**** output ****
gcc -Wall `gtk-config --cflags` "-I/usr/include -DNEED_GNOMESUPPORT_H -I/usr/lib/gnome-libs/include -I/usr/lib/glib/include -I/usr/X11R6/include" -c main.c
In file included from /usr/include/libgnome/libgnome.h:11,
                 from /usr/include/gnome.h:10,
                 from gqmpeg.h:21,
                 from main.c:8:
/usr/include/libgnome/gnome-parse.h:24: argp.h: No such file or directory
make: *** [main.o] Error 1
**** end output ****

This is my makefile so far:

**** start of Makefile ****
include /usr/lib/gnomeConf.sh

GTK_INCLUDE = `gtk-config --cflags`
GTK_LIB = `gtk-config --libs`
CFLAGS = $(GTK_INCLUDE) $(GNOME_INCLUDEDIR)
LDFLAGS = $(GTK_LIB) $(GNOMEUI_LIBS)
CC = gcc -Wall $(CFLAGS)

OBJS = main.o playlist.o playerio.o display.o config.o gqmpegrc.o filedlg.o fileops.o pixmapinit.o globals.o

gqmpeg_applet: $(OBJS)
	$(CC) $(OBJS) -o gqmpeg_applet $(LDFLAGS)

main.o: main.c gqmpeg.h
	$(CC) -c main.c
playlist.o: playlist.c gqmpeg.h
	$(CC) -c playlist.c
playerio.o: playerio.c gqmpeg.h
	$(CC) -c playerio.c
display.o: display.c gqmpeg.h
	$(CC) -c display.c
config.o: config.c gqmpeg.h
	$(CC) -c config.c
gqmpegrc.o: gqmpegrc.c gqmpeg.h
	$(CC) -c gqmpegrc.c
filedlg.o: filedlg.c gqmpeg.h
	$(CC) -c filedlg.c
fileops.o: fileops.c gqmpeg.h
	$(CC) -c fileops.c
pixmapinit.o: pixmapinit.c gqmpeg.h
	$(CC) -c pixmapinit.c
globals.o: globals.c gqmpeg.h
	$(CC) -c globals.c

clean:
	rm -f *.o *~ gqmpeg_applet core
**** end of Makefile ****

And my header includes:
****
#include <dirent.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
#include <sys/param.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <sys/types.h>
#include <sys/wait.h>

#include <gnome.h>
#include "applet-lib.h"
#include "applet-widget.h"
****

Anyone know what I am doing wrong?
Or where do I get argp.h ?
John

--
John Ellis <gqview@geocities.com>
http://www.geocities.com/SiliconValley/Haven/5235/



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