WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: geany "Could not load libvte.so, embedded terminal support disabled"  (Read 4288 times)

Offline GNUser

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 1499
I'd very much like to use geany's embedded terminal, but can't make it work:

Code: [Select]
$ tce-load -wi geany vte
...all goes well...

$ geany -v
Geany-INFO: 17:07:38.808: Geany 1.24.1, en_US.UTF-8
Geany-INFO: 17:07:38.808: GTK 3.24.13, GLib 2.64.0
...
Geany-INFO: 17:07:39.189: Could not load libvte.so, embedded terminal support disabled

vte.tcz seems to be properly loaded:
Code: [Select]
$ ls /usr/local/lib | grep vte
libvte-2.91.so
libvte-2.91.so.0
libvte-2.91.so.0.6000.0
vte-2.91/

Can you please help me troubleshoot? I'm on Pure64 11.1.
« Last Edit: April 02, 2020, 05:29:16 PM by GNUser »

Offline GNUser

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 1499
Re: geany "Could not load libvte.so, embedded terminal support disabled"
« Reply #1 on: April 02, 2020, 05:13:11 PM »
I tried this already, but it doesn't help:
Code: [Select]
$ sudo ln -s /usr/local/lib/libvte-2.91.so.0.6000.0 /usr/local/lib/libvte.so
$ sudo ln -s /usr/local/lib/libvte-2.91.so.0.6000.0 /usr/local/lib/libvte9.so


Offline GNUser

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 1499
Re: geany "Could not load libvte.so, embedded terminal support disabled"
« Reply #2 on: April 02, 2020, 08:18:30 PM »
I loaded  vte-dev.tcz  and compiled latest geany release (1.36) and now virtual terminal works.

However, I end up with a bigger problem: When I try to open a file from within geany (via File -> Open or by pressing on the "open" icon), the file selection box shows only directories and no files at all. Choosing "show hidden files" makes no difference.

Has anyone ever encountered this issue?

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11594
Re: geany "Could not load libvte.so, embedded terminal support disabled"
« Reply #3 on: April 02, 2020, 08:52:55 PM »
Hi GNUser
I'm on TC10 x86 and get this:
Code: [Select]
tc@E310:~/BuildTCZs/ExFAT$ geany -v
Geany-INFO: 20:19:34.155: Geany 1.23, C
Geany-INFO: 20:19:34.156: GTK 2.24.30, GLib 2.60.6
Geany-INFO: 20:19:34.156: System data dir: /usr/local/share/geany
Geany-INFO: 20:19:34.156: User config dir: /home/tc/.config/geany
Geany-INFO: 20:19:34.523: System plugin path: /usr/local/lib/geany
Geany-INFO: 20:19:34.556: Added filetype Scala (55).
Geany-INFO: 20:19:34.557: Added filetype Go (56).
Geany-INFO: 20:19:34.557: Added filetype Genie (57).
Geany-INFO: 20:19:34.557: Added filetype Cython (58).
Geany-INFO: 20:19:34.640: Could not load libvte.so, embedded terminal support disabled
(geany:12588): GLib-GIO-DEBUG: 20:19:34.650: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs?
Geany-INFO: 20:19:34.664: /home/tc/C_Programs/ImageEdge/ImageEdge.c : C (UTF-8)
Geany-INFO: 20:19:34.670: Loaded /usr/local/share/geany/c99.tags (C), 1618 tag(s).
Geany-INFO: 20:19:34.698: /home/tc/BuildTCZs/GPicView/gpicview/src/main-win.c : C (UTF-8)
Geany-INFO: 20:19:34.720: /home/tc/guilib/picmanip/picmanip-0.95/CompilePicmanip : Sh (UTF-8)
Geany-INFO: 20:19:34.727: /home/tc/C_Programs/ImageEdge/CompileImageEdge : Sh (UTF-8)
Geany-INFO: 20:19:34.738: /home/tc/guilib/picmanip/picmanip-0.95/picmanip.c : C (UTF-8)
Geany-INFO: 20:19:34.778: /home/tc/guilib/picmanip/picmanip-0.95/picmanip.h : C (UTF-8)
Geany-INFO: 20:19:34.870: /home/tc/BuildTCZs/ExFAT/build_exfat : Sh (UTF-8)

After installing  vte.tcz  I got this:
Code: [Select]
tc@E310:~/BuildTCZs/ExFAT$ geany -v
Geany-INFO: 20:28:19.987: Geany 1.23, C
Geany-INFO: 20:28:19.987: GTK 2.24.30, GLib 2.60.6
Geany-INFO: 20:28:19.987: System data dir: /usr/local/share/geany
Geany-INFO: 20:28:19.988: User config dir: /home/tc/.config/geany
Geany-INFO: 20:28:20.353: System plugin path: /usr/local/lib/geany
Geany-INFO: 20:28:20.387: Added filetype Scala (55).
Geany-INFO: 20:28:20.387: Added filetype Go (56).
Geany-INFO: 20:28:20.387: Added filetype Genie (57).
Geany-INFO: 20:28:20.387: Added filetype Cython (58).
(geany:13827): GLib-DEBUG: 20:28:20.502: posix_spawn avoided (workdir specified) (fd close requested) (child_setup specified)
(geany:13827): GLib-GIO-DEBUG: 20:28:20.522: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs?
Geany-INFO: 20:28:20.537: /home/tc/C_Programs/ImageEdge/ImageEdge.c : C (UTF-8)
Geany-INFO: 20:28:20.543: Loaded /usr/local/share/geany/c99.tags (C), 1618 tag(s).
Geany-INFO: 20:28:20.572: /home/tc/BuildTCZs/GPicView/gpicview/src/main-win.c : C (UTF-8)
Geany-INFO: 20:28:20.594: /home/tc/guilib/picmanip/picmanip-0.95/CompilePicmanip : Sh (UTF-8)
Geany-INFO: 20:28:20.601: /home/tc/C_Programs/ImageEdge/CompileImageEdge : Sh (UTF-8)
Geany-INFO: 20:28:20.612: /home/tc/guilib/picmanip/picmanip-0.95/picmanip.c : C (UTF-8)
Geany-INFO: 20:28:20.653: /home/tc/guilib/picmanip/picmanip-0.95/picmanip.h : C (UTF-8)
Geany-INFO: 20:28:20.744: /home/tc/BuildTCZs/ExFAT/build_exfat : Sh (UTF-8)

After that a terminal was available in the message box.

Did you try using:
Code: [Select]
--vte-libas mentioned here:
https://www.geany.org/manual/current/#id24

Offline GNUser

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 1499
Re: geany "Could not load libvte.so, embedded terminal support disabled"
« Reply #4 on: April 02, 2020, 10:29:32 PM »
Interesting that it works in TC10 x86 but not in TC11 x86_64.

I missed --vte-lib, thanks for finding it. Alas, it didn't help:

Code: [Select]
$ geany -v --vte-lib /usr/local/lib/libvte-2.91.so.0.6
000.0
Geany-INFO: 22:19:17.917: Geany 1.24.1, en_US.UTF-8
Geany-INFO: 22:19:17.917: GTK 3.24.13, GLib 2.64.0
Geany-INFO: 22:19:17.917: System data dir: /usr/local/share/geany
Geany-INFO: 22:19:17.917: User config dir: /home/bruno/.config/geany
(geany:11938): GLib-GIO-DEBUG: 22:19:17.921: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’

(geany:11938): Gtk-WARNING **: 22:19:18.226: Theme parsing error: geany.css:5:27: The style property GtkWidget:focus-padding is deprecated and shouldn't be used anymore. It will be removed in a future version

(geany:11938): Gtk-WARNING **: 22:19:18.226: Theme parsing error: geany.css:6:30: The style property GtkWidget:focus-line-width is deprecated and shouldn't be used anymore. It will be removed in a future version

(geany:11938): Gtk-WARNING **: 22:19:18.226: Theme parsing error: geany.css:7:28: The style property GtkButton:default-border is deprecated and shouldn't be used anymore. It will be removed in a future version

(geany:11938): Gtk-WARNING **: 22:19:18.226: Theme parsing error: geany.css:8:36: The style property GtkButton:default-outside-border is deprecated and shouldn't be used anymore. It will be removed in a future version

(geany:11938): Gtk-WARNING **: 22:19:18.226: Theme parsing error: geany.css:9:26: The style property GtkButton:inner-border is deprecated and shouldn't be used anymore. It will be removed in a future version
Geany-INFO: 22:19:18.241: System plugin path: /usr/local/lib/geany
Geany-INFO: 22:19:18.260: Added filetype Scala (58).
Geany-INFO: 22:19:18.260: Added filetype Graphviz (59).
Geany-INFO: 22:19:18.260: Added filetype Go (60).
Geany-INFO: 22:19:18.260: Added filetype Genie (61).
Geany-INFO: 22:19:18.260: Added filetype Cython (62).
Geany-INFO: 22:19:18.260: Added filetype Clojure (63).
Geany-INFO: 22:19:18.260: Added filetype CUDA (64).

(geany:11938): Geany-CRITICAL **: 22:19:18.296: invalid VTE library "/usr/local/lib/libvte-2.91.so.0.6000.0": missing symbol "vte_terminal_fork_command"
Geany-INFO: 22:19:18.307: unknown : None (UTF-8)
Geany-INFO: 22:19:18.307: Bad color 'poop'
Geany-INFO: 22:19:18.307: Bad color 'current_line'
(geany:11938): Gtk-DEBUG: 22:19:18.361: State 0 for Scintilla 0x13db190 doesn't match state 128 set via gtk_style_context_set_state ()
Geany-INFO: 22:19:20.532: Quitting...

It seems that the vte API is a messy moving target: https://github.com/geany/geany/issues/336

Oh, well.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11594
Re: geany "Could not load libvte.so, embedded terminal support disabled"
« Reply #5 on: April 02, 2020, 10:44:42 PM »
Hi GNUser
Yeah, well at least that:
Code: [Select]
Could not load libvte.so, embedded terminal support disabledmessage isn't showing up anymore. ;D

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11594
Re: geany "Could not load libvte.so, embedded terminal support disabled"
« Reply #6 on: April 02, 2020, 10:51:08 PM »
Hi GNUser
There's an older version in TC10:
http://tinycorelinux.net/10.x/x86_64/tcz/vte.tcz.info
Maybe it will behave better?

Offline GNUser

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 1499
Re: geany "Could not load libvte.so, embedded terminal support disabled"
« Reply #7 on: April 02, 2020, 11:00:13 PM »
That's a good idea. I loaded it but same nonsense:

Code: [Select]
$ /usr/local/bin/geany -v --vte-lib /usr/local/lib/libvte-2
.91.so.0.5200.1
Geany-INFO: 22:58:31.166: Geany 1.24.1, en_US.UTF-8
Geany-INFO: 22:58:31.166: GTK 3.24.13, GLib 2.64.0
Geany-INFO: 22:58:31.166: System data dir: /usr/local/share/geany
Geany-INFO: 22:58:31.166: User config dir: /home/bruno/.config/geany
(geany:11813): GLib-GIO-DEBUG: 22:58:31.169: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’

(geany:11813): Gtk-WARNING **: 22:58:31.499: Theme parsing error: geany.css:5:27: The style property GtkWidget:focus-padding is deprecated and shouldn't be used anymore. It will be removed in a future version

(geany:11813): Gtk-WARNING **: 22:58:31.499: Theme parsing error: geany.css:6:30: The style property GtkWidget:focus-line-width is deprecated and shouldn't be used anymore. It will be removed in a future version

(geany:11813): Gtk-WARNING **: 22:58:31.499: Theme parsing error: geany.css:7:28: The style property GtkButton:default-border is deprecated and shouldn't be used anymore. It will be removed in a future version

(geany:11813): Gtk-WARNING **: 22:58:31.499: Theme parsing error: geany.css:8:36: The style property GtkButton:default-outside-border is deprecated and shouldn't be used anymore. It will be removed in a future version

(geany:11813): Gtk-WARNING **: 22:58:31.499: Theme parsing error: geany.css:9:26: The style property GtkButton:inner-border is deprecated and shouldn't be used anymore. It will be removed in a future version
Geany-INFO: 22:58:31.518: System plugin path: /usr/local/lib/geany
Geany-INFO: 22:58:31.539: Added filetype Scala (58).
Geany-INFO: 22:58:31.539: Added filetype Graphviz (59).
Geany-INFO: 22:58:31.539: Added filetype Go (60).
Geany-INFO: 22:58:31.539: Added filetype Genie (61).
Geany-INFO: 22:58:31.539: Added filetype Cython (62).
Geany-INFO: 22:58:31.539: Added filetype Clojure (63).
Geany-INFO: 22:58:31.539: Added filetype CUDA (64).

(geany:11813): Geany-CRITICAL **: 22:58:31.583: invalid VTE library "/usr/local/lib/libvte-2.91.so.0.5200.1": missing symbol "vte_terminal_fork_command"
Geany-INFO: 22:58:31.600: unknown : None (UTF-8)
Geany-INFO: 22:58:31.602: Bad color 'poop'
Geany-INFO: 22:58:31.602: Bad color 'current_line'
(geany:11813): Gtk-DEBUG: 22:58:31.663: State 0 for Scintilla 0x196e190 doesn't match state 128 set via gtk_style_context_set_state ()
Geany-INFO: 22:58:46.275: Quitting...

Offline GNUser

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 1499
Re: geany "Could not load libvte.so, embedded terminal support disabled"
« Reply #8 on: April 02, 2020, 11:02:57 PM »
I dug this up somewhere in interwebs:

Code: [Select]
VTE 0.38 removed vte_terminal_fork_command() in favor of the new
    vte_terminal_spawn_sync()

I'm going to try to find vte 0.37 and seeing if it does the trick.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11594
Re: geany "Could not load libvte.so, embedded terminal support disabled"
« Reply #9 on: April 02, 2020, 11:07:49 PM »
Hi GNUser
This is the last version before being updated to 0.40:
http://tinycorelinux.net/5.x/x86_64/tcz/vte.tcz.info

Offline GNUser

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 1499
Re: geany "Could not load libvte.so, embedded terminal support disabled"
« Reply #10 on: April 02, 2020, 11:21:51 PM »
Nice find!
Weird, that version takes us back to the semi-silent failure I was getting originally:

Code: [Select]
$ tce-load -wi icu65
$ wget http://tinycorelinux.net/5.x/x86_64/tcz/vte.tcz
$ tce-load -i ./vte.tcz
$ ls /usr/local/lib | grep vte
libvte2_90.so
libvte2_90.so.9
libvte2_90.so.9.3400.9
vte-2.90/
$ /usr/local/bin/geany -v --vte-lib /usr/local/lib/libvte2_90.so.9.3400.9
Geany-INFO: 23:16:28.222: Geany 1.24.1, en_US.UTF-8
Geany-INFO: 23:16:28.222: GTK 3.24.13, GLib 2.64.0
...
Geany-INFO: 23:16:28.601: Could not load libvte.so, embedded terminal support disabled
...

This approach does not seem promising.

Remember that when I compile latest geany on TC11 x86_64 with  vte-dev.tcz  installed, the virtual terminal works fine. Maybe it would be easier to troubleshoot why the "Open File" box shows directories but no files when I compile?

I'll keep hammering at this tomorrow. Time for bed.
« Last Edit: April 02, 2020, 11:24:48 PM by GNUser »

Offline GNUser

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 1499
Re: geany "Could not load libvte.so, embedded terminal support disabled"
« Reply #11 on: April 03, 2020, 11:32:20 AM »
One of my build tools was out-of-sync. Gosh, how embarrassing.
I was able to compile geany 1.36 against gtk3 and everything works, including virtual terminal and "Open File" box.

juanito, I see that you are the maintainer of geany. If you'd like me to update the TC11 64 extension to 1.36, just say the word.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14801
Re: geany "Could not load libvte.so, embedded terminal support disabled"
« Reply #12 on: April 03, 2020, 12:17:25 PM »
Please go ahead.

Offline GNUser

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 1499
Re: geany "Could not load libvte.so, embedded terminal support disabled"
« Reply #13 on: April 03, 2020, 01:54:47 PM »
geany and geany-dev submitted for TC11 64 :)

Offline GNUser

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 1499
Re: geany "Could not load libvte.so, embedded terminal support disabled"
« Reply #14 on: April 07, 2020, 02:30:48 PM »
juanito, just FYI - repository still has old version of geany-dev. I re-submitted the refreshed version.