Not having been provided with a proper editor by the IT folks, I tried to do a local build and install of Geany. I didn't do any funny stuff, just unpacked the source tarball and ran
./configure --prefix=$HOME/bin/geany make make check make install
All seemed well, but when I try to run Geany for real, I get the output below.
Can anyone make sense of what is going on, and what to do about it?
Thanks in advance
Rob
~/bin/geany/bin> ./geany -v Geany-INFO: Geany 1.24.1, C Geany-INFO: GTK 2.18.9, GLib 2.22.5 Geany-INFO: System data dir: /home/<me>/bin/geany/share/geany Geany-INFO: User config dir: /home/<me>/.config/geany Geany-INFO: System plugin path: /home/<me>/bin/geany/lib/geany Geany-INFO: Added filetype CUDA (58). Geany-INFO: Added filetype Clojure (59). Geany-INFO: Added filetype Cython (60). Geany-INFO: Added filetype Genie (61). Geany-INFO: Added filetype Go (62). Geany-INFO: Added filetype Graphviz (63). Geany-INFO: Added filetype Scala (64).
(geany:7535): Gtk-WARNING **: Could not find the icon 'text-plain'. The 'hicolor' theme was not found either, perhaps you need to install it. You can get a copy from: http://icon-theme.freedesktop.org/releases
(geany:7535): Geany-WARNING **: failed to load icon 'classviewer-var': Icon 'classviewer-var' not present in theme
(geany:7535): Geany-WARNING **: failed to load icon 'classviewer-method': Icon 'classviewer-method' not present in theme ./geany: symbol lookup error: ./geany: undefined symbol: gtk_widget_get_mapped
Hi,
Le 01/09/2014 17:07, Rob van Riel a écrit :
[...]
(geany:7535): Gtk-WARNING **: Could not find the icon 'text-plain'. The 'hicolor' theme was not found either, perhaps you need to install it. You can get a copy from: http://icon-theme.freedesktop.org/releases
(geany:7535): Geany-WARNING **: failed to load icon 'classviewer-var': Icon 'classviewer-var' not present in theme
(geany:7535): Geany-WARNING **: failed to load icon 'classviewer-method': Icon 'classviewer-method' not present in theme
That's weird, it looks like we miss maybe the theme index or something… Could you give us the list of files in $HOME/bin/geany/share/icons/ ?
find $HOME/bin/geany/share/icons/ -type f
./geany: symbol lookup error: ./geany: undefined symbol: gtk_widget_get_mapped
That's even weirder. It looks like you built with GTK >= 2.20 but are running 2.18.9… do you have somewhere a home-built GTK? Could you also paste the configure summary, that should have something like "Using GTK version: 2.20.0"?
Regards, Colomban
Thanks for the quick responses folks. I'd have loved to dig into some of the investigative paths you suggested, but when I got back to my desk this morning, I could no longer reproduce the problem. I re-ran the configure/build/install process (from a trivial script, so no changes there), and Geany is working, although no without some complaints (see below). I'm hesitant to call this solved, since nothing really changed, and the problem might show up again at a later time, but for now, I'm in business.
There still appears to be some icon-related issue though. I get the following stream of messages when starting the program:
(geany:2851): Gtk-WARNING **: Could not find the icon 'text-plain'. The 'hicolor' theme was not found either, perhaps you need to install it. You can get a copy from: http://icon-theme.freedesktop.org/releases
(geany:2851): Geany-WARNING **: failed to load icon 'classviewer-var': Icon 'classviewer-var' not present in theme
(geany:2851): Geany-WARNING **: failed to load icon 'classviewer-method': Icon 'classviewer-method' not present in theme
(geany:2851): Geany-WARNING **: failed to load icon 'classviewer-var': Icon 'classviewer-var' not present in theme
(geany:2851): Geany-WARNING **: failed to load icon 'classviewer-method': Icon 'classviewer-method' not present in theme
(geany:2851): Geany-WARNING **: failed to load icon 'classviewer-var': Icon 'classviewer-var' not present in theme
(geany:2851): Geany-WARNING **: failed to load icon 'classviewer-method': Icon 'classviewer-method' not present in theme
(geany:2851): Gtk-WARNING **: Error loading theme icon 'geany-save-all' for stock: Icon 'geany-save-all' not present in theme
(geany:2851): Gtk-WARNING **: Error loading theme icon 'geany-build' for stock: Icon 'geany-build' not present in theme
As suggested, the output of find bin/geany/share/icons/ -type f
bin/geany/share/icons/hicolor/16x16/actions/geany-build.png bin/geany/share/icons/hicolor/16x16/actions/geany-close-all.png bin/geany/share/icons/hicolor/16x16/actions/geany-save-all.png bin/geany/share/icons/hicolor/16x16/apps/classviewer-class.png bin/geany/share/icons/hicolor/16x16/apps/classviewer-macro.png bin/geany/share/icons/hicolor/16x16/apps/classviewer-member.png bin/geany/share/icons/hicolor/16x16/apps/classviewer-method.png bin/geany/share/icons/hicolor/16x16/apps/classviewer-namespace.png bin/geany/share/icons/hicolor/16x16/apps/classviewer-other.png bin/geany/share/icons/hicolor/16x16/apps/classviewer-struct.png bin/geany/share/icons/hicolor/16x16/apps/classviewer-var.png bin/geany/share/icons/hicolor/16x16/apps/geany.png bin/geany/share/icons/hicolor/24x24/actions/geany-build.png bin/geany/share/icons/hicolor/24x24/actions/geany-close-all.png bin/geany/share/icons/hicolor/24x24/actions/geany-save-all.png bin/geany/share/icons/hicolor/32x32/actions/geany-build.png bin/geany/share/icons/hicolor/32x32/actions/geany-close-all.png bin/geany/share/icons/hicolor/32x32/actions/geany-save-all.png bin/geany/share/icons/hicolor/48x48/actions/geany-build.png bin/geany/share/icons/hicolor/48x48/actions/geany-close-all.png bin/geany/share/icons/hicolor/48x48/actions/geany-save-all.png bin/geany/share/icons/hicolor/48x48/apps/geany.png bin/geany/share/icons/hicolor/scalable/actions/geany-build.svg bin/geany/share/icons/hicolor/scalable/actions/geany-close-all.svg bin/geany/share/icons/hicolor/scalable/actions/geany-save-all.svg bin/geany/share/icons/hicolor/scalable/apps/geany.svg bin/geany/share/icons/hicolor/icon-theme.cache bin/geany/share/icons/Tango/16x16/actions/geany-save-all.png bin/geany/share/icons/Tango/24x24/actions/geany-save-all.png bin/geany/share/icons/Tango/32x32/actions/geany-save-all.png bin/geany/share/icons/Tango/48x48/actions/geany-save-all.png bin/geany/share/icons/Tango/scalable/actions/geany-save-all.svg bin/geany/share/icons/Tango/icon-theme.cache
It does look as though all the icons that trigger warning should be available..
Regards
Rob
On Mon, 1 Sep 2014 17:07:46 +0200 "Rob van Riel" rob_van_riel@xs4all.nl wrote:
Not having been provided with a proper editor by the IT folks, I tried to do a local build and install of Geany. I didn't do any funny stuff, just unpacked the source tarball and ran
./configure --prefix=$HOME/bin/geany make make check make install
[...]
(geany:7535): Gtk-WARNING **: Could not find the icon 'text-plain'. The 'hicolor' theme was not found either, perhaps you need to install it. You can get a copy from: http://icon-theme.freedesktop.org/releases
That's just what it is: your gtk+ icon theme (if any) does not seem to have the 'text-plain' file type icon, and the hicolor theme (recommended by gtk+) is not installed either.
(geany:7535): Geany-WARNING **: failed to load icon 'classviewer-var': Icon 'classviewer-var' not present in theme
(geany:7535): Geany-WARNING **: failed to load icon 'classviewer-method': Icon 'classviewer-method' not present in theme
gtk+ searches for icons in certain directories. Find classviewer-var.png under ~/bin/geany, and add it's directory (or it's parent directory?) to XDG_DATA_DIRS. See [1] for more information, gtk+3 is the same.
./geany: symbol lookup error: ./geany: undefined symbol: gtk_widget_get_mapped
I don't know how you can get this error, except by compiling Geany against gtk+ >= 2.20, and running it with gtk+ < 2.20.
[1] https://developer.gnome.org/gtk2/stable/gtk-running.html