Xfce Forum

Sub domains
 

You are not logged in.

#1 2018-02-10 16:31:12

wim
Member
From: Belgium
Registered: 2018-02-05
Posts: 15
Website

Compile Trouble

Hi I'm having a issue to compile my panel plugin

fatal error: libxfce4panel/xfce-hvbox.h:

I can compile the calculator plugin so i know i have the file
probably some make issue .but can't find it.
my code is on github https://github.com/wimstockman/xfce4-Ti … plugin.git

if someone could take a look would be great
Thx
Wim

Offline

#2 2018-02-10 17:27:26

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,486

Re: Compile Trouble

Can you post more than just the one line? Perhaps the full compile output.

Also what version of xfce4-panel are you compiling against?


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#3 2018-02-10 20:52:54

wim
Member
From: Belgium
Registered: 2018-02-05
Posts: 15
Website

Re: Compile Trouble

[wim@Toshi xfce4-TileRole-plugin]$ make
make  all-recursive
make[1]: Map '/home/wim/xfce4-TileRole-plugin' wordt binnengegaan
Making all in icons
make[2]: Map '/home/wim/xfce4-TileRole-plugin/icons' wordt binnengegaan
Making all in 48x48
make[3]: Map '/home/wim/xfce4-TileRole-plugin/icons/48x48' wordt binnengegaan
make[3]: Er hoeft niets gedaan te worden voor 'all'.
make[3]: Map '/home/wim/xfce4-TileRole-plugin/icons/48x48' wordt verlaten
Making all in scalable
make[3]: Map '/home/wim/xfce4-TileRole-plugin/icons/scalable' wordt binnengegaan
make[3]: Er hoeft niets gedaan te worden voor 'all'.
make[3]: Map '/home/wim/xfce4-TileRole-plugin/icons/scalable' wordt verlaten
make[3]: Map '/home/wim/xfce4-TileRole-plugin/icons' wordt binnengegaan
make[3]: Er hoeft niets gedaan te worden voor 'all-am'.
make[3]: Map '/home/wim/xfce4-TileRole-plugin/icons' wordt verlaten
make[2]: Map '/home/wim/xfce4-TileRole-plugin/icons' wordt verlaten
Making all in panel-plugin
make[2]: Map '/home/wim/xfce4-TileRole-plugin/panel-plugin' wordt binnengegaan
  CC       xfce4_TileRole_plugin-TileRole.o
TileRole.c:17:10: fatale fout: libxfce4panel/xfce-hvbox.h: Bestand of map bestaat niet
 #include <libxfce4panel/xfce-hvbox.h>
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilatie is beëindigd.
make[2]: *** [Makefile:559: xfce4_TileRole_plugin-TileRole.o] Fout 1
make[2]: Map '/home/wim/xfce4-TileRole-plugin/panel-plugin' wordt verlaten
make[1]: *** [Makefile:462: all-recursive] Fout 1
make[1]: Map '/home/wim/xfce4-TileRole-plugin' wordt verlaten
make: *** [Makefile:394: all] Fout 2
[wim@Toshi xfce4-TileRole-plugin]$

ToZ: added code tags

Last edited by ToZ (2018-02-10 22:05:06)

Offline

#4 2018-02-10 20:54:28

wim
Member
From: Belgium
Registered: 2018-02-05
Posts: 15
Website

Re: Compile Trouble

xfce4 version 4.12

Offline

#5 2018-02-10 22:04:28

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,486

Re: Compile Trouble

If you don't mind, can you prepend "LC_ALL=C" to all of your commands if you are going to post them so that the output is posted in English. For example:

LC_ALL=C make

Also, can you put all output in code blocks? I've edited your post above to include them. It makes reading the output much better.

Based on google translate, you get:

TileRole.c: 17: 10: fatal error: libxfce4panel/xfce-hvbox.h: File or folder does not exist
#include <libxfce4panel/xfce-hvbox.h>

So the compiler can't find the xfce4-panel development files. Make sure you have them installed and that the compiler can find them.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#6 2018-02-10 22:24:40

wim
Member
From: Belgium
Registered: 2018-02-05
Posts: 15
Website

Re: Compile Trouble

Yes I have them installed, and I can compile the xfce4-sample-plugin/ and the xfce4-calculator-plugin from the git
I took xfce4-sample-plugin as base template for my plugin

[wim@Toshi xfce4-TileRole-plugin]$ LC_ALL=C make
make  all-recursive
make[1]: Entering directory '/home/wim/xfce4-TileRole-plugin'
Making all in icons
make[2]: Entering directory '/home/wim/xfce4-TileRole-plugin/icons'
Making all in 48x48
make[3]: Entering directory '/home/wim/xfce4-TileRole-plugin/icons/48x48'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/home/wim/xfce4-TileRole-plugin/icons/48x48'
Making all in scalable
make[3]: Entering directory '/home/wim/xfce4-TileRole-plugin/icons/scalable'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/home/wim/xfce4-TileRole-plugin/icons/scalable'
make[3]: Entering directory '/home/wim/xfce4-TileRole-plugin/icons'
make[3]: Nothing to be done for 'all-am'.
make[3]: Leaving directory '/home/wim/xfce4-TileRole-plugin/icons'
make[2]: Leaving directory '/home/wim/xfce4-TileRole-plugin/icons'
Making all in panel-plugin
make[2]: Entering directory '/home/wim/xfce4-TileRole-plugin/panel-plugin'
  CC       xfce4_TileRole_plugin-TileRole.o
TileRole.c:17:10: fatal error: libxfce4panel/xfce-hvbox.h: No such file or directory
 #include <libxfce4panel/xfce-hvbox.h>
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [Makefile:538: xfce4_TileRole_plugin-TileRole.o] Error 1
make[2]: Leaving directory '/home/wim/xfce4-TileRole-plugin/panel-plugin'
make[1]: *** [Makefile:462: all-recursive] Error 1
make[1]: Leaving directory '/home/wim/xfce4-TileRole-plugin'
make: *** [Makefile:394: all] Error 2
[wim@Toshi xfce4-TileRole-plugin]$ cd xfce4-TileRole-plugin/

Offline

#7 2018-02-10 22:26:08

wim
Member
From: Belgium
Registered: 2018-02-05
Posts: 15
Website

Re: Compile Trouble

Offline

#8 2018-02-10 22:42:45

wim
Member
From: Belgium
Registered: 2018-02-05
Posts: 15
Website

Re: Compile Trouble

EUREKA!

apparently xfce4-sample-plugin uses libxfce4panel-2.0 in the makefile and the xfce4-calculator-plugin uses libxfce4panel-1.0
changed it to uses libxfce4panel-1.0 and it finally compiled :-)

Offline

#9 2018-02-10 22:55:21

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,486

Re: Compile Trouble

The xfce4-sample-plugin has been upgraded to GTK3 and uses the 4.13x development version of xfce4-panel (libxfce4-panel-2.0). The calculator plugin has not been upgraded yet and requires the GTK2 version (libxfce4-panel-1.0). Since you are using xfce4-panel 4.12, you don't have the newer development files installed to support libxfce4panel-2.0.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#10 2018-02-11 05:47:20

wim
Member
From: Belgium
Registered: 2018-02-05
Posts: 15
Website

Re: Compile Trouble

I have both versions of libxfce4panel-2 and libxfce4panel-1
Installed. So i ll Port my plugin to gtk3. I m only starting. So won't be to much of work. Thx for the clarification.

Offline

#11 2018-02-14 23:48:51

wim
Member
From: Belgium
Registered: 2018-02-05
Posts: 15
Website

Re: Compile Trouble

First working plugin

https://github.com/wimstockman/xfce4-sample-plugin.git

it is still in very early development stage

Offline

#12 2018-02-24 15:57:42

wim
Member
From: Belgium
Registered: 2018-02-05
Posts: 15
Website

Re: Compile Trouble

I have cleaned my code out.
but i have one little issue:

 gdk_screen_get_active_window’ is deprecated [-Wdeprecated-declarations]
 win = gdk_screen_get_active_window(gdk_screen_get_default());

how can I do it the modern way?

my full code is : https://github.com/wimstockman/xfce4-sample-plugin.git

thx

Offline

#13 2018-02-24 21:08:26

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,486

Re: Compile Trouble

Probably best to ask at the xfce4-dev mailing list for developer input.

Here is a stackoverflow thread about the issue and here is an xfdesktop commit that dealt with GdkScreen deprecations. Looks like it reverted to using libwnck.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#14 2018-02-24 21:29:57

wim
Member
From: Belgium
Registered: 2018-02-05
Posts: 15
Website

Re: Compile Trouble

Thx for the quick reply.
The stack overflow solution I tried but it isn't always accurate.
I will look into the wnck solution.
Thx for pointing me to a direction
Kind regards

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.015 seconds, 10 queries executed - Memory usage: 598.97 KiB (Peak: 615.81 KiB) ]