Re: Plugin compilation

Jasper Huijsmans <[email protected]>
Newsgroups gmane.comp.desktop.xfce.goodies.devel
Message-ID <[email protected]>
Hi Hennie,

Hennie Muller schreef:
> Hi all,
> 
> I've got a small problem. I'm new to linux, new to C
> programming, and now I've decided to write a plugin for
> xfce.
> When trying to compile the sample plugin I get the
> following error:
> 
[...]
> `xfce_plugin_check_version'
> collect2: ld returned 1 exit status
> 
> I use the following command to compile:
> gcc -Wall -O2 `pkg-config xfce4-panel-1.0 --libs --cflags`
> sample.c -o sample
> 
> Can someone please point me in the right direction?

A couple of things:

1. There is a new panel for 4.4 that is very different. You may want to 
write your plugin for that instead. It won't be too difficult to port it 
later, though.

2. I'm not sure which sample plugin you use, but it might not be 
entirely up-to-date. Starting with something simple like the minicmd 
plugin might be easier.

3. What is the output of 'pkg-config xfce4-panel-1.0 --libs --cflags'? 
Make sure you have the required development packages installed.

	Jasper
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.