Trying to compile a panel plugin

Jeroen van Aart jeroen at mompl.net
Fri May 31 20:58:32 CEST 2013


On 05/30/2013 05:05 PM, Matthew Brush wrote:
> If you put the full code online I can double-check for you. It's hard to
> debug unknown code through a little peep-hole :)

At some point when the mess has been cleaned up. But could someone at 
least cast some insight on what I am doing wrong? I don't think this 
problem necessitates debugging of the full source. It's merely an issue 
of incorrect Makefile.am, configure.ac and the way I include files, or 
something similar. As far as I can see.

Are the files I attached in my original email correct? They're not big 
files, I just need to know (I pasted them below just in case :-). 
Documentation regarding this is sparse and besides the xfce site invites 
one to ask forums like this instead.

Be that as it may I posted the question on stackoverflow but no response 
at all unfortunately.

Thanks,
Jeroen


***************
* Makefile.am *
***************

SUBDIRS =								\
	panel-plugin								\
	po

AUTOMAKE_OPTIONS =							\
	1.8								\
	dist-bzip2


*****************
* configure.ac  *
*****************

dnl Version information
m4_define([my_example_version_major], [1])
m4_define([my_example_version_minor], [3])
m4_define([my_example_version_micro], [0])
m4_define([my_example_version], 
[my_example_version_major().my_example_version_minor().my_example_version_micro()])

dnl Initialize autoconf
AC_COPYRIGHT([Copyright (c) 2013
         Jeroen van Aart <bug at example.org>])
AC_INIT([xfce4-my_example-plugin], [my_example_version()], 
[bug at example.org])
AC_PREREQ([2.50])

dnl Initialize automake
AM_INIT_AUTOMAKE([1.8 dist-bzip2 tar-ustar])
AM_CONFIG_HEADER([config.h])
AM_MAINTAINER_MODE()

dnl Check for basic programs
AC_PROG_CC()
AC_PROG_LD()
AC_PROG_INSTALL()
AC_PROG_INTLTOOL()
AC_PROG_LIBTOOL()
AM_PROG_CC_C_O()

dnl Check for standard headers
AC_HEADER_STDC()
AC_CHECK_HEADERS([string.h fcntl.h errno.h sys/socket.h netdb.h \
                   netinet/in.h sys/types.h time.h unistd.h stdio.h \
                   sys/stat.h stddef.h stdlib.h netinet/in.h])

dnl Check for i18n support
XDT_I18N([])

dnl Check for required packages
XDT_CHECK_PACKAGE([GTK], [gtk+-2.0], [2.6.0])
XDT_CHECK_PACKAGE([GTHREAD], [gthread-2.0], [2.6.0])
XDT_CHECK_PACKAGE([LIBXFCE4UTIL], [libxfce4util-1.0], [4.3.90.2])
XDT_CHECK_PACKAGE([LIBXFCEGUI4], [libxfcegui4-1.0], [4.3.90.2])
XDT_CHECK_PACKAGE([LIBXFCE4PANEL], [libxfce4panel-1.0], [4.3.99.1])

dnl Check for debugging support
XDT_FEATURE_DEBUG()

AC_OUTPUT([
Makefile
po/Makefile.in
panel-plugin/Makefile
])


****************************
* panel-plugin/Makefile.am *
****************************

INCLUDES =								\
         -I$(top_srcdir)                                                 \
         -DTHEMESDIR=\"$(datadir)/xfce4/my_example/icons\"			\
         -DPACKAGE_LOCALE_DIR=\"$(localedir)\"                           \
         -DG_LOG_DOMAIN=\"my_example\"					

plugin_PROGRAMS =							\
         xfce4-my_example-plugin

plugindir = $(libexecdir)/xfce4/panel-plugins

xfce4_my_example_plugin_SOURCES = 
      	\
         my_example_dat.h 
      \
         my_example_func.h 
      \
         my_example_images.h							\
         my_example_applet.c 
       	\
         my_example.c 
       	\
	my_example_processdata.c						\
	my_example_menu.c							

xfce4_my_example_plugin_CFLAGS = 
      	\
         $(LIBXFCE4PANEL_CFLAGS)                                        	\
         $(LIBXFCEGUI4_CFLAGS)                                          	\
         $(LIBXFCE4UTIL_CFLAGS)                                         	\
         $(GTK_CFLAGS)                                                  	

xfce4_my_example_plugin_LDADD = 
      	\
         $(LIBXFCE4PANEL_LIBS)                                          	\
         $(LIBXFCE4UTIL_LIBS)                                           	\
         $(LIBXFCEGUI4_LIBS)                                            	\
         $(GTK_LIBS)                                                    	

desktopdir = $(datadir)/xfce4/panel-plugins

desktop_DATA =                                                          \
         my_example.desktop

@INTLTOOL_DESKTOP_RULE@

EXTRA_DIST =                                                            \
         my_example.desktop.in

CLEANFILES =                                                            \
         $(desktop_DATA)

# vi:set ts=8 sw=8 noet ai nocindent syntax=automake:

-- 
Earthquake Magnitude: 4.8
Date: Friday, May 31, 2013 14:45:48 UTC
Location: Fiji region
Latitude: -21.8599; Longitude: -176.1165
Depth: 115.00 km




More information about the Xfce4-dev mailing list