解决了依赖关系后不管是在根目录下还是在/src目录下输入make
进行编译,结果都会报错,一共有28个错误,错误具体如下所
示:
make[1]: 正在进入目录
`/home/lus/software/input_method/ibus-cloud-pinyin-read-only/src'
:: Generating C files for ibus-engine-cloud-pinyin ...
valac `cat valac-flags.txt` --pkg posix --thread --enable-checking --vapidir=.
--disable-warnings -C main.vala dbus-binding.vala pinyin-utils.vala
frontend-utils.vala config.vala database.vala lua-binding.vala ibus-engine.vala
dbus-binding.vala:67.9-67.28: error: only `null' is allowed as default value
for out parameters
out int cloud_length = &(DBusBinding.last_cloud_length)) {
^^^^^^^^^^^^^^^^^^^^
frontend-utils.vala:42.11-42.61: error: 1 extra arguments for `void
Notify.Notification.new (string summary, string? body, string? icon)'
= new Notify.Notification(title, content, icon, null);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
dbus-binding.vala:269.23-269.27: error: Argument 1: Cannot convert from
`char[]?' to `uint8[]'
if (fs.read(bytes, size, null) != size) return false;
^^^^^
dbus-binding.vala:293.23-293.27: error: Argument 1: Cannot convert from
`char[]?' to `uint8[]'
if (fs.read(bytes, size, null) != size) {
^^^^^
dbus-binding.vala:177.43-177.43: error: Argument 2: Cannot convert from `int'
to `GLib.Cancellable?'
fs.read((uint8[])pinyin_header, 4, null);
^
dbus-binding.vala:280.36-280.36: error: Argument 2: Cannot convert from `int'
to `GLib.Cancellable?'
if (fs.read((uint8[])data, 2, null) == 0)
^
dbus-binding.vala:220.42-220.49: error: Argument 2: Cannot convert from
`size_t' to `GLib.Cancellable?'
fs.read((uint8[]) freq_data, freq_len, null);
^^^^^^^^
** (valac:8248): CRITICAL **: vala_variable_get_variable_type: assertion `self
!= NULL' failed
** (valac:8248): CRITICAL **: vala_data_type_get_value_owned: assertion `self
!= NULL' failed
lua-binding.vala:52.7-52.32: error: Argument 1: Cannot convert from `int' to
`string'
foreach (var i in engines) {
^^^^^^^^^^^^^^^^^^^^^^^^^^
lua-binding.vala:53.40-53.44: error: The name `key' does not exist in the
context of `icp.LuaBinding.CloudEngine'
content += "\n %s: ".printf(i.key);
^^^^^
lua-binding.vala:54.13-54.19: error: The name `value' does not exist in the
context of `icp.LuaBinding.CloudEngine'
if (i.value.response_count == 0) content += "N/A";
^^^^^^^
lua-binding.vala:56.36-56.42: error: The name `value' does not exist in the
context of `icp.LuaBinding.CloudEngine'
content += "%.3f s".printf(i.value.response_time
^^^^^^^
lua-binding.vala:61.7-61.32: error: Argument 1: Cannot convert from `int' to
`string'
foreach (var i in engines) {
^^^^^^^^^^^^^^^^^^^^^^^^^^
lua-binding.vala:62.42-62.46: error: The name `key' does not exist in the
context of `icp.LuaBinding.CloudEngine'
content += "\n %s: %d".printf(i.key, i.value.response_count);
^^^^^
lua-binding.vala:62.49-62.55: error: The name `value' does not exist in the
context of `icp.LuaBinding.CloudEngine'
content += "\n %s: %d".printf(i.key, i.value.response_count);
^^^^^^^
lua-binding.vala:658.23-658.65: error: too few type arguments
thread_pool = new ThreadPool(do_string_internal, 1, true);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
lua-binding.vala:701.9-701.19: error: missing generic type arguments
thread_pool.push((void*)script_pool.last());
^^^^^^^^^^^
ibus-engine.vala:747.7-747.35: error: Private member
`icp.IBusBinding.CloudPinyinEngine.page_up' cannot be marked as override,
virtual, or abstract
private override void page_up() {
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ibus-engine.vala:621.51-621.57: error: The name `handled' does not exist in the
context of `icp.IBusBinding.CloudPinyinEngine.page_up'
if ("pgup" in actions) { page_up(); handled = true;}
^^^^^^^
ibus-engine.vala:754.7-754.37: error: Private member
`icp.IBusBinding.CloudPinyinEngine.page_down' cannot be marked as override,
virtual, or abstract
private override void page_down() {
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ibus-engine.vala:622.53-622.59: error: The name `handled' does not exist in the
context of `icp.IBusBinding.CloudPinyinEngine.page_down'
if ("pgdn" in actions) { page_down(); handled = true;}
^^^^^^^
ibus-engine.vala:770.7-770.45: error: Private member
`icp.IBusBinding.CloudPinyinEngine.candidate_clicked' cannot be marked as
override, virtual, or abstract
private override void candidate_clicked (uint index, uint button,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ibus-engine.vala:637.21-637.27: error: The name `handled' does not exist in the
context of `icp.IBusBinding.CloudPinyinEngine.candidate_clicked'
handled = true;
^^^^^^^
pinyin-utils.vala:821.7-821.42: error: Argument 1: Cannot convert from `int' to
`string'
foreach (var entry in consonant_ids)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
pinyin-utils.vala:822.31-822.41: error: The name `value' does not exist in the
context of `int'
consonant_reverse_ids[entry.value] = entry.key;
^^^^^^^^^^^
pinyin-utils.vala:822.46-822.54: error: The name `key' does not exist in the
context of `int'
consonant_reverse_ids[entry.value] = entry.key;
^^^^^^^^^
pinyin-utils.vala:824.7-824.38: error: Argument 1: Cannot convert from `int' to
`string'
foreach (var entry in vowel_ids)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
pinyin-utils.vala:825.27-825.37: error: The name `value' does not exist in the
context of `int'
vowel_reverse_ids[entry.value] = entry.key;
^^^^^^^^^^^
pinyin-utils.vala:825.42-825.50: error: The name `key' does not exist in the
context of `int'
vowel_reverse_ids[entry.value] = entry.key;
^^^^^^^^^
Compilation failed: 28 error(s), 0 warning(s)
make[1]: *** [main.c] 错误 1
make[1]:正在离开目录
`/home/lus/software/input_method/ibus-cloud-pinyin-read-only/src'
make: *** [src/ibus-engine-cloud-pinyin] 错误 2
有没有人用kubuntu 12.04LTS啊?
有没有人成功解决了上述问题啊。
Original issue reported on code.google.com by giraffe...@gmail.com on 25 Oct 2012 at 10:59
Original issue reported on code.google.com by
giraffe...@gmail.com
on 25 Oct 2012 at 10:59