You are not logged in.
Pages: 1
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
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
[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
xfce4 version 4.12
Offline
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
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
My source is here:
https://github.com/wimstockman/xfce4-Ti … plugin.git
Offline
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
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
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
First working plugin
https://github.com/wimstockman/xfce4-sample-plugin.git
it is still in very early development stage
Offline
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
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
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
Pages: 1
[ Generated in 0.015 seconds, 10 queries executed - Memory usage: 598.97 KiB (Peak: 615.81 KiB) ]