aptik-gtk icon indicating copy to clipboard operation
aptik-gtk copied to clipboard

Error building from source

Open yochananmarqos opened this issue 7 years ago • 11 comments

Firstly, the binary package installs and runs fine on my Manjaro Linux Cinnamon installation. However, since I'm working on a PKGBUILD I decided to build from source. I'm using vala 0.40.6.

$ make all
cd src; make all
make[1]: Entering directory '/home/yochanan/aptik-gtk/src'
# aptik-gtk
valac -X -D'GETTEXT_PACKAGE="aptik-gtk"' --Xcc="-lm" --thread \
	*.vala Gtk/*.vala Utility/Console/*.vala Utility/Gtk/*.vala Utility/*.vala \
	-o aptik-gtk \
	--pkg glib-2.0 \
	--pkg gio-unix-2.0 \
	--pkg posix \
	--pkg gee-0.8 \
	--pkg json-glib-1.0 \
	--pkg vte-2.91 \
	--pkg gtk+-3.0
Gtk/TermBox.vala:154.4-154.18: warning: Vte.Terminal.spawn_sync has been deprecated since 0.48
Gtk/TermBox.vala:262.19-262.21: error: Argument 1: Cannot convert from `unowned string?' to `unowned char[]?'
		term.feed_child(cmd, -1);
		                ^^^
Utility/Console/TeeJee.Process.vala:558.27-558.39: warning: Posix.SIGTERM has been deprecated since vala-0.40. Use Posix.Signal.TERM
Utility/Console/TeeJee.Process.vala:566.27-566.39: warning: Posix.SIGTERM has been deprecated since vala-0.40. Use Posix.Signal.TERM
Gtk/ManagerBox.vala:770.4-770.22: warning: GLib.Thread.create has been deprecated since 2.32. Use new Thread<T> ()
Gtk/ManagerBox.vala:1072.4-1072.22: warning: GLib.Thread.create has been deprecated since 2.32. Use new Thread<T> ()
Utility/Console/TeeJee.Process.vala:583.28-583.40: warning: Posix.SIGKILL has been deprecated since vala-0.40. Use Posix.Signal.KILL
Utility/Console/TeeJee.Process.vala:591.28-591.40: warning: Posix.SIGKILL has been deprecated since vala-0.40. Use Posix.Signal.KILL
Utility/Console/AsyncTask.vala:156.5-156.23: warning: GLib.Thread.create has been deprecated since 2.32. Use new Thread<T> ()
Utility/Console/AsyncTask.vala:164.5-164.23: warning: GLib.Thread.create has been deprecated since 2.32. Use new Thread<T> ()
Utility/Console/TimeoutCounter.vala:47.4-47.22: warning: GLib.Thread.create has been deprecated since 2.32. Use new Thread<T> ()
Utility/Console/TimeoutCounter.vala:61.4-61.22: warning: GLib.Thread.create has been deprecated since 2.32. Use new Thread<T> ()
Utility/Console/TeeJee.Process.vala:329.21-329.34: warning: GLib.DataInputStream.read_until has been deprecated since 2.56
Utility/Gtk/GtkHelper.vala:152.23-152.41: warning: Gtk.Dialog.get_action_area has been deprecated since 3.12
Utility/Gtk/GtkHelper.vala:632.3-632.18: warning: Gtk.Widget.margin_right has been deprecated since 3.12
Utility/Gtk/GtkHelper.vala:884.3-884.25: warning: Gtk.TreeView.set_rules_hint has been deprecated since 3.14
Utility/Gtk/GtkHelper.vala:1037.4-1037.20: warning: Gtk.Widget.margin_left has been deprecated since 3.12
Utility/Gtk/GtkHelper.vala:1113.3-1113.19: warning: Gtk.Widget.margin_left has been deprecated since 3.12
Utility/Gtk/GtkHelper.vala:1249.3-1249.28: warning: Gtk.Entry.secondary_icon_stock has been deprecated since 3.10
Utility/Gtk/LoadingWindow.vala:84.3-84.22: warning: Gtk.Widget.margin_right has been deprecated since 3.12
Compilation failed: 1 error(s), 19 warning(s)
make[1]: *** [makefile:17: all] Error 1
make[1]: Leaving directory '/home/yochanan/aptik-gtk/src'
make: *** [makefile:2: all] Error 2

yochananmarqos avatar May 27 '18 00:05 yochananmarqos

I found a similar issue opened for timeshift (#169) that you never responded to. Looks like the Manjaro team patched it. Are you ignoring this issue on purpose, or what? I'm not trying to be rude, I'm just curious and straightforward by nature.

yochananmarqos avatar May 29 '18 22:05 yochananmarqos

This is not a full time job for me. This is something that I do for few hours on weekends. It not possible for me to provide support for issues and to reply to issues immediately.

teejee2008 avatar May 30 '18 02:05 teejee2008

No worries, take your time. I apologize if I was impatient.

yochananmarqos avatar May 30 '18 02:05 yochananmarqos

These projects are taking up so much of my time that I have no idea what to do. I don't want to abandon these projects, since they are useful to me and I develop them for my own use.

teejee2008 avatar May 30 '18 02:05 teejee2008

See the following issue for Polo: https://github.com/teejee2008/polo/issues/185

you need to change the line that is giving error

teejee2008 avatar May 30 '18 02:05 teejee2008

Thank you, it makes sense now.

yochananmarqos avatar May 30 '18 02:05 yochananmarqos

welcome

teejee2008 avatar May 30 '18 02:05 teejee2008

I created a PR that fixes it.

yochananmarqos avatar May 30 '18 19:05 yochananmarqos

I just added aptik & aptik-gtk to the AUR.

yochananmarqos avatar May 30 '18 23:05 yochananmarqos

Thanks for adding it to AUR.

Merging the PR will break builds on Ubuntu/Launchpad which still has the older libvte version in it's repos.

teejee2008 avatar Jun 03 '18 15:06 teejee2008

Oh right, forgot about that.

yochananmarqos avatar Jun 03 '18 16:06 yochananmarqos