安装ibus-cloud-pinyin出问题了,有人知道怎么解决吗?

重复贴和参考价值不大的帖子,版主维护
回复
褪色的白开水
帖子: 32
注册时间: 2011-04-04 14:03
送出感谢: 0
接收感谢: 0

安装ibus-cloud-pinyin出问题了,有人知道怎么解决吗?

#1

帖子 褪色的白开水 » 2011-05-14 16:32

none@None:~$ cd ./ibus-cloud-pinyin-read-only/
none@None:~/ibus-cloud-pinyin-read-only$ sudo make
[sudo] password for none:
make[1]: 正在进入目录 `/home/none/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);
^^^^^^^^
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: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: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,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
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: 25 error(s), 0 warning(s)
make[1]: *** [main.c] 错误 1
make[1]:正在离开目录 `/home/none/ibus-cloud-pinyin-read-only/src'
make: *** [src/ibus-engine-cloud-pinyin] 错误 2
none@None:~/ibus-cloud-pinyin-read-only$ sudo make install
make[1]: 正在进入目录 `/home/none/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);
^^^^^^^^
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: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: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,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
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: 25 error(s), 0 warning(s)
make[1]: *** [main.c] 错误 1
make[1]:正在离开目录 `/home/none/ibus-cloud-pinyin-read-only/src'
make: *** [src/ibus-engine-cloud-pinyin] 错误 2
none@None:~/ibus-cloud-pinyin-read-only$
scutdk
帖子: 298
注册时间: 2009-07-25 19:23
送出感谢: 3 次
接收感谢: 0

Re: 安装ibus-cloud-pinyin出问题了,有人知道怎么解决吗?

#2

帖子 scutdk » 2011-05-15 16:11

跟你一样,我也是25个错误。
装这个云拼音装了一天了,昨天一直都是说什么luasocket的问题,后来发现是因为我装的lua50造成的,但偏偏检查依赖性居然认为我装的是5.1,无语,所以死活出错。

但是这个编译出错还在找资料。。。

Ubuntu 桌面培训- 全中文官方文档,含汉化截图,提供PDF
scutdk
帖子: 298
注册时间: 2009-07-25 19:23
送出感谢: 3 次
接收感谢: 0

Re: 安装ibus-cloud-pinyin出问题了,有人知道怎么解决吗?

#3

帖子 scutdk » 2011-05-15 21:03

http://code.google.com/p/ibus-cloud-pinyin/wiki/Install
11.04 下缺省 valac 是0.12,编译出错。

在终端中输入valac --version 可以看到当前的valac版本号

换用0.10版搞定 sudo apt-get install valac-0.10

sudo update-alternatives --config valac
这里选择/usr/bin/valac-0.10这个版本的就行了。

Ubuntu 桌面培训- 全中文官方文档,含汉化截图,提供PDF
褪色的白开水
帖子: 32
注册时间: 2011-04-04 14:03
送出感谢: 0
接收感谢: 0

Re: 安装ibus-cloud-pinyin出问题了,有人知道怎么解决吗?

#4

帖子 褪色的白开水 » 2011-05-15 21:36

scutdk 写了:http://code.google.com/p/ibus-cloud-pinyin/wiki/Install
11.04 下缺省 valac 是0.12,编译出错。

在终端中输入valac --version 可以看到当前的valac版本号

换用0.10版搞定 sudo apt-get install valac-0.10

sudo update-alternatives --config valac
这里选择/usr/bin/valac-0.10这个版本的就行了。
我试了一下,结果还是一样
none@None:~/ibus-cloud-pinyin-read-only$ make
make[1]: 正在进入目录 `/home/none/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);
^^^^^^^^
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: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: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,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
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: 25 error(s), 0 warning(s)
make[1]: *** [main.c] 错误 1
make[1]:正在离开目录 `/home/none/ibus-cloud-pinyin-read-only/src'
make: *** [src/ibus-engine-cloud-pinyin] 错误 2
funicorn
帖子: 1131
注册时间: 2005-09-13 4:56
系统: Ubuntu QQ
送出感谢: 0
接收感谢: 47 次

Re: 安装ibus-cloud-pinyin出问题了,有人知道怎么解决吗?

#5

帖子 funicorn » 2011-05-16 16:24

一开是make也是25个错误,看了2楼的解释,把0.12卸载,装0.10,make成功。
添加ppa后只更新此ppa:
update-ppa()
{ sudo apt-get update -o Dir::Etc::sourcelist="sources.list.d/$1.list" -o Dir::Etc::sourceparts="-" -o APT::Get::List-Cleanup="0"
}
写入~/.bashrc,source一下,就可以直接用,是不是很方便?觉得方便就按个赞。
褪色的白开水
帖子: 32
注册时间: 2011-04-04 14:03
送出感谢: 0
接收感谢: 0

Re: 安装ibus-cloud-pinyin出问题了,有人知道怎么解决吗?

#6

帖子 褪色的白开水 » 2011-05-16 20:14

今天试了一下,神奇地可以了
scutdk
帖子: 298
注册时间: 2009-07-25 19:23
送出感谢: 3 次
接收感谢: 0

Re: 安装ibus-cloud-pinyin出问题了,有人知道怎么解决吗?

#7

帖子 scutdk » 2011-05-17 17:17

可以了就好。这个ibus云输入实在是太好用了,哈哈哈。 :em11

Ubuntu 桌面培训- 全中文官方文档,含汉化截图,提供PDF
oohyoou
帖子: 51
注册时间: 2010-05-27 17:01
送出感谢: 0
接收感谢: 0

Re: 安装ibus-cloud-pinyin出问题了,有人知道怎么解决吗?

#8

帖子 oohyoou » 2011-05-18 21:49

:em11 。。fc15也用上了
头像
liangyongsheng1990
帖子: 171
注册时间: 2008-11-05 17:37
送出感谢: 9 次
接收感谢: 0

Re: 安装ibus-cloud-pinyin出问题了,有人知道怎么解决吗?

#9

帖子 liangyongsheng1990 » 2011-06-17 6:38

我也遇到了同样的问题,我用的是arch,还不知道怎么搞到vala0.10
希望大家在问题解决之后能够在标题处添加已解决
南无阿弥陀佛
头像
男菜鸟
帖子: 1169
注册时间: 2008-12-16 14:01
来自: 漂在江湖
送出感谢: 14 次
接收感谢: 15 次

Re: 安装ibus-cloud-pinyin出问题了,有人知道怎么解决吗?

#10

帖子 男菜鸟 » 2011-06-17 23:02

Mark!!!
头像
wtry
帖子: 923
注册时间: 2009-03-18 9:26
送出感谢: 3 次
接收感谢: 0

Re: 安装ibus-cloud-pinyin出问题了,有人知道怎么解决吗?

#11

帖子 wtry » 2011-06-22 21:12

liangyongsheng1990 写了:我也遇到了同样的问题,我用的是arch,还不知道怎么搞到vala0.10

vala0.10

安装vala -010
头像
wtry
帖子: 923
注册时间: 2009-03-18 9:26
送出感谢: 3 次
接收感谢: 0

Re: 安装ibus-cloud-pinyin出问题了,有人知道怎么解决吗?

#12

帖子 wtry » 2011-06-22 22:29

arch用户很纠结

怎么编译都失败
先是同LZ问题一样,安装vala-010后解决
但又出现

frontend-utils.c:103:2: 错误:提供给函数‘notify_notification_new’的实参太多


求解……………… :em06 :em06 :em06
头像
风之鱼
帖子: 60
注册时间: 2010-07-03 3:37
送出感谢: 0
接收感谢: 0

Re: 安装ibus-cloud-pinyin出问题了,有人知道怎么解决吗?

#13

帖子 风之鱼 » 2011-07-27 19:49

:em11 感谢3楼。。
有作用么?http://www.gaozhouba.com .
Hs_Yeah
帖子: 10
注册时间: 2011-09-18 22:44
送出感谢: 0
接收感谢: 0

Re: 安装ibus-cloud-pinyin出问题了,有人知道怎么解决吗?

#14

帖子 Hs_Yeah » 2011-12-18 3:00

wtry 写了:arch用户很纠结

怎么编译都失败
先是同LZ问题一样,安装vala-010后解决
但又出现

frontend-utils.c:103:2: 错误:提供给函数‘notify_notification_new’的实参太多


求解……………… :em06 :em06 :em06
我用的Ubuntu 11.10,安装vala-010后也出现了这个问题, :em20
回复

回到 “归档贴”