Xfce Forum

Sub domains
 

You are not logged in.

#1 2014-08-18 18:34:43

lintek
Member
Registered: 2013-02-07
Posts: 24

[Solved] Built xfce4-weather 0.8.3-2 but the applet is not listed

Built xfce4-weather 0.8.3-2 but the applet on a PC installed with CentOS 6.5/Xfce 4.8 but the applet is not listed as an available applet to add to the panel. I restarted the panel, restarted the desktop, and rebooted the PC. No success with either attempted solution. The applet is not listed. There were no errors in the .configure, make, or make install steps. Where can I look for determining what the problem is?

Offline

#2 2014-08-18 19:12:04

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,948

Re: [Solved] Built xfce4-weather 0.8.3-2 but the applet is not listed

Most probably the library file isn't in an accessible location (library search path) for your system.

Which configure parameters did you use?

Search for libweather.so and see if its in the same location as the other panel plugins. If not, you'll have to specify a different --libdir configuration parameter, or add the new location to your library path.


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 2014-08-18 19:48:42

lintek
Member
Registered: 2013-02-07
Posts: 24

Re: [Solved] Built xfce4-weather 0.8.3-2 but the applet is not listed

I did the follwoing steps and now it appears in the list.

make uninstall
make clean
configure --prefix=/usr
make
make install

I attempt to add the applet but I received a popup windows error. The .xsession-errors log reports the following.

(process:25670): xfce4-panel-wrapper-CRITICAL **: Wrapper weather-3: Failed to open plugin module "/usr/lib/xfce4/panel/plugins/libweather.so": /usr/lib/xfce4/panel/plugins/libweather.so: undefined symbol: gdk_window_get_screen.

Where do I go from here? Thanks

Offline

#4 2014-08-18 20:10:27

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,948

Re: [Solved] Built xfce4-weather 0.8.3-2 but the applet is not listed

Can you post back your configure log?

Also, what does the following say:

ldd /usr/lib/xfce4/panel/plugins/libweather.so

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

#5 2014-08-18 20:36:52

lintek
Member
Registered: 2013-02-07
Posts: 24

Re: [Solved] Built xfce4-weather 0.8.3-2 but the applet is not listed

# ldd /usr/lib/xfce4/panel/plugins/libweather.so
    linux-gate.so.1 =>  (0x00336000)
    libxfce4panel-1.0.so.3 => /usr/lib/libxfce4panel-1.0.so.3 (0x00f76000)
    libxfce4ui-1.so.0 => /usr/lib/libxfce4ui-1.so.0 (0x0060b000)
    libxfce4util.so.4 => /usr/lib/libxfce4util.so.4 (0x00951000)
    libgtk-x11-2.0.so.0 => /usr/lib/libgtk-x11-2.0.so.0 (0x00f89000)
    libgdk-x11-2.0.so.0 => /usr/lib/libgdk-x11-2.0.so.0 (0x00d8e000)
    libatk-1.0.so.0 => /usr/lib/libatk-1.0.so.0 (0x003ff000)
    libgio-2.0.so.0 => /lib/libgio-2.0.so.0 (0x0041e000)
    libpangoft2-1.0.so.0 => /usr/lib/libpangoft2-1.0.so.0 (0x00eeb000)
    libgdk_pixbuf-2.0.so.0 => /usr/lib/libgdk_pixbuf-2.0.so.0 (0x00b87000)
    libpangocairo-1.0.so.0 => /usr/lib/libpangocairo-1.0.so.0 (0x005cf000)
    libcairo.so.2 => /usr/lib/libcairo.so.2 (0x00241000)
    libpango-1.0.so.0 => /usr/lib/libpango-1.0.so.0 (0x00b20000)
    libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x00337000)
    libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0x001b3000)
    libgobject-2.0.so.0 => /lib/libgobject-2.0.so.0 (0x002c1000)
    libgmodule-2.0.so.0 => /lib/libgmodule-2.0.so.0 (0x00849000)
    libgthread-2.0.so.0 => /lib/libgthread-2.0.so.0 (0x00660000)
    librt.so.1 => /lib/librt.so.1 (0x00e77000)
    libglib-2.0.so.0 => /lib/libglib-2.0.so.0 (0x006c8000)
    libxml2.so.2 => /usr/lib/libxml2.so.2 (0x00961000)
    libresolv.so.2 => /lib/libresolv.so.2 (0x00569000)
    libpthread.so.0 => /lib/libpthread.so.0 (0x001e8000)
    libc.so.6 => /lib/libc.so.6 (0x0447f000)
    libm.so.6 => /lib/libm.so.6 (0x003cf000)
    libSM.so.6 => /usr/lib/libSM.so.6 (0x00203000)
    libICE.so.6 => /usr/lib/libICE.so.6 (0x0030d000)
    libX11.so.6 => /usr/lib/libX11.so.6 (0x0686b000)
    libstartup-notification-1.so.0 => /usr/lib/libstartup-notification-1.so.0 (0x00e5e000)
    libXfixes.so.3 => /usr/lib/libXfixes.so.3 (0x0020b000)
    libXext.so.6 => /usr/lib/libXext.so.6 (0x00528000)
    libXrender.so.1 => /usr/lib/libXrender.so.1 (0x007d6000)
    libXinerama.so.1 => /usr/lib/libXinerama.so.1 (0x00638000)
    libXi.so.6 => /usr/lib/libXi.so.6 (0x00210000)
    libXrandr.so.2 => /usr/lib/libXrandr.so.2 (0x00327000)
    libXcursor.so.1 => /usr/lib/libXcursor.so.1 (0x0053a000)
    libXcomposite.so.1 => /usr/lib/libXcomposite.so.1 (0x00beb000)
    libXdamage.so.1 => /usr/lib/libXdamage.so.1 (0x00331000)
    libdl.so.2 => /lib/libdl.so.2 (0x003f9000)
    libz.so.1 => /lib/libz.so.1 (0x00544000)
    libselinux.so.1 => /lib/libselinux.so.1 (0x00583000)
    libpng12.so.0 => /usr/lib/libpng12.so.0 (0x005a2000)
    libpixman-1.so.0 => /usr/lib/libpixman-1.so.0 (0x0084d000)
    libexpat.so.1 => /lib/libexpat.so.1 (0x005db000)
    /lib/ld-linux.so.2 (0x00221000)
    libuuid.so.1 => /lib/libuuid.so.1 (0x00558000)
    libxcb.so.1 => /usr/lib/libxcb.so.1 (0x0063b000)
    libxcb-aux.so.0 => /usr/lib/libxcb-aux.so.0 (0x0055d000)
    libxcb-event.so.1 => /usr/lib/libxcb-event.so.1 (0x00560000)
    libxcb-atom.so.1 => /usr/lib/libxcb-atom.so.1 (0x00563000)
    libXau.so.6 => /usr/lib/libXau.so.6 (0x005ca000)

Offline

#6 2014-08-18 20:39:26

lintek
Member
Registered: 2013-02-07
Posts: 24

Re: [Solved] Built xfce4-weather 0.8.3-2 but the applet is not listed

That config.log is over 1000 lines long. Do you really want me to post that entire file? Maybe I should grep something, yes?

Offline

#7 2014-08-18 21:53:50

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,948

Re: [Solved] Built xfce4-weather 0.8.3-2 but the applet is not listed

Its okay. I just threw together a Centos 6.5 minimal install with Xfce and tried to build the weather plugin myself. I am getting the same error. I'm guessing its either a gtk or glib bug/error. You might consider creating a bug report for it to see if the plugin author has some ideas.


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

#8 2014-08-18 21:56:29

lintek
Member
Registered: 2013-02-07
Posts: 24

Re: [Solved] Built xfce4-weather 0.8.3-2 but the applet is not listed

Interesting and thanks. BTW, do you think moving back to a 0.7.# version might work?

Offline

#9 2014-08-18 22:06:31

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,948

Re: [Solved] Built xfce4-weather 0.8.3-2 but the applet is not listed

lintek wrote:

Interesting and thanks. BTW, do you think moving back to a 0.7.# version might work?

I don't think the older plugins work because of the changing sources (weather channel started charging to access their feeds so the plugin was updated). I believe this happened a couple (?) of times. Plus, there is going to have to be another update shortly to deal with a changing api again.


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 2014-08-18 23:01:02

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,948

Re: [Solved] Built xfce4-weather 0.8.3-2 but the applet is not listed

Okay, figured it out, You need to apply this commit.

I just edited /panel-plugin/weather-summary.c and replaced:

screen = GDK_SCREEN(gdk_window_get_screen(window));

...with:

screen = GDK_SCREEN(gtk_widget_get_screen(GTK_WIDGET(data->iconimage)));

...and rebuilt the plugin. It works now.


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

#11 2014-08-19 03:50:54

lintek
Member
Registered: 2013-02-07
Posts: 24

Re: [Solved] Built xfce4-weather 0.8.3-2 but the applet is not listed

Not as fortunate as you. I'm still missing something. When I tried to add the applet to the panel, I got the message below.

% tail -f .xsession-errors

**
weather:ERROR:weather-icon.c:132:get_icon: assertion failed: (theme != NULL)
xfce4-panel-Message: Plugin weather-3 has been automatically restarted after crash.
**
weather:ERROR:weather-icon.c:132:get_icon: assertion failed: (theme != NULL)

Offline

#12 2014-08-19 04:35:08

lintek
Member
Registered: 2013-02-07
Posts: 24

Re: [Solved] Built xfce4-weather 0.8.3-2 but the applet is not listed

It is working. I'm tried and I need to go to bed. I'll provide the details tomorrow. But thanks for your help. You reply did work.

Offline

#13 2014-08-19 10:32:14

lintek
Member
Registered: 2013-02-07
Posts: 24

Re: [Solved] Built xfce4-weather 0.8.3-2 but the applet is not listed

The link you provided corrected everything. But as I posted, I still received an error when I attempted to load the applet to the panel. I discovered that the directory /usr/share/xfce4/weather (and all sub-directories) had the wrong access permissions. They were set to 774. So I chmod 755 the weather directory and all the sub-dirs and made sure all files were 644. After that, everything worked. Strange too. As you mentioned, in the sessions log, a message is being displayed that the weather service being used will go away and the app will stop working after a month or so. Bummer.

(wrapper:28988): weather-WARNING **: Met.no LocationforecastLTS API states that this version of the webservice is deprecated, and the plugin needs to be adapted to use a newer version, or it will stop working within a few month. Please file a bug on

Offline

#14 2014-08-19 15:34:09

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,948

Re: [Solved] Built xfce4-weather 0.8.3-2 but the applet is not listed

Yes, and the git version won't compile because the libsoup2 version in Centos 6.x is too old.

A while back, when we were having problems with the weather plugin, I wrote a script and attached it to the genmon plugin to display weather information. Its documented in this thread. I still use this script/plugin in lieu of the weather applet.

You can compile the xfce4-genmon-plugin in centos and use that script when the weather plugin no longer works in centos 6. The only caveat is that you have to uninstall the xfce4-dev-tools package from epel and build it from source (it was pretty simple to do).


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

#15 2014-08-19 17:07:42

lintek
Member
Registered: 2013-02-07
Posts: 24

Re: [Solved] Built xfce4-weather 0.8.3-2 but the applet is not listed

Wow! That is sweet. Thanks.

Offline

Board footer

Powered by FluxBB