Help with compiling a panel applet

I’m trying to install the gnome panel applet to monitor the HDAPS on my Thinkpad.
The readme says the following.

(1) Compile the applet using the following command line -

gcc $(pkg-config --cflags --libs libpanelapplet-2.0) -o gnome-hdaps-applet gnome-hdaps-applet.c

(2) Copy the compiled gnome-hdaps-applet file to “/usr/bin/”

(3) Copy the .png files to a new directory “/usr/share/pixmaps/gnome-hdaps-applet/”

(4) Copy the GNOME_HDAPS_StatusApplet.server file to “/usr/lib/bonobo/servers/”

(5) Restart GNOME and you should find the “HDAPS Status” applet in the “Add to Panel” dialog
When I run the compile command I ge tthe following errors:

Package libpanelapplet-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libpanelapplet-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libpanelapplet-2.0' found
gnome-hdaps-applet.c:22:26: error: panel-applet.h: No such file or directory
gnome-hdaps-applet.c:23:21: error: gtk/gtk.h: No such file or directory
gnome-hdaps-applet.c:48: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘timer_func’
gnome-hdaps-applet.c:80: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘gnome_hdaps_applet_fill’
gnome-hdaps-applet.c:102: error: expected declaration specifiers or ‘...’ before string constant
gnome-hdaps-applet.c:103: error: expected declaration specifiers or ‘...’ before ‘PANEL_TYPE_APPLET’
gnome-hdaps-applet.c:104: error: expected declaration specifiers or ‘...’ before string constant
gnome-hdaps-applet.c:105: error: expected declaration specifiers or ‘...’ before string constant
gnome-hdaps-applet.c:106: error: expected declaration specifiers or ‘...’ before ‘gnome_hdaps_applet_fill’
gnome-hdaps-applet.c:107: error: expected declaration specifiers or ‘...’ before ‘(’ token
gnome-hdaps-applet.c:102: warning: data definition has no type or storage class

I’m guessing the package libpanelapplet-2.0 has probably changed name due to a newer version. Where would that package be located so I can check and how would I add the path to the PKG_CONFIG_PATH environment variable?

Hi
You need to install the relevant devel package, in this case
gnome-panel-devel.


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.21-0.1-default
up 7:33, 1 user, load average: 0.28, 0.22, 0.15
GPU GeForce 8600 GTS Silent - Driver Version: 180.51

Thanks for that. I’ll give that a try when I get a chance in the next few days.