YuanhuiQu / ibus-cloud-pinyin

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

ubuntu11.10编译失败 #93

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
:: 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:269.35-269.42: error: Argument 2: Cannot pass out argument to 
non-output parameter
          if (!fs.read_all(bytes, out size, null)) return false;
                                  ^^^^^^^^
dbus-binding.vala:294.33-294.40: error: Argument 2: Cannot pass out argument to 
non-output parameter
          if (fs.read_all(bytes,out size, null)) {
                                ^^^^^^^^
dbus-binding.vala:177.47-177.54: error: Argument 2: Cannot pass out argument to 
non-output parameter
          fs.read_all((uint8[])pinyin_header, out size, null);
                                              ^^^^^^^^
dbus-binding.vala:281.40-281.47: error: Argument 2: Cannot pass out argument to 
non-output parameter
        if (!fs.read_all((uint8[])data,out size, null))
                                       ^^^^^^^^
dbus-binding.vala:220.45-220.56: error: Argument 2: Cannot pass out argument to 
non-output parameter
            fs.read_all((uint8[]) freq_data,out freq_len, null);
                                            ^^^^^^^^^^^^
lua-binding.vala:28.20-28.37: error: too many type arguments
    private static ThreadPool<string> thread_pool;
                   ^^^^^^^^^^^^^^^^^^
lua-binding.vala:659.23-659.73: error: too many type arguments
        thread_pool = new ThreadPool<string>(do_string_internal, 1, true);
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Compilation failed: 7 error(s), 0 warning(s)
make[1]: *** [main.c] 错误 1
make[1]:正在离开目录 `/home/sap/ibus-cloud-pinyin/src'
make: *** [src/ibus-engine-cloud-pinyin] 错误 2

Original issue reported on code.google.com by sap...@gmail.com on 12 Mar 2012 at 6:47

GoogleCodeExporter commented 8 years ago
这个问题可以通过修改vala的版本来解决,重新安装sudo apt-get 
install valac-0.10即可解决

Original comment by shengqi...@gmail.com on 15 Mar 2012 at 6:40