muriloventuroso / easyssh

The SSH connection manager to make your life easier.
GNU General Public License v3.0
523 stars 39 forks source link

Build error #102

Closed zyppe closed 3 years ago

zyppe commented 4 years ago

Error log:

FAILED: com.github.muriloventuroso.easyssh@exe/src/Application.c com.github.muriloventuroso.easyssh@exe/src/Host.c com.github.muriloventuroso.easyssh@exe/src/Account.c com.github.muriloventuroso.easyssh@exe/src/Bookmark.c com.github.muriloventuroso.easyssh@exe/src/MainWindow.c com.github.muriloventuroso.easyssh@exe/src/Services/Settings.c com.github.muriloventuroso.easyssh@exe/src/Views/SourceListView.c com.github.muriloventuroso.easyssh@exe/src/Widgets/TerminalBox.c com.github.muriloventuroso.easyssh@exe/src/Widgets/Welcome.c com.github.muriloventuroso.easyssh@exe/src/Widgets/WelcomeAccounts.c com.github.muriloventuroso.easyssh@exe/src/Widgets/HeaderBar.c com.github.muriloventuroso.easyssh@exe/src/Widgets/ConnectionEditor.c com.github.muriloventuroso.easyssh@exe/src/Widgets/AccountEditor.c com.github.muriloventuroso.easyssh@exe/src/Widgets/Connection.c com.github.muriloventuroso.easyssh@exe/src/Widgets/ErrorRevealer.c com.github.muriloventuroso.easyssh@exe/src/Widgets/Preferences.c com.github.muriloventuroso.easyssh@exe/src/Widgets/TerminalWidget.c com.github.muriloventuroso.easyssh@exe/src/Widgets/SearchToolbar.c com.github.muriloventuroso.easyssh@exe/src/Widgets/BookmarksPopover.c com.github.muriloventuroso.easyssh@exe/src/Widgets/Tab.c 
valac -C --debug --debug --define UBUNTU_BIONIC_PATCHED_VTE --define WITH_GPG --pkg vte-2.91 --pkg json-glib-1.0 --pkg granite --pkg gtk+-3.0 --pkg glib-2.0 --pkg gee-0.8 --color=always --directory com.github.muriloventuroso.easyssh@exe --basedir ../ --gresources=../data/com.github.muriloventuroso.easyssh.gresource.xml ../src/Application.vala ../src/Host.vala ../src/Account.vala ../src/Bookmark.vala ../src/MainWindow.vala ../src/Services/Settings.vala ../src/Views/SourceListView.vala ../src/Widgets/TerminalBox.vala ../src/Widgets/Welcome.vala ../src/Widgets/WelcomeAccounts.vala ../src/Widgets/HeaderBar.vala ../src/Widgets/ConnectionEditor.vala ../src/Widgets/AccountEditor.vala ../src/Widgets/Connection.vala ../src/Widgets/ErrorRevealer.vala ../src/Widgets/Preferences.vala ../src/Widgets/TerminalWidget.vala ../src/Widgets/SearchToolbar.vala ../src/Widgets/BookmarksPopover.vala ../src/Widgets/Tab.vala
../src/Widgets/TerminalWidget.vala:217.33-217.35: error: Argument 1: Cannot convert from `unowned string' to `unowned uint8[]?'
                this.feed_child(cmd, cmd.length);
                                ^^^
../src/Widgets/TerminalWidget.vala:217.17-217.48: error: 1 extra arguments for `void Vte.Terminal.feed_child (uint8[]?)'
                this.feed_child(cmd, cmd.length);
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
../src/Widgets/TerminalBox.vala:105.33-105.35: error: Argument 1: Cannot convert from `unowned string' to `unowned uint8[]?'
                term.feed_child(cmd, cmd.length);
                                ^^^
../src/Widgets/TerminalBox.vala:105.17-105.48: error: 1 extra arguments for `void Vte.Terminal.feed_child (uint8[]?)'
                term.feed_child(cmd, cmd.length);
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
../src/Widgets/TerminalBox.vala:204.33-204.37: error: Argument 1: Cannot convert from `unowned string' to `unowned uint8[]?'
                term.feed_child(n_cmd, cmd.length);
                                ^^^^^
../src/Widgets/TerminalBox.vala:204.17-204.50: error: 1 extra arguments for `void Vte.Terminal.feed_child (uint8[]?)'
                term.feed_child(n_cmd, cmd.length);
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
../src/Widgets/TerminalBox.vala:195.33-195.35: error: Argument 1: Cannot convert from `unowned string' to `unowned uint8[]?'
                term.feed_child(cmd, cmd.length);
                                ^^^
../src/Widgets/TerminalBox.vala:195.17-195.48: error: 1 extra arguments for `void Vte.Terminal.feed_child (uint8[]?)'
                term.feed_child(cmd, cmd.length);
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

OS: OpenSUSE Tumbleweed gcc 10.2.1 valac 0.48.7 gee 0.20.3 glib 2.64.4 gtk 3.24.22 granite 5.4.0 json-glib 1.4.4 And provides 28 warnings.

muriloventuroso commented 4 years ago

Please repeat the build using the "ubuntu-bionic-patched-vte" option. This is a compatibility issue between versions of lib Gtk.VTE

zyppe commented 4 years ago

I tryed to change the define in meson_options.txt. Defined option ('ubuntu-bionic-patched-vte', type : 'boolean', value : false). Error log:

../src/Widgets/TerminalWidget.vala:219.33-219.46: error: Argument 1: Cannot convert from `char[]' to `unowned uint8[]?'
                this.feed_child(cmd.to_utf8 ());
                                ^^^^^^^^^^^^^^
../src/Widgets/SearchToolbar.vala:97.21-97.42: warning: `Vte.Terminal.search_set_gregex' has been deprecated since 0.46
../src/Widgets/TerminalBox.vala:107.33-107.46: error: Argument 1: Cannot convert from `char[]' to `unowned uint8[]?'
                term.feed_child(cmd.to_utf8 ());
                                ^^^^^^^^^^^^^^
../src/Widgets/TerminalBox.vala:206.33-206.48: error: Argument 1: Cannot convert from `char[]' to `unowned uint8[]?'
                term.feed_child(n_cmd.to_utf8 ());
                                ^^^^^^^^^^^^^^^^
../src/Widgets/TerminalBox.vala:197.33-197.46: error: Argument 1: Cannot convert from `char[]' to `unowned uint8[]?'
                term.feed_child(cmd.to_utf8 ());
                                ^^^^^^^^^^^^^^
zyppe commented 4 years ago

If "option ('ubuntu-bionic-patched-vte', type : 'boolean', value : true)", then output those 8 errors.

muriloventuroso commented 4 years ago

I added a new option in version 1.7.4 to deal with VTE differences. Please use the options patched-vte = true and ubuntu-bionic-patched-vte = false when compiling.

zyppe commented 4 years ago

run error (com.github.muriloventuroso.easyssh:16745): GLib-GIO-ERROR **: 18:55:02.549: Settings schema 'com.github.muriloventuroso.easyssh' is not installed

zyppe commented 4 years ago

I just run it in build folder.

muriloventuroso commented 4 years ago

You need to compile gsettings schemas. The meson/post_install.py script helps with this.