View Single Post
Old 12-06-2021, 11:23 AM   #4
jollyblondgiant
Member
jollyblondgiant began at the beginning.
 
Posts: 24
Karma: 10
Join Date: Jun 2021
Device: Kindle Touch K5

I'm at a loss here because I can't build kterm:

I updated the kterm.c file with the following code:
Code:
/* line 186, in between definitions for 'fontup' and 'fontdown' */
static void kindleberry(GtkWidget *widget, gpointer terminal) {
    UNUSED(widget);
    UNUSED(terminal);
    system("pi");
}
/* line 406, immediately after 
   GtkWidget *menu = gtk_menu_new();
*/
GtkWidget *kindleberry_item = gtk_menu_item_new_with_label("Kindleberry");
/* a few lines later, on line 416, right after
   GtkWidget *quit_item = gtk_menu_item_new_with_label("Quit");
*/
gtk_menu_shell_append(GTK_MENU_SHELL(menu), kindleberry_item);
/* and finally, line 427, right after
   gtk_menu_shell_append(GTK_MENU_SHELL(menu), quit_item);
*/  
g_signal_connect(G_OBJECT(kindleberry_item), "activate", G_CALLBACK(kindleberry), 
 (gpointer) terminal);
then following instructions on https://github.com/bfabiszewski/kterm the build process fails on
Code:
./configure
with:
Code:
No package 'vte' found
so I tried to install vte from https://github.com/GNOME/vte but that fails at
Code:
meson _build
with:
Code:
meson.build:137: WARNING: Consider using the built-in option for language standard version instead of using "-std=gnu11".
Compiler for C++ supports arguments -std=gnu++20: NO 

meson.build:144:0: ERROR: Assert failed: option -std=gnu++20 not supported by gcc
and my google-fu is not strong enough to find reference to or solution for this error. Does it refer to my OS? I am currently running Ubuntu 20.04.3 'Focal'. How do modern Ubuntu users compile C files? I just need the dozen lines of code injected into kterm.c; the command "pi" exists in my /usr/bin:
Code:
$ cat /usr/bin/pi
#!/bin/sh
echo "baking up some kindleberry pi"
eval $(ssh-agent -s)
ssh-add /rsa/kindleberry
ifconfig usb0 192.168.15.244
ssh pi@192.168.15.201
so that, as yet, all I have to do to get started is type "pi" into the built-in keyboard to set up the ssh-agent, my ssh-key, and connection, then poke with two fingers and hide the keyboard. If the "kindleberry" menu option fires the "pi" command on my kindle i hope it could do the same setup behavior so that I never need to type into the built-in keyboard.

However, I cannot install vte, and therefore cannot build kterm myself. If a wizard were to build
Code:
make dist-kindle
and send this lost novice the generated zip file, or alternatively help clear up the vte installation confustion, I'd be sincerely grateful.
jollyblondgiant is offline   Reply With Quote