rshuler / ibus-cloud-pinyin

Automatically exported from code.google.com/p/ibus-cloud-pinyin
GNU General Public License v3.0
0 stars 1 forks source link

2011-04-04编译失败 #76

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
UBUNTU 11.04 BETA1
jason@jason-Z360:~/ibus-cloud-pinyin$ ./find-dependencies.sh 
    lua5.1: 5.1.4
    glib-2.0: 2.28.4
    gthread-2.0: 2.28.4
    gdk-2.0: 2.24.3
    gtk+-2.0: 2.24.3
    ibus-1.0: 1.3.9
    atk: 1.91.92
    gee-1.0: 0.6.1
    dbus-glib-1: 0.92
    libnotify: 0.5.0
    sqlite3: 3.7.4
jason@jason-Z360:~/ibus-cloud-pinyin$ make
make[1]: Entering directory `/home/jason/ibus-cloud-pinyin/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] Error 1
make[1]: Leaving directory `/home/jason/ibus-cloud-pinyin/src'
make: *** [src/ibus-engine-cloud-pinyin] Error 2

Original issue reported on code.google.com by jason.li...@gmail.com on 4 Apr 2011 at 10:47

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
完全一样,fedora15 64bit

Original comment by charles....@gmail.com on 28 Jul 2011 at 6:34

GoogleCodeExporter commented 8 years ago
vala版本太高不兼容所致,卸载并安装

Original comment by biergaiz...@gmail.com on 7 Oct 2011 at 9:00

Attachments:

GoogleCodeExporter commented 8 years ago
sudo add-apt-repository ppa:vala-team/ppa
sudo apt-get install libvala-0.10-0 valac-0.10

Original comment by zane...@gmail.com on 12 Oct 2011 at 4:49