当前位置: 首页 > news >正文

在linuxlite2.0编译安装​finalterm-master

在linuxlite2.0编译安装​finalterm-master

Posted on 2026-03-13 18:18  锦喵卫指挥使  阅读(0)  评论(0)    收藏  举报
  1. vscode安装trae插件
  2. 下载finalterm-master源码
  3. trae深入思考
    `用户现在需要在Linux Lite 2.0上编译安装Final Term。首先,我需要了解Linux Lite 2.0的系统信息,比如它基于哪个Ubuntu版本,因为Linux Lite通常基于Ubuntu LTS版本。然后,根据之前的分析,Final Term依赖多个库,需要先安装这些依赖,再进行编译。

首先,Linux Lite 2.0应该是基于Ubuntu 14.04 LTS,因为Linux Lite 2.0发布于2014年,而Ubuntu 14.04 LTS是2014年的LTS版本。所以需要确认这一点,然后查看需要安装哪些依赖包。

根据README.md,Final Term需要的依赖包括:Gee、GTK+ 3、Clutter >= 1.12、Clutter-Gtk、Mx、keybinder-3.0,可选的有libnotify和libunity,以及intltool用于本地化。

在Ubuntu 14.04上,这些依赖包的安装命令需要确定。比如,Gee对应的包名可能是libgee-0.8-dev,Clutter是libclutter-1.0-dev,Clutter-Gtk是libclutter-gtk-1.0-dev,Mx是libmx-dev,keybinder-3.0是libkeybinder-3.0-dev,intltool是intltool。

然后,用户需要克隆仓库,创建build目录,运行cmake,make,然后sudo make install。但需要注意,Linux Lite 2.0的软件源可能没有一些较新的依赖版本,比如Clutter 1.12,需要检查是否可用。

另外,用户可能会遇到一些编译错误,需要根据错误信息调整。比如,可能需要安装额外的依赖,或者处理版本不匹配的问题。

总结步骤:

确认Linux Lite 2.0基于Ubuntu 14.04 LTS
安装所需依赖包
克隆Final Term仓库
创建build目录并进入
运行cmake ..
运行make
运行sudo make install
处理可能的错误
现在需要详细说明每个步骤的命令,以及可能遇到的问题和解决方案。

要在 Linux Lite 2.0 上编译安装 Final Term,需要按照以下步骤进行操作。Linux Lite 2.0 基于 Ubuntu 14.04 LTS,因此依赖包的安装命令与 Ubuntu 14.04 一致。

步骤 1:安装依赖包
Final Term 需要多个开发库和工具,首先安装这些依赖:

bash
sudo apt-get update
sudo apt-get install build-essential cmake valac
libgee-0.8-dev libgtk-3-dev libclutter-1.0-dev
libclutter-gtk-1.0-dev libmx-dev libkeybinder-3.0-dev
intltool libnotify-dev libunity-dev
说明:

build-essential:提供编译所需的基本工具(如 gcc、make 等)
cmake:构建系统
valac:Vala 语言编译器
libgee-0.8-dev:集合库
libgtk-3-dev:GTK+ 3 开发库
libclutter-1.0-dev:Clutter 图形库(版本 >= 1.12,Ubuntu 14.04 满足要求)
libclutter-gtk-1.0-dev:Clutter 与 GTK 的集成库
libmx-dev:基于 Clutter 的 UI 组件库
libkeybinder-3.0-dev:全局键盘快捷键库
intltool:本地化工具
libnotify-dev、libunity-dev:可选依赖(分别用于桌面通知和 Unity 启动器集成)
步骤 2:克隆 Final Term 仓库
从 GitHub 克隆 Final Term 源代码:

bash
git clone https://github.com/p-e-w/finalterm.git
cd finalterm
步骤 3:创建并进入构建目录
使用 CMake 构建系统,需要创建一个独立的构建目录:

bash
mkdir build
cd build
步骤 4:运行 CMake 配置
生成 Makefile:

bash
cmake ..
注意:如果出现依赖缺失的错误,需要根据错误信息安装对应的依赖包。

步骤 5:编译项目
使用 make 命令编译源代码:

bash
make
可能的问题:

如果遇到编译错误,可能是依赖版本不匹配或缺少某些头文件。需要根据错误信息调整依赖安装。
步骤 6:安装 Final Term
编译完成后,使用 sudo make install 安装到系统:

bash
sudo make install
步骤 7:运行 Final Term
安装完成后,可以通过以下命令启动:

bash
finalterm
可能的问题与解决方案
依赖版本问题:如果 Clutter 版本低于 1.12,需要从 PPA 或源码安装更高版本。
编译错误:检查是否所有依赖都已安装,特别是 libmx-dev 可能在 Ubuntu 14.04 中需要额外添加源。
运行时错误:如果启动时出现库缺失,使用 ldd \((which finalterm) 检查缺失的库并安装。 注意事项 Final Term 已停止开发,可能存在未修复的 bug。 Linux Lite 2.0 是较旧的系统,部分依赖可能版本较低,可能需要手动编译一些依赖库。 安装后如果无法启动,可以尝试从终端运行 finalterm 查看错误信息,以便定位问题。 通过以上步骤,你应该能够在 Linux Lite 2.0 上成功编译并安装 Final Term。` 4. cmake .. `linuxlite:~\) cd "/home/czl/Documents/finalterm-master/build/"

czl@linuxlite:~/Documents/finalterm-master/build$ cmake ..

-- checking for module 'unity'

-- package 'unity' not found

-- checking for module 'libnotify'

-- package 'libnotify' not found

-- checking for modules 'clutter-gtk-1.0;mx-1.0;keybinder-3.0;gee-0.8'

-- package 'clutter-gtk-1.0' not found

-- package 'mx-1.0' not found

-- package 'keybinder-3.0' not found

-- package 'gee-0.8' not found

CMake Error at /usr/share/cmake-2.8/Modules/FindPkgConfig.cmake:283 (message):

A required package was not found

Call Stack (most recent call first):

/usr/share/cmake-2.8/Modules/FindPkgConfig.cmake:337 (_pkg_check_modules_internal)

CMakeLists.txt:42 (pkg_check_modules)

-- checking for a minimum Vala version of 0.16.0

-- found Vala, version 0.22.1

-- Could NOT find Gettext (missing: XGETTEXT_EXECUTABLE GETTEXT_MSGMERGE_EXECUTABLE GETTEXT_MSGFMT_EXECUTABLE GETTEXT_MSGCAT_EXECUTABLE)

-- GSettings schemas will be installed locally.

-- GSettings shemas will be compiled.

-- GSettings schemas will be installed into /usr/local/share/glib-2.0/schemas/

-- Configuring incomplete, errors occurred!

See also "/home/czl/Documents/finalterm-master/build/CMakeFiles/CMakeOutput.log". 用户遇到了在 Linux Lite 2.0 上编译 Final Term 时的依赖问题。从错误信息来看,缺少以下依赖包:

unity
libnotify
clutter-gtk-1.0
mx-1.0
keybinder-3.0
gee-0.8
Gettext
我需要提供一个完整的依赖安装命令,确保所有必需的依赖都被安装。Linux Lite 2.0 基于 Ubuntu 14.04 LTS,所以我需要使用适合该版本的包名。

看起来你在编译 Final Term 时遇到了依赖包缺失的问题。让我帮你解决这个问题,提供一个完整的依赖安装命令:

安装所有必需的依赖包

bash
sudo apt-get update
sudo apt-get install build-essential cmake valac
libgee-0.8-dev libgtk-3-dev libclutter-1.0-dev
libclutter-gtk-1.0-dev libmx-dev libkeybinder-3.0-dev
intltool libnotify-dev libunity-dev gettext
依赖包说明:
build-essential - 基本编译工具
cmake - 构建系统
valac - Vala 编译器
libgee-0.8-dev - 集合库
libgtk-3-dev - GTK+ 3 开发库
libclutter-1.0-dev - Clutter 图形库
libclutter-gtk-1.0-dev - Clutter 与 GTK 集成
libmx-dev - 基于 Clutter 的 UI 组件库
libkeybinder-3.0-dev - 全局键盘快捷键库
intltool - 本地化工具
libnotify-dev - 桌面通知支持
libunity-dev - Unity 启动器集成
gettext - 国际化工具
重新编译
安装完依赖后,重新运行编译步骤:

bash
cd /home/czl/Documents/finalterm-master/build/
rm -rf * # 清除之前的构建文件
cmake ..
make
sudo make install
注意事项
Linux Lite 2.0 基于 Ubuntu 14.04 LTS,某些依赖包可能版本较低
如果 libmx-dev 无法安装,可能需要从源码编译
由于 Final Term 已停止开发,可能会遇到其他兼容性问题
如果安装过程中遇到特定依赖包无法找到的问题,请告诉我具体错误信息,我会提供进一步的解决方案。5. makeczl@linuxlite:~/Documents/finalterm-master/build$ cmake ..
-- checking for module 'unity'
-- found unity, version 7.1.4
-- checking for module 'libnotify'
-- found libnotify, version 0.7.6
-- checking for modules 'clutter-gtk-1.0;mx-1.0;keybinder-3.0;gee-0.8;unity;libnotify'
-- found clutter-gtk-1.0, version 1.4.4
-- found mx-1.0, version 1.4.7
-- found keybinder-3.0, version 0.3.0
-- found gee-0.8, version 0.10.5
-- found unity, version 7.1.4
-- found libnotify, version 0.7.6
-- checking for a minimum Vala version of 0.16.0
-- found Vala, version 0.22.1
-- Found Gettext: /usr/bin/xgettext (found version "0.18.3")
-- Found Intltool: /usr/bin/intltool-extract (found version "0.50.2")
-- GSettings schemas will be installed locally.
-- GSettings shemas will be compiled.
-- GSettings schemas will be installed into /usr/local/share/glib-2.0/schemas/
-- Configuring done
-- Generating done
-- Build files have been written to: /home/czl/Documents/finalterm-master/build


czl@linuxlite:~/Documents/finalterm-master/build$ make
[ 3%] Generating src/FinalTerm.c, src/Terminal.c, src/TerminalStream.c, src/TerminalOutput.c, src/CharacterAttributes.c, src/TerminalView.c, src/LineView.c, src/TerminalWidget.c, src/NestingContainer.c, src/Autocompletion.c, src/NotifyingList.c, src/ScrollableListView.c, src/Utilities.c, src/SettingsWindow.c, src/TextMenu.c, src/ColorScheme.c, src/Theme.c, src/KeyBindings.c, src/Command.c, src/Settings.c, src/Metrics.c
/home/czl/Documents/finalterm-master/src/Command.vala:109.28-109.87: warning: unhandled error `GLib.RegexError'
substitute_parameter = placeholder_pattern.replace(substitute_parameter, -1, 0, "");
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/home/czl/Documents/finalterm-master/src/LineView.vala:47.3-47.50: warning: Clutter.BoxLayout.set_expand has been deprecated since 1.12
/home/czl/Documents/finalterm-master/src/LineView.vala:48.3-48.48: warning: Clutter.BoxLayout.set_fill has been deprecated since 1.12
/home/czl/Documents/finalterm-master/src/TerminalView.vala:695.4-695.14: warning: Clutter.Actor.paint has been deprecated since 1.12
/home/czl/Documents/finalterm-master/src/TerminalView.vala:186.5-186.23: warning: Clutter.Container.remove has been deprecated since 1.10
/home/czl/Documents/finalterm-master/src/TerminalView.vala:226.5-226.23: warning: Clutter.Container.remove has been deprecated since 1.10
/home/czl/Documents/finalterm-master/src/Terminal.vala:232.6-232.50: warning: unhandled error `GLib.IOChannelError'
this_terminal.command_channel.shutdown(false);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/home/czl/Documents/finalterm-master/src/SettingsWindow.vala:28.15-28.23: warning: Gtk.Stock has been deprecated since 3.10
/home/czl/Documents/finalterm-master/src/NestingContainer.vala:390.4-398.13: warning: unhandled error `GLib.Error'
/home/czl/Documents/finalterm-master/src/TerminalWidget.vala:95.46-95.66: warning: use of possibly unassigned parameter `minimum_width'
protected override void get_preferred_width(out int minimum_width, out int natural_width) {
^^^^^^^^^^^^^^^^^^^^^
/home/czl/Documents/finalterm-master/src/TerminalWidget.vala:100.47-100.68: warning: use of possibly unassigned parameter `minimum_height'
protected override void get_preferred_height(out int minimum_height, out int natural_height) {
^^^^^^^^^^^^^^^^^^^^^^
/home/czl/Documents/finalterm-master/src/NestingContainer.vala:60.33-60.54: warning: copying delegates is not supported
Compilation succeeded - 12 warning(s)
Scanning dependencies of target finalterm
[ 7%] Building C object CMakeFiles/finalterm.dir/src/FinalTerm.c.o
/home/czl/Documents/finalterm-master/src/FinalTerm.vala: In function ‘final_term_main’:
/home/czl/Documents/finalterm-master/src/FinalTerm.vala:405:3: warning: passing argument 4 of ‘gtk_clutter_init_with_args’ discards ‘const’ qualifier from pointer target type [enabled by default]
if (GtkClutter.init_with_args(ref args, null, options, Config.GETTEXT_PACKAGE) != Clutter.InitError.SUCCESS) {
^
In file included from /usr/include/clutter-gtk-1.0/clutter-gtk/clutter-gtk.h:11:0,
from /home/czl/Documents/finalterm-master/build/src/FinalTerm.c:30:
/usr/include/clutter-gtk-1.0/clutter-gtk/gtk-clutter-util.h:36:18: note: expected ‘struct GOptionEntry ’ but argument is of type ‘const struct GOptionEntry
ClutterInitError gtk_clutter_init_with_args (int argc,
^
/home/czl/Documents/finalterm-master/src/FinalTerm.vala:434:2: warning: passing argument 3 of ‘gee_hash_map_new’ from incompatible pointer type [enabled by default]
text_menus_by_pattern = new Gee.HashMap<Regex, TextMenu>();
^
In file included from /home/czl/Documents/finalterm-master/build/src/FinalTerm.c:31:0:
/usr/include/gee-0.8/gee.h:1503:13: note: expected ‘GDestroyNotify’ but argument is of type ‘void (
)(struct GRegex )’
GeeHashMap
gee_hash_map_new (GType k_type, GBoxedCopyFunc k_dup_func, GDestroyNotify k_destroy_func, GType v_type, GBoxedCopyFunc v_dup_func, GDestroyNotify v_destroy_func, GeeHashDataFunc key_hash_func, void
key_hash_func_target, GDestroyNotify key_hash_func_target_destroy_notify, GeeEqualDataFunc key_equal_func, void
key_equal_func_target, GDestroyNotify key_equal_func_target_destroy_notify, GeeEqualDataFunc value_equal_func, void* value_equal_func_target, GDestroyNotify value_equal_func_target_destroy_notify);
^
/home/czl/Documents/finalterm-master/src/FinalTerm.vala: In function ‘main’:
/home/czl/Documents/finalterm-master/src/FinalTerm.vala:400:2: warning: ‘g_type_init’ is deprecated (declared at /usr/include/glib-2.0/gobject/gtype.h:667) [-Wdeprecated-declarations]
public static int main(string[] args) {
^
[ 10%] Building C object CMakeFiles/finalterm.dir/src/Terminal.c.o
/usr/share/vala-0.22/vapi/glib-2.0.vapi: In function ‘string_strip’:
/usr/share/vala-0.22/vapi/glib-2.0.vapi:1086:2: warning: passing argument 1 of ‘g_strchug’ discards ‘const’ qualifier from pointer target type [enabled by default]
result._strip ();
^
In file included from /usr/include/glib-2.0/glib.h:79:0,
from /home/czl/Documents/finalterm-master/build/src/Terminal.c:27:
/usr/include/glib-2.0/glib/gstrfuncs.h:175:23: note: expected ‘gchar ’ but argument is of type ‘const gchar
gchar
g_strchug (gchar string);
^
[ 14%] Building C object CMakeFiles/finalterm.dir/src/TerminalStream.c.o
/usr/share/vala-0.22/vapi/glib-2.0.vapi: In function ‘g_unichar_to_string’:
/usr/share/vala-0.22/vapi/glib-2.0.vapi:856:2: warning: passing argument 2 of ‘g_unichar_to_utf8’ discards ‘const’ qualifier from pointer target type [enabled by default]
this.to_utf8 (str);
^
In file included from /usr/include/glib-2.0/glib/gstring.h:33:0,
from /usr/include/glib-2.0/glib/giochannel.h:34,
from /usr/include/glib-2.0/glib.h:54,
from /home/czl/Documents/finalterm-master/build/src/TerminalStream.c:30:
/usr/include/glib-2.0/glib/gunicode.h:738:11: note: expected ‘gchar ’ but argument is of type ‘const gchar
gint g_unichar_to_utf8 (gunichar c,
^
/home/czl/Documents/finalterm-master/src/TerminalStream.vala: In function ‘terminal_stream_stream_element_class_init’:
/home/czl/Documents/finalterm-master/src/TerminalStream.vala:364:2: warning: passing argument 6 of ‘gee_hash_multi_map_new’ from incompatible pointer type [enabled by default]
private static Gee.MultiMap<unichar, ControlSequenceSpecification?> control_sequence_specifications =
^
In file included from /home/czl/Documents/finalterm-master/build/src/TerminalStream.c:34:0:
/usr/include/gee-0.8/gee.h:1509:18: note: expected ‘GDestroyNotify’ but argument is of type ‘void (
)(struct TerminalStreamStreamElementControlSequenceSpecification )’
GeeHashMultiMap
gee_hash_multi_map_new (GType k_type, GBoxedCopyFunc k_dup_func, GDestroyNotify k_destroy_func, GType v_type, GBoxedCopyFunc v_dup_func, GDestroyNotify v_destroy_func, GeeHashDataFunc key_hash_func, void
key_hash_func_target, GDestroyNotify key_hash_func_target_destroy_notify, GeeEqualDataFunc key_equal_func, void
key_equal_func_target, GDestroyNotify key_equal_func_target_destroy_notify, GeeHashDataFunc value_hash_func, void
value_hash_func_target, GDestroyNotify value_hash_func_target_destroy_notify, GeeEqualDataFunc value_equal_func, void* value_equal_func_target, GDestroyNotify value_equal_func_target_destroy_notify);
^
[ 17%] Building C object CMakeFiles/finalterm.dir/src/TerminalOutput.c.o
/usr/share/vala-0.22/vapi/glib-2.0.vapi: In function ‘string_strip’:
/usr/share/vala-0.22/vapi/glib-2.0.vapi:1086:2: warning: passing argument 1 of ‘g_strchug’ discards ‘const’ qualifier from pointer target type [enabled by default]
result._strip ();
^
In file included from /usr/include/glib-2.0/glib.h:79:0,
from /home/czl/Documents/finalterm-master/build/src/TerminalOutput.c:33:
/usr/include/glib-2.0/glib/gstrfuncs.h:175:23: note: expected ‘gchar *’ but argument is of type ‘const gchar
gchar
g_strchug (gchar *string);
^
/home/czl/Documents/finalterm-master/src/TerminalOutput.vala: In function ‘terminal_output_parse_stream_element’:
/home/czl/Documents/finalterm-master/src/TerminalOutput.vala:277:8: warning: passing argument 1 of ‘gee_abstract_collection_get_size’ from incompatible pointer type [enabled by default]
int visible_lines = size - screen_offset;
^
In file included from /home/czl/Documents/finalterm-master/build/src/TerminalOutput.c:35:0:
/usr/include/gee-0.8/gee.h:1363:6: note: expected ‘struct GeeAbstractCollection *’ but argument is of type ‘struct GeeCollection
gint gee_abstract_collection_get_size (GeeAbstractCollection
self);
^
/home/czl/Documents/finalterm-master/src/TerminalOutput.vala:403:8: warning: passing argument 1 of ‘gee_abstract_collection_get_size’ from incompatible pointer type [enabled by default]
for (int i = size - 1; i >= 0; i--) {
^
In file included from /home/czl/Documents/finalterm-master/build/src/TerminalOutput.c:35:0:
/usr/include/gee-0.8/gee.h:1363:6: note: expected ‘struct GeeAbstractCollection *’ but argument is of type ‘struct GeeCollection
gint gee_abstract_collection_get_size (GeeAbstractCollection
self);
^
/home/czl/Documents/finalterm-master/src/TerminalOutput.vala:457:7: warning: passing argument 1 of ‘gee_abstract_collection_get_size’ from incompatible pointer type [enabled by default]
foreach (var command in commands) {
^
In file included from /home/czl/Documents/finalterm-master/build/src/TerminalOutput.c:35:0:
/usr/include/gee-0.8/gee.h:1363:6: note: expected ‘struct GeeAbstractCollection *’ but argument is of type ‘struct GeeCollection
gint gee_abstract_collection_get_size (GeeAbstractCollection
self);
^
/home/czl/Documents/finalterm-master/src/TerminalOutput.vala: In function ‘terminal_output_move_cursor’:
/home/czl/Documents/finalterm-master/src/TerminalOutput.vala:589:2: warning: passing argument 1 of ‘gee_abstract_collection_get_size’ from incompatible pointer type [enabled by default]
int lines_to_add = cursor_position.line - size + 1;
^
In file included from /home/czl/Documents/finalterm-master/build/src/TerminalOutput.c:35:0:
/usr/include/gee-0.8/gee.h:1363:6: note: expected ‘struct GeeAbstractCollection *’ but argument is of type ‘struct GeeCollection
gint gee_abstract_collection_get_size (GeeAbstractCollection
self);
^
/home/czl/Documents/finalterm-master/src/TerminalOutput.vala: In function ‘terminal_output_erase_range_screen’:
/home/czl/Documents/finalterm-master/src/TerminalOutput.vala:661:2: warning: passing argument 1 of ‘gee_abstract_collection_get_size’ from incompatible pointer type [enabled by default]
absolute_start_position.line = int.min(absolute_start_position.line, size - 1);
^
In file included from /home/czl/Documents/finalterm-master/build/src/TerminalOutput.c:35:0:
/usr/include/gee-0.8/gee.h:1363:6: note: expected ‘struct GeeAbstractCollection *’ but argument is of type ‘struct GeeCollection
gint gee_abstract_collection_get_size (GeeAbstractCollection
self);
^
/home/czl/Documents/finalterm-master/src/TerminalOutput.vala:664:2: warning: passing argument 1 of ‘gee_abstract_collection_get_size’ from incompatible pointer type [enabled by default]
absolute_end_position.line = int.min(absolute_end_position.line, size - 1);
^
In file included from /home/czl/Documents/finalterm-master/build/src/TerminalOutput.c:35:0:
/usr/include/gee-0.8/gee.h:1363:6: note: expected ‘struct GeeAbstractCollection *’ but argument is of type ‘struct GeeCollection
gint gee_abstract_collection_get_size (GeeAbstractCollection
self);
^
/home/czl/Documents/finalterm-master/src/TerminalOutput.vala: In function ‘terminal_output_output_line_generate_text_menu_elements’:
/home/czl/Documents/finalterm-master/src/TerminalOutput.vala:715:3: warning: passing argument 1 of ‘gee_abstract_collection_get_size’ from incompatible pointer type [enabled by default]
foreach (var text_element in this) {
^
In file included from /home/czl/Documents/finalterm-master/build/src/TerminalOutput.c:35:0:
/usr/include/gee-0.8/gee.h:1363:6: note: expected ‘struct GeeAbstractCollection *’ but argument is of type ‘struct GeeCollection
gint gee_abstract_collection_get_size (GeeAbstractCollection
self);
^
/home/czl/Documents/finalterm-master/src/TerminalOutput.vala: In function ‘terminal_output_output_line_explode’:
/home/czl/Documents/finalterm-master/src/TerminalOutput.vala:767:3: warning: passing argument 1 of ‘gee_abstract_collection_get_size’ from incompatible pointer type [enabled by default]
foreach (var text_element in this) {
^
In file included from /home/czl/Documents/finalterm-master/build/src/TerminalOutput.c:35:0:
/usr/include/gee-0.8/gee.h:1363:6: note: expected ‘struct GeeAbstractCollection *’ but argument is of type ‘struct GeeCollection
gint gee_abstract_collection_get_size (GeeAbstractCollection
self);
^
/home/czl/Documents/finalterm-master/src/TerminalOutput.vala:768:4: warning: passing argument 2 of ‘gee_collection_add_all_array’ from incompatible pointer type [enabled by default]
character_elements.add_all_array(text_element.explode());
^
In file included from /home/czl/Documents/finalterm-master/build/src/TerminalOutput.c:35:0:
/usr/include/gee-0.8/gee.h:1469:10: note: expected ‘void **’ but argument is of type ‘struct TerminalOutputTextElement
gboolean gee_collection_add_all_array (GeeCollection
self, gpointer
array, int array_length1);
^
/home/czl/Documents/finalterm-master/src/TerminalOutput.vala: In function ‘terminal_output_output_line_get_length’:
/home/czl/Documents/finalterm-master/src/TerminalOutput.vala:803:3: warning: passing argument 1 of ‘gee_abstract_collection_get_size’ from incompatible pointer type [enabled by default]
foreach (var text_element in this) {
^
In file included from /home/czl/Documents/finalterm-master/build/src/TerminalOutput.c:35:0:
/usr/include/gee-0.8/gee.h:1363:6: note: expected ‘struct GeeAbstractCollection *’ but argument is of type ‘struct GeeCollection
gint gee_abstract_collection_get_size (GeeAbstractCollection
self);
^
/home/czl/Documents/finalterm-master/src/TerminalOutput.vala: In function ‘terminal_output_output_line_get_text’:
/home/czl/Documents/finalterm-master/src/TerminalOutput.vala:811:3: warning: passing argument 1 of ‘gee_abstract_collection_get_size’ from incompatible pointer type [enabled by default]
foreach (var text_element in this) {
^
In file included from /home/czl/Documents/finalterm-master/build/src/TerminalOutput.c:35:0:
/usr/include/gee-0.8/gee.h:1363:6: note: expected ‘struct GeeAbstractCollection *’ but argument is of type ‘struct GeeCollection
gint gee_abstract_collection_get_size (GeeAbstractCollection
self);
^
/home/czl/Documents/finalterm-master/src/TerminalOutput.vala: In function ‘terminal_output_output_line_get_text_element_from_index’:
/home/czl/Documents/finalterm-master/src/TerminalOutput.vala:819:3: warning: passing argument 1 of ‘gee_abstract_collection_get_size’ from incompatible pointer type [enabled by default]
foreach (var current_element in this) {
^
In file included from /home/czl/Documents/finalterm-master/build/src/TerminalOutput.c:35:0:
/usr/include/gee-0.8/gee.h:1363:6: note: expected ‘struct GeeAbstractCollection *’ but argument is of type ‘struct GeeCollection
gint gee_abstract_collection_get_size (GeeAbstractCollection
self);
^
/home/czl/Documents/finalterm-master/src/TerminalOutput.vala: In function ‘terminal_output_text_element_get_text_menu_elements’:
/home/czl/Documents/finalterm-master/src/TerminalOutput.vala:862:5: warning: passing argument 1 of ‘gee_abstract_collection_get_size’ from incompatible pointer type [enabled by default]
foreach (var text_element in old_text_elements) {
^
In file included from /home/czl/Documents/finalterm-master/build/src/TerminalOutput.c:35:0:
/usr/include/gee-0.8/gee.h:1363:6: note: expected ‘struct GeeAbstractCollection *’ but argument is of type ‘struct GeeCollection
gint gee_abstract_collection_get_size (GeeAbstractCollection
self);
^
/usr/share/vala-0.22/vapi/glib-2.0.vapi: In function ‘g_unichar_to_string’:
/usr/share/vala-0.22/vapi/glib-2.0.vapi:856:2: warning: passing argument 2 of ‘g_unichar_to_utf8’ discards ‘const’ qualifier from pointer target type [enabled by default]
this.to_utf8 (str);
^
In file included from /usr/include/glib-2.0/glib/gstring.h:33:0,
from /usr/include/glib-2.0/glib/giochannel.h:34,
from /usr/include/glib-2.0/glib.h:54,
from /home/czl/Documents/finalterm-master/build/src/TerminalOutput.c:33:
/usr/include/glib-2.0/glib/gunicode.h:738:11: note: expected ‘gchar *’ but argument is of type ‘const gchar *’
gint g_unichar_to_utf8 (gunichar c,
^
[ 21%] Building C object CMakeFiles/finalterm.dir/src/CharacterAttributes.c.o
[ 25%] Building C object CMakeFiles/finalterm.dir/src/TerminalView.c.o
/home/czl/Documents/finalterm-master/src/TerminalView.vala: In function ‘terminal_view_construct’:
/home/czl/Documents/finalterm-master/src/TerminalView.vala:46:2: warning: ‘clutter_rectangle_new’ is deprecated (declared at /usr/include/clutter-1.0/clutter/deprecated/clutter-rectangle.h:87): Use 'clutter_actor_new' instead [-Wdeprecated-declarations]
gutter = new Clutter.Rectangle();
^
/home/czl/Documents/finalterm-master/src/TerminalView.vala:47:2: warning: ‘clutter_container_add’ is deprecated (declared at /usr/include/clutter-1.0/clutter/deprecated/clutter-container.h:38): Use 'clutter_actor_add_child' instead [-Wdeprecated-declarations]
container.add(gutter);
^
/home/czl/Documents/finalterm-master/src/TerminalView.vala:51:2: warning: ‘clutter_rectangle_set_border_width’ is deprecated (declared at /usr/include/clutter-1.0/clutter/deprecated/clutter-rectangle.h:104) [-Wdeprecated-declarations]
gutter.border_width = 1;
^
/home/czl/Documents/finalterm-master/src/TerminalView.vala:55:2: warning: ‘clutter_container_add’ is deprecated (declared at /usr/include/clutter-1.0/clutter/deprecated/clutter-container.h:38): Use 'clutter_actor_add_child' instead [-Wdeprecated-declarations]
container.add(terminal_output_view);
^
/home/czl/Documents/finalterm-master/src/TerminalView.vala:57:2: warning: ‘clutter_container_add’ is deprecated (declared at /usr/include/clutter-1.0/clutter/deprecated/clutter-container.h:38): Use 'clutter_actor_add_child' instead [-Wdeprecated-declarations]
add(container);
^
/home/czl/Documents/finalterm-master/src/TerminalView.vala:82:2: warning: ‘clutter_container_add’ is deprecated (declared at /usr/include/clutter-1.0/clutter/deprecated/clutter-container.h:38): Use 'clutter_actor_add_child' instead [-Wdeprecated-declarations]
status_container.add(progress_bar);
^
/home/czl/Documents/finalterm-master/src/TerminalView.vala:87:2: warning: ‘clutter_container_add’ is deprecated (declared at /usr/include/clutter-1.0/clutter/deprecated/clutter-container.h:38): Use 'clutter_actor_add_child' instead [-Wdeprecated-declarations]
status_container.add(progress_label_shadow);
^
/home/czl/Documents/finalterm-master/src/TerminalView.vala:90:2: warning: ‘clutter_container_add’ is deprecated (declared at /usr/include/clutter-1.0/clutter/deprecated/clutter-container.h:38): Use 'clutter_actor_add_child' instead [-Wdeprecated-declarations]
status_container.add(progress_label);
^
/home/czl/Documents/finalterm-master/src/TerminalView.vala:92:2: warning: ‘clutter_container_add’ is deprecated (declared at /usr/include/clutter-1.0/clutter/deprecated/clutter-container.h:38): Use 'clutter_actor_add_child' instead [-Wdeprecated-declarations]
add(status_container);
^
/home/czl/Documents/finalterm-master/src/TerminalView.vala: In function ‘terminal_view_on_settings_changed’:
/home/czl/Documents/finalterm-master/src/TerminalView.vala:118:2: warning: ‘clutter_rectangle_set_color’ is deprecated (declared at /usr/include/clutter-1.0/clutter/deprecated/clutter-rectangle.h:97): Use 'clutter_actor_set_background_color' instead [-Wdeprecated-declarations]
gutter.color = Settings.get_default().theme.gutter_color;
^
/home/czl/Documents/finalterm-master/src/TerminalView.vala:119:2: warning: ‘clutter_rectangle_set_border_color’ is deprecated (declared at /usr/include/clutter-1.0/clutter/deprecated/clutter-rectangle.h:112) [-Wdeprecated-declarations]
gutter.border_color = Settings.get_default().theme.gutter_border_color;
^
/home/czl/Documents/finalterm-master/src/TerminalView.vala: In function ‘_lambda12’:
/home/czl/Documents/finalterm-master/src/TerminalView.vala:186:3: warning: ‘clutter_container_remove’ is deprecated (declared at /usr/include/clutter-1.0/clutter/deprecated/clutter-container.h:52): Use 'clutter_actor_remove_child' instead [-Wdeprecated-declarations]
get_parent().remove(menu_button);
^
/home/czl/Documents/finalterm-master/src/TerminalView.vala:186:3: warning: passing argument 2 of ‘clutter_container_remove’ from incompatible pointer type [enabled by default]
In file included from /usr/include/clutter-1.0/clutter/clutter-deprecated.h:22:0,
from /usr/include/clutter-1.0/clutter/clutter.h:114,
from /usr/include/mx-1.0/mx/mx-actor-manager.h:27,
from /usr/include/mx-1.0/mx/mx.h:29,
from /home/czl/Documents/finalterm-master/build/src/TerminalView.c:29:
/usr/include/clutter-1.0/clutter/deprecated/clutter-container.h:52:17: note: expected ‘struct ClutterActor *’ but argument is of type ‘struct MxButton *’
void clutter_container_remove (ClutterContainer *container,
^
/home/czl/Documents/finalterm-master/src/TerminalView.vala: In function ‘_lambda15’:
/home/czl/Documents/finalterm-master/src/TerminalView.vala:198:2: warning: ‘clutter_container_add’ is deprecated (declared at /usr/include/clutter-1.0/clutter/deprecated/clutter-container.h:38): Use 'clutter_actor_add_child' instead [-Wdeprecated-declarations]
get_parent().add(cursor);
^
/home/czl/Documents/finalterm-master/src/TerminalView.vala: In function ‘terminal_output_view_construct’:
/home/czl/Documents/finalterm-master/src/TerminalView.vala:154:2: warning: ‘clutter_container_add’ is deprecated (declared at /usr/include/clutter-1.0/clutter/deprecated/clutter-container.h:38): Use 'clutter_actor_add_child' instead [-Wdeprecated-declarations]
add(line_container);
^
/home/czl/Documents/finalterm-master/src/TerminalView.vala:193:2: warning: ‘clutter_container_add’ is deprecated (declared at /usr/include/clutter-1.0/clutter/deprecated/clutter-container.h:38): Use 'clutter_actor_add_child' instead [-Wdeprecated-declarations]
menu_button.add(menu_button_label);
^
/home/czl/Documents/finalterm-master/src/TerminalView.vala: In function ‘__lambda13’:
/home/czl/Documents/finalterm-master/src/TerminalView.vala:226:2: warning: ‘clutter_container_remove’ is deprecated (declared at /usr/include/clutter-1.0/clutter/deprecated/clutter-container.h:52): Use 'clutter_actor_remove_child' instead [-Wdeprecated-declarations]
get_parent().remove(menu_button);
^
/home/czl/Documents/finalterm-master/src/TerminalView.vala:226:2: warning: passing argument 2 of ‘clutter_container_remove’ from incompatible pointer type [enabled by default]
In file included from /usr/include/clutter-1.0/clutter/clutter-deprecated.h:22:0,
from /usr/include/clutter-1.0/clutter/clutter.h:114,
from /usr/include/mx-1.0/mx/mx-actor-manager.h:27,
from /usr/include/mx-1.0/mx/mx.h:29,
from /home/czl/Documents/finalterm-master/build/src/TerminalView.c:29:
/usr/include/clutter-1.0/clutter/deprecated/clutter-container.h:52:17: note: expected ‘struct ClutterActor *’ but argument is of type ‘struct MxButton
void clutter_container_remove (ClutterContainer container,
^
/home/czl/Documents/finalterm-master/src/TerminalView.vala: In function ‘terminal_output_view_add_line_views’:
/home/czl/Documents/finalterm-master/src/TerminalView.vala:249:5: warning: passing argument 1 of ‘gee_abstract_collection_get_size’ from incompatible pointer type [enabled by default]
for (int i = line_container.get_line_count(); i < terminal.terminal_output.size; i++) {
^
In file included from /home/czl/Documents/finalterm-master/build/src/TerminalView.c:37:0:
/usr/include/gee-0.8/gee.h:1363:6: note: expected ‘struct GeeAbstractCollection ’ but argument is of type ‘struct GeeCollection
gint gee_abstract_collection_get_size (GeeAbstractCollection
self);
^
/home/czl/Documents/finalterm-master/src/TerminalView.vala: In function ‘terminal_output_view_on_line_view_text_menu_element_hovered’:
/home/czl/Documents/finalterm-master/src/TerminalView.vala:318:2: warning: ‘clutter_container_add’ is deprecated (declared at /usr/include/clutter-1.0/clutter/deprecated/clutter-container.h:38): Use 'clutter_actor_add_child' instead [-Wdeprecated-declarations]
get_parent().add(menu_button);
^
/home/czl/Documents/finalterm-master/src/TerminalView.vala: In function ‘terminal_output_view_render_terminal_cursor’:
/home/czl/Documents/finalterm-master/src/TerminalView.vala:379:10: warning: assignment from incompatible pointer type [enabled by default]
cursor.clutter_text.font_name = Settings.get_default().terminal_font_name;
^
/home/czl/Documents/finalterm-master/src/TerminalView.vala: In function ‘terminal_output_view_adjust_scrolling_space’:
/home/czl/Documents/finalterm-master/src/TerminalView.vala:417:2: warning: passing argument 1 of ‘gee_abstract_collection_get_size’ from incompatible pointer type [enabled by default]
int additional_lines = terminal.terminal_output.screen_offset +
^
In file included from /home/czl/Documents/finalterm-master/build/src/TerminalView.c:37:0:
/usr/include/gee-0.8/gee.h:1363:6: note: expected ‘struct GeeAbstractCollection ’ but argument is of type ‘struct GeeCollection
gint gee_abstract_collection_get_size (GeeAbstractCollection
self);
^
/home/czl/Documents/finalterm-master/src/TerminalView.vala: In function ‘line_container_class_init’:
/home/czl/Documents/finalterm-master/src/TerminalView.vala:560:40: warning: assignment from incompatible pointer type [enabled by default]
public class LineContainer : Clutter.Actor, Mx.Scrollable {
^
/home/czl/Documents/finalterm-master/src/TerminalView.vala:560:36: warning: assignment from incompatible pointer type [enabled by default]
public class LineContainer : Clutter.Actor, Mx.Scrollable {
^
[ 28%] Building C object CMakeFiles/finalterm.dir/src/LineView.c.o
/home/czl/Documents/finalterm-master/src/LineView.vala: In function ‘line_view_construct’:
/home/czl/Documents/finalterm-master/src/LineView.vala:47:2: warning: ‘clutter_box_layout_set_expand’ is deprecated (declared at /usr/include/clutter-1.0/clutter/clutter-box-layout.h:134) [-Wdeprecated-declarations]
(layout_manager as Clutter.BoxLayout).set_expand(text_container, true);
^
/home/czl/Documents/finalterm-master/src/LineView.vala:48:2: warning: ‘clutter_box_layout_set_fill’ is deprecated (declared at /usr/include/clutter-1.0/clutter/clutter-box-layout.h:124) [-Wdeprecated-declarations]
(layout_manager as Clutter.BoxLayout).set_fill(text_container, true, false);
^
/home/czl/Documents/finalterm-master/src/LineView.vala:56:2: warning: ‘clutter_container_add’ is deprecated (declared at /usr/include/clutter-1.0/clutter/deprecated/clutter-container.h:38): Use 'clutter_actor_add_child' instead [-Wdeprecated-declarations]
add(text_container);
^
/home/czl/Documents/finalterm-master/src/LineView.vala: In function ‘line_view_get_markup’:
/home/czl/Documents/finalterm-master/src/LineView.vala:182:3: warning: passing argument 1 of ‘gee_abstract_collection_get_size’ from incompatible pointer type [enabled by default]
foreach (var text_element in output_line) {
^
In file included from /home/czl/Documents/finalterm-master/build/src/LineView.c:29:0:
/usr/include/gee-0.8/gee.h:1363:6: note: expected ‘struct GeeAbstractCollection ’ but argument is of type ‘struct GeeCollection
gint gee_abstract_collection_get_size (GeeAbstractCollection
self);
^
[ 32%] Building C object CMakeFiles/finalterm.dir/src/TerminalWidget.c.o
/home/czl/Documents/finalterm-master/src/TerminalWidget.vala: In function ‘terminal_widget_construct’:
/home/czl/Documents/finalterm-master/src/TerminalWidget.vala:74:2: warning: ‘clutter_container_add’ is deprecated (declared at /usr/include/clutter-1.0/clutter/deprecated/clutter-container.h:38): Use 'clutter_actor_add_child' instead [-Wdeprecated-declarations]
stage.add(terminal_view);
^
[ 35%] Building C object CMakeFiles/finalterm.dir/src/NestingContainer.c.o
/home/czl/Documents/finalterm-master/src/NestingContainer.vala: In function ‘nesting_container_construct_with_child’:
/home/czl/Documents/finalterm-master/src/NestingContainer.vala:65:9: warning: assignment from incompatible pointer type [enabled by default]
if (child.parent == null) {
^
/home/czl/Documents/finalterm-master/src/NestingContainer.vala: In function ‘nesting_container_do_add_tab’:
/home/czl/Documents/finalterm-master/src/NestingContainer.vala:121:10: warning: assignment from incompatible pointer type [enabled by default]
if (parent is Gtk.Notebook && parent.parent is NestingContainer) {
^
/home/czl/Documents/finalterm-master/src/NestingContainer.vala:121:11: warning: assignment from incompatible pointer type [enabled by default]
if (parent is Gtk.Notebook && parent.parent is NestingContainer) {
^
/home/czl/Documents/finalterm-master/src/NestingContainer.vala:121:11: warning: assignment from incompatible pointer type [enabled by default]
if (parent is Gtk.Notebook && parent.parent is NestingContainer) {
^
/home/czl/Documents/finalterm-master/src/NestingContainer.vala:123:11: warning: assignment from incompatible pointer type [enabled by default]
(parent.parent as NestingContainer).do_add_tab();
^
/home/czl/Documents/finalterm-master/src/NestingContainer.vala:123:12: warning: assignment from incompatible pointer type [enabled by default]
(parent.parent as NestingContainer).do_add_tab();
^
/home/czl/Documents/finalterm-master/src/NestingContainer.vala: In function ‘___lambda45’:
/home/czl/Documents/finalterm-master/src/NestingContainer.vala:310:16: warning: comparison of distinct pointer types lacks a cast [enabled by default]
if (child == paned.get_child1()) {
^
/home/czl/Documents/finalterm-master/src/NestingContainer.vala:312:17: warning: comparison of distinct pointer types lacks a cast [enabled by default]
} else if (child == paned.get_child2()) {
^
[ 39%] Building C object CMakeFiles/finalterm.dir/src/Autocompletion.c.o
Autocompletion.c: In function ‘_autocompletion_filter_function_scrollable_list_view_filter_function’:
Autocompletion.c:300:2: warning: passing argument 2 of ‘autocompletion_filter_function’ discards ‘const’ qualifier from pointer target type [enabled by default]
/home/czl/Documents/finalterm-master/build/src/Autocompletion.c:208:17: note: expected ‘struct AutocompletionAutocompletionEntry ’ but argument is of type ‘gconstpointer’
static gboolean autocompletion_filter_function (Autocompletion
self, AutocompletionAutocompletionEntry
item);
^
Autocompletion.c: In function ‘_autocompletion_sort_function_scrollable_list_view_sort_function’:
Autocompletion.c:309:2: warning: passing argument 2 of ‘autocompletion_sort_function’ discards ‘const’ qualifier from pointer target type [enabled by default]
/home/czl/Documents/finalterm-master/build/src/Autocompletion.c:211:13: note: expected ‘struct AutocompletionAutocompletionEntry ’ but argument is of type ‘gconstpointer’
static gint autocompletion_sort_function (Autocompletion
self, AutocompletionAutocompletionEntry
item_1, AutocompletionAutocompletionEntry
item_2);
^
Autocompletion.c:309:2: warning: passing argument 3 of ‘autocompletion_sort_function’ discards ‘const’ qualifier from pointer target type [enabled by default]
/home/czl/Documents/finalterm-master/build/src/Autocompletion.c:211:13: note: expected ‘struct AutocompletionAutocompletionEntry ’ but argument is of type ‘gconstpointer’
static gint autocompletion_sort_function (Autocompletion
self, AutocompletionAutocompletionEntry
item_1, AutocompletionAutocompletionEntry
item_2);
^
/home/czl/Documents/finalterm-master/src/Autocompletion.vala: In function ‘autocompletion_construct’:
/home/czl/Documents/finalterm-master/src/Autocompletion.vala:48:2: warning: ‘clutter_container_add’ is deprecated (declared at /usr/include/clutter-1.0/clutter/deprecated/clutter-container.h:38): Use 'clutter_actor_add_child' instead [-Wdeprecated-declarations]
stage.add(scrollable_list_view);
^
/home/czl/Documents/finalterm-master/src/Autocompletion.vala: In function ‘autocompletion_add_command’:
/home/czl/Documents/finalterm-master/src/Autocompletion.vala:105:3: warning: passing argument 1 of ‘gee_abstract_collection_get_size’ from incompatible pointer type [enabled by default]
foreach (var entry in entries) {
^
In file included from /home/czl/Documents/finalterm-master/build/src/Autocompletion.c:30:0:
/usr/include/gee-0.8/gee.h:1363:6: note: expected ‘struct GeeAbstractCollection *’ but argument is of type ‘struct GeeCollection
gint gee_abstract_collection_get_size (GeeAbstractCollection
self);
^
/home/czl/Documents/finalterm-master/src/Autocompletion.vala: In function ‘autocompletion_autocompletion_entry_view_real_construct’:
/home/czl/Documents/finalterm-master/src/Autocompletion.vala:240:9: warning: assignment from incompatible pointer type [enabled by default]
clutter_text.line_wrap = true;
^
/home/czl/Documents/finalterm-master/src/Autocompletion.vala:241:9: warning: assignment from incompatible pointer type [enabled by default]
clutter_text.line_wrap_mode = Pango.WrapMode.WORD_CHAR;
^
[ 42%] Building C object CMakeFiles/finalterm.dir/src/NotifyingList.c.o
/home/czl/Documents/finalterm-master/src/NotifyingList.vala: In function ‘notifying_list_real_add’:
/home/czl/Documents/finalterm-master/src/NotifyingList.vala:39:2: warning: passing argument 1 of ‘gee_abstract_collection_get_size’ from incompatible pointer type [enabled by default]
item_inserted(size - 1, item);
^
In file included from /home/czl/Documents/finalterm-master/build/src/NotifyingList.c:32:0:
/usr/include/gee-0.8/gee.h:1363:6: note: expected ‘struct GeeAbstractCollection *’ but argument is of type ‘struct GeeCollection
gint gee_abstract_collection_get_size (GeeAbstractCollection
self);
^
/home/czl/Documents/finalterm-master/src/NotifyingList.vala: In function ‘notifying_list_real_clear’:
/home/czl/Documents/finalterm-master/src/NotifyingList.vala:69:3: warning: passing argument 1 of ‘gee_abstract_collection_get_size’ from incompatible pointer type [enabled by default]
for (int i = items.size - 1; i >= 0; i--) {
^
In file included from /home/czl/Documents/finalterm-master/build/src/NotifyingList.c:32:0:
/usr/include/gee-0.8/gee.h:1363:6: note: expected ‘struct GeeAbstractCollection *’ but argument is of type ‘struct GeeCollection
gint gee_abstract_collection_get_size (GeeAbstractCollection
self);
^
/home/czl/Documents/finalterm-master/src/NotifyingList.vala: In function ‘notifying_list_add_all’:
/home/czl/Documents/finalterm-master/src/NotifyingList.vala:77:2: warning: passing argument 1 of ‘gee_abstract_collection_get_size’ from incompatible pointer type [enabled by default]
var original_size = size;
^
In file included from /home/czl/Documents/finalterm-master/build/src/NotifyingList.c:32:0:
/usr/include/gee-0.8/gee.h:1363:6: note: expected ‘struct GeeAbstractCollection *’ but argument is of type ‘struct GeeCollection
gint gee_abstract_collection_get_size (GeeAbstractCollection
self);
^
[ 46%] Building C object CMakeFiles/finalterm.dir/src/ScrollableListView.c.o
/home/czl/Documents/finalterm-master/src/ScrollableListView.vala: In function ‘scrollable_list_view_construct’:
/home/czl/Documents/finalterm-master/src/ScrollableListView.vala:32:2: warning: ‘clutter_container_add’ is deprecated (declared at /usr/include/clutter-1.0/clutter/deprecated/clutter-container.h:38): Use 'clutter_actor_add_child' instead [-Wdeprecated-declarations]
add(scroll_view);
^
/home/czl/Documents/finalterm-master/src/ScrollableListView.vala:51:2: warning: passing argument 2 of ‘mx_list_view_set_factory’ from incompatible pointer type [enabled by default]
list_view.factory = new ItemViewFactory(item_view_type);
^
In file included from /usr/include/mx-1.0/mx/mx.h:61:0,
from /home/czl/Documents/finalterm-master/build/src/ScrollableListView.c:29:
/usr/include/mx-1.0/mx/mx-list-view.h:104:15: note: expected ‘struct MxItemFactory *’ but argument is of type ‘struct GObject *’
void mx_list_view_set_factory (MxListView *list_view,
^
/home/czl/Documents/finalterm-master/src/ScrollableListView.vala:56:2: warning: ‘clutter_container_add’ is deprecated (declared at /usr/include/clutter-1.0/clutter/deprecated/clutter-container.h:38): Use 'clutter_actor_add_child' instead [-Wdeprecated-declarations]
scroll_view.add(list_view);
^
/home/czl/Documents/finalterm-master/src/ScrollableListView.vala:59:3: warning: passing argument 1 of ‘gee_abstract_collection_get_size’ from incompatible pointer type [enabled by default]
foreach (var item in list) {
^
In file included from /home/czl/Documents/finalterm-master/build/src/ScrollableListView.c:30:0:
/usr/include/gee-0.8/gee.h:1363:6: note: expected ‘struct GeeAbstractCollection ’ but argument is of type ‘struct GeeCollection
gint gee_abstract_collection_get_size (GeeAbstractCollection
self);
^
/home/czl/Documents/finalterm-master/src/ScrollableListView.vala: In function ‘scrollable_list_view_set_sort_function’:
/home/czl/Documents/finalterm-master/src/ScrollableListView.vala:89:2: warning: passing argument 3 of ‘clutter_model_set_sort’ from incompatible pointer type [enabled by default]
list_model.set_sort(0, (model, a, b) => {
^
In file included from /usr/include/clutter-1.0/clutter/clutter-list-model.h:35:0,
from /usr/include/clutter-1.0/clutter/clutter.h:78,
from /home/czl/Documents/finalterm-master/build/src/ScrollableListView.c:28:
/usr/include/clutter-1.0/clutter/clutter-model.h:246:23: note: expected ‘ClutterModelSortFunc’ but argument is of type ‘gint (
)(struct ClutterModel *, struct GValue *, struct GValue *, void *)’
void clutter_model_set_sort (ClutterModel model,
^
[ 50%] Building C object CMakeFiles/finalterm.dir/src/Utilities.c.o
/home/czl/Documents/finalterm-master/src/Utilities.vala: In function ‘utilities_get_enum_value_from_name’:
/home/czl/Documents/finalterm-master/src/Utilities.vala:117:16: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
return (T)enum_value.value;
^
/home/czl/Documents/finalterm-master/src/Utilities.vala:117:101: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
return (T)enum_value.value;
^
/home/czl/Documents/finalterm-master/src/Utilities.vala:117:142: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
return (T)enum_value.value;
^
/home/czl/Documents/finalterm-master/src/Utilities.vala:124:17: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
return (T)flags_value.value;
^
/home/czl/Documents/finalterm-master/src/Utilities.vala:124:102: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
return (T)flags_value.value;
^
/home/czl/Documents/finalterm-master/src/Utilities.vala:124:143: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
return (T)flags_value.value;
^
[ 53%] Building C object CMakeFiles/finalterm.dir/src/SettingsWindow.c.o
/home/czl/Documents/finalterm-master/src/SettingsWindow.vala: In function ‘settings_window_construct’:
/home/czl/Documents/finalterm-master/src/SettingsWindow.vala:28:2: warning: ‘GtkStock’ is deprecated [-Wdeprecated-declarations]
add_buttons(Gtk.Stock.CLOSE, Gtk.ResponseType.CANCEL);
^
/home/czl/Documents/finalterm-master/src/SettingsWindow.vala:53:2: warning: passing argument 2 of ‘gtk_font_chooser_set_filter_func’ from incompatible pointer type [enabled by default]
terminal_font.set_filter_func((family, face) => {
^
In file included from /usr/include/gtk-3.0/gtk/gtk.h:103:0,
from /home/czl/Documents/finalterm-master/build/src/SettingsWindow.c:28:
/usr/include/gtk-3.0/gtk/gtkfontchooser.h:111:18: note: expected ‘GtkFontFilterFunc’ but argument is of type ‘gboolean (
)(struct PangoFontFamily *, struct PangoFontFace *, void *)’
void gtk_font_chooser_set_filter_func (GtkFontChooser *fontchooser,
^
[ 57%] Building C object CMakeFiles/finalterm.dir/src/TextMenu.c.o
/home/czl/Documents/finalterm-master/src/TextMenu.vala: In function ‘_____lambda9’:
/home/czl/Documents/finalterm-master/src/TextMenu.vala:85:3: warning: passing argument 1 of ‘gee_abstract_collection_get_size’ from incompatible pointer type [enabled by default]
foreach (var command in commands) {
^
In file included from /home/czl/Documents/finalterm-master/build/src/TextMenu.c:32:0:
/usr/include/gee-0.8/gee.h:1363:6: note: expected ‘struct GeeAbstractCollection *’ but argument is of type ‘struct GeeCollection
gint gee_abstract_collection_get_size (GeeAbstractCollection
self);
^
[ 60%] Building C object CMakeFiles/finalterm.dir/src/ColorScheme.c.o
[ 64%] Building C object CMakeFiles/finalterm.dir/src/Theme.c.o
[ 67%] Building C object CMakeFiles/finalterm.dir/src/KeyBindings.c.o
/usr/share/vala-0.22/vapi/glib-2.0.vapi: In function ‘string_strip’:
/usr/share/vala-0.22/vapi/glib-2.0.vapi:1086:2: warning: passing argument 1 of ‘g_strchug’ discards ‘const’ qualifier from pointer target type [enabled by default]
result.strip ();
^
In file included from /usr/include/glib-2.0/glib.h:79:0,
from /home/czl/Documents/finalterm-master/build/src/KeyBindings.c:26:
/usr/include/glib-2.0/glib/gstrfuncs.h:175:23: note: expected ‘gchar *’ but argument is of type ‘const gchar
gchar
g_strchug (gchar string);
^
[ 71%] Building C object CMakeFiles/finalterm.dir/src/Command.c.o
[ 75%] Building C object CMakeFiles/finalterm.dir/src/Settings.c.o
/home/czl/Documents/finalterm-master/src/Settings.vala: In function ‘settings_set_shell_arguments’:
/home/czl/Documents/finalterm-master/src/Settings.vala:126:2: warning: passing argument 3 of ‘g_settings_set_strv’ from incompatible pointer type [enabled by default]
set { settings.set_strv("shell-arguments", value); }
^
In file included from /usr/include/glib-2.0/gio/gio.h:110:0,
from /home/czl/Documents/finalterm-master/build/src/Settings.c:28:
/usr/include/glib-2.0/gio/gsettings.h:173:25: note: expected ‘const gchar * const
’ but argument is of type ‘gchar **’
gboolean g_settings_set_strv (GSettings *settings,
^
[ 78%] Building C object CMakeFiles/finalterm.dir/src/Metrics.c.o
/home/czl/Documents/finalterm-master/src/Metrics.vala: In function ‘metrics_print_block_statistics’:
/home/czl/Documents/finalterm-master/src/Metrics.vala:88:12: warning: assignment discards ‘const’ qualifier from pointer target type [enabled by default]
double total_time = entry.value.timer.elapsed();
^
/home/czl/Documents/finalterm-master/src/Metrics.vala:89:12: warning: assignment discards ‘const’ qualifier from pointer target type [enabled by default]
double mean_time = total_time / (double)entry.value.stop_timer_count;
^
/home/czl/Documents/finalterm-master/src/Metrics.vala💯12: warning: assignment discards ‘const’ qualifier from pointer target type [enabled by default]
message_builder.append_printf(
(",\tCycles: %i"), entry.value.stop_timer_count);
^
/home/czl/Documents/finalterm-master/src/Metrics.vala:102:12: warning: assignment discards ‘const’ qualifier from pointer target type [enabled by default]
if (entry.value.stop_timer_count < entry.value.start_timer_count)
^
/home/czl/Documents/finalterm-master/src/Metrics.vala:102:12: warning: assignment discards ‘const’ qualifier from pointer target type [enabled by default]
if (entry.value.stop_timer_count < entry.value.start_timer_count)
^
Linking C executable finalterm
[ 78%] Built target finalterm
Scanning dependencies of target translations
[ 82%] Generating ../data/finalterm.desktop.in
[ 85%] Generating ../data/finalterm.desktop
[ 89%] Generating desktopinstall.stamp
[ 92%] Generating hu.gmo
[ 96%] Generating de.gmo
[100%] Build translations.
[100%] Built target translations

czl@linuxlite:~/Documents/finalterm-master/build$ sudo make install
[ 78%] Built target finalterm
[ 82%] Build translations.
[100%] Built target translations
Install the project...
-- Install configuration: ""
-- Installing: /usr/local/share/glib-2.0/schemas/org.gnome.finalterm.gschema.xml
-- Compiling GSettings schemas
-- Installing: /usr/local/share/man/man1/finalterm.1
-- Installing: /usr/local/bin/finalterm
-- Installing: /usr/local/share/finalterm/ColorSchemes
-- Installing: /usr/local/share/finalterm/ColorSchemes/solarized.ftcolors
-- Installing: /usr/local/share/finalterm/ColorSchemes/tomorrow.ftcolors
-- Installing: /usr/local/share/finalterm/ColorSchemes/monokai.ftcolors
-- Installing: /usr/local/share/finalterm/ColorSchemes/railscasts.ftcolors
-- Installing: /usr/local/share/finalterm/ColorSchemes/mocha.ftcolors
-- Installing: /usr/local/share/finalterm/ColorSchemes/ocean.ftcolors
-- Installing: /usr/local/share/finalterm/ColorSchemes/chalk.ftcolors
-- Installing: /usr/local/share/finalterm/ColorSchemes/default.ftcolors
-- Installing: /usr/local/share/finalterm/ColorSchemes/ftcolors.erb
-- Installing: /usr/local/share/finalterm/ColorSchemes/greenscreen.ftcolors
-- Installing: /usr/local/share/finalterm/ColorSchemes/eighties.ftcolors
-- Installing: /usr/local/share/finalterm/KeyBindings
-- Installing: /usr/local/share/finalterm/KeyBindings/default.ftkeys
-- Installing: /usr/local/share/finalterm/Startup
-- Installing: /usr/local/share/finalterm/Startup/bash_startup
-- Installing: /usr/local/share/finalterm/Startup/preexec.bash
-- Installing: /usr/local/share/finalterm/TerminalCommands
-- Installing: /usr/local/share/finalterm/TerminalCommands/default.ftcommands
-- Installing: /usr/local/share/finalterm/Termlets
-- Installing: /usr/local/share/finalterm/Termlets/wget
-- Installing: /usr/local/share/finalterm/Termlets/ps
-- Installing: /usr/local/share/finalterm/Termlets/ls
-- Installing: /usr/local/share/finalterm/TextMenus
-- Installing: /usr/local/share/finalterm/TextMenus/ip_address.ftmenu
-- Installing: /usr/local/share/finalterm/TextMenus/filename.ftmenu
-- Installing: /usr/local/share/finalterm/TextMenus/dirname.ftmenu
-- Installing: /usr/local/share/finalterm/TextMenus/url.ftmenu
-- Installing: /usr/local/share/finalterm/TextMenus/pid.ftmenu
-- Installing: /usr/local/share/finalterm/Themes
-- Installing: /usr/local/share/finalterm/Themes/default
-- Installing: /usr/local/share/finalterm/Themes/default/style.css
-- Installing: /usr/local/share/finalterm/Themes/default/button-active.png
-- Installing: /usr/local/share/finalterm/Themes/default/button.png
-- Installing: /usr/local/share/finalterm/Themes/default/default.fttheme
-- Installing: /usr/local/share/icons/hicolor
-- Installing: /usr/local/share/icons/hicolor/22x22
-- Installing: /usr/local/share/icons/hicolor/22x22/apps
-- Installing: /usr/local/share/icons/hicolor/22x22/apps/final-term.png
-- Installing: /usr/local/share/icons/hicolor/96x96
-- Installing: /usr/local/share/icons/hicolor/96x96/apps
-- Installing: /usr/local/share/icons/hicolor/96x96/apps/final-term.png
-- Installing: /usr/local/share/icons/hicolor/scalable
-- Installing: /usr/local/share/icons/hicolor/scalable/apps
-- Installing: /usr/local/share/icons/hicolor/scalable/apps/final-term.svg
-- Installing: /usr/local/share/icons/hicolor/48x48
-- Installing: /usr/local/share/icons/hicolor/48x48/apps
-- Installing: /usr/local/share/icons/hicolor/48x48/apps/final-term.png
-- Installing: /usr/local/share/icons/hicolor/64x64
-- Installing: /usr/local/share/icons/hicolor/64x64/apps
-- Installing: /usr/local/share/icons/hicolor/64x64/apps/final-term.png
-- Installing: /usr/local/share/icons/hicolor/32x32
-- Installing: /usr/local/share/icons/hicolor/32x32/apps
-- Installing: /usr/local/share/icons/hicolor/32x32/apps/final-term.png
-- Installing: /usr/local/share/icons/hicolor/16x16
-- Installing: /usr/local/share/icons/hicolor/16x16/apps
-- Installing: /usr/local/share/icons/hicolor/16x16/apps/final-term.png
-- Installing: /usr/local/share/icons/hicolor/24x24
-- Installing: /usr/local/share/icons/hicolor/24x24/apps
-- Installing: /usr/local/share/icons/hicolor/24x24/apps/final-term.png
-- Installing: /usr/local/share/locale/hu/LC_MESSAGES/finalterm.mo
-- Installing: /usr/local/share/locale/de/LC_MESSAGES/finalterm.mo
-- Installing: /usr/local/share/applications/finalterm.desktop6. 用户正在编译 Final Term 项目,遇到了一些编译警告。让我分析一下这些警告:

有一些 Vala 编译警告,主要是关于:

未处理的错误(如 GLib.RegexError, GLib.IOChannelError)
已弃用的 API(如 Clutter.BoxLayout.set_expand, Clutter.Actor.paint 等)
可能未分配的参数(minimum_width, minimum_height)
不支持的委托复制
还有一些 C 编译警告,主要是关于:

丢弃 const 限定符
不兼容的指针类型
已弃用的函数(如 g_type_init)
这些警告虽然很多,但大多数是关于已弃用的 API 和一些小问题,不会阻止编译。让我继续查看编译过程,看看是否有错误导致编译失败。

从用户提供的输出来看,编译似乎正在进行中,还没有看到错误导致编译失败的信息。但输出被截断了,所以我需要查看完整的编译结果。

我应该告诉用户,这些警告是正常的,特别是对于一个已停止开发的项目,使用的是较旧的 API。只要没有错误,编译应该能够成功完成。

从编译输出来看,你正在成功编译 Final Term,虽然有一些警告,但这些都是正常的,不会阻止编译完成。

编译警告分析:
未处理的错误:如 GLib.RegexError 和 GLib.IOChannelError,这些是代码中未处理的异常
已弃用的 API:如 Clutter.BoxLayout.set_expand、Clutter.Actor.paint 等,这些是因为使用了较旧版本的库 API
参数问题:如 minimum_width 和 minimum_height 可能未分配
类型警告:如丢弃 const 限定符、不兼容的指针类型等
继续编译:
这些警告不会影响编译完成,你可以继续等待编译结束。如果编译成功,最后会显示 [100%] Built target finalterm。

安装:
编译完成后,运行以下命令安装:

bash
sudo make install
运行:
安装完成后,可以通过以下命令启动 Final Term:

bash
finalterm
注意事项:
由于 Final Term 已停止开发,这些警告是预期的,因为它使用的一些库 API 可能已经被弃用。但只要编译成功,软件应该可以正常运行。

如果编译过程中遇到错误而不是警告,请提供完整的错误信息,我会进一步帮助你解决问题。 用户现在看到的是Final Term的编译过程,已经成功完成了编译,显示了100%的构建目标,包括finalterm可执行文件和翻译文件。用户之前在编译过程中遇到了一些警告,但现在编译已经成功完成。

根据之前的对话,用户在Linux Lite 2.0上编译Final Term,现在编译已经成功,下一步应该是安装和运行。我需要告诉用户编译已经成功完成,然后指导他们如何安装和运行Final Term。

用户之前的问题是关于编译Final Term,现在编译成功了,我应该:

确认编译成功
指导用户安装
指导用户运行
提供可能的后续步骤和注意事项
由于用户使用的是Linux系统,我需要提供相应的命令和指导。

太好了!Final Term 编译成功完成,没有出现错误,只有一些预期的警告(这些是由于项目使用了一些已弃用的 API,但不影响功能)。

现在可以安装并运行 Final Term:
安装 Final Term:

bash
sudo make install
运行 Final Term:

bash
finalterm
可能的后续步骤:
创建桌面快捷方式:安装后,Final Term 应该会在应用菜单中出现,你可以将其固定到任务栏。
自定义配置:你可以修改 ~/.config/finalterm/ 目录下的配置文件来自定义 Final Term 的行为。
尝试功能:体验 Final Term 的特色功能,如智能命令补全、语义文本菜单等。
注意事项:
由于 Final Term 已停止开发,可能会与较新的系统组件存在兼容性问题。
如果运行时遇到问题,可以尝试从终端启动 finalterm 查看错误信息,以便定位问题。
Linux Lite 2.0 基于 Ubuntu 14.04 LTS,这个版本的系统库应该与 Final Term 的要求兼容。
恭喜你成功编译并安装了 Final Term!现在你可以体验这个创新性的终端模拟器了。`
7. 运行 Final Term
image
运行顺利😁😁😁😁😁