avidyalalala / sunpinyin

Automatically exported from code.google.com/p/sunpinyin
0 stars 0 forks source link

sunpinyin ibus wrapper编译失败,找不到sunpinyin.xml #174

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
sunpinyin ibus wrapper编译失败,显示

scons: *** 
[/home/elf/aur/ibus-sunpinyin-git/pkg/usr/share/ibus/component/sunpinyin.xml] 
Source `src/sunpinyin.xml' not found, needed by target 
`/home/elf/aur/ibus-sunpinyin-git/pkg/usr/share/ibus/component/sunpinyin.xml'.

个人认为SConstruct中的src/sunpinyin.xml应该写成data/sunpinyin.xml

System:Arch Linux
Version:
ibus:1.3.6
sunpinyin:Git Master

Original issue reported on code.google.com by goduck777 on 22 Jul 2010 at 3:45

GoogleCodeExporter commented 9 years ago
fixed in c9e07d0.

谢谢 goduck777, 一直用 cmake,忘记同步 SConstruct 了,囧。

Original comment by tchai...@gmail.com on 22 Jul 2010 at 4:39

GoogleCodeExporter commented 9 years ago
还是有点问题,缺少两个变量的值:

diff --git a/wrapper/ibus/SConstruct b/wrapper/ibus/SConstruct
index 87c7f02..abe86e4 100644
--- a/wrapper/ibus/SConstruct
+++ b/wrapper/ibus/SConstruct
@@ -97,7 +97,7 @@ for locale in locales:
 # it doesn't include textfile builders by default?
 SCons.Tool.textfile.generate(env)
 sub = {'@LIBEXEC_DIR@': prefix + '/lib/ibus-sunpinyin/',
-       '@prefix@': prefix}
+       '@prefix@': prefix, '@ICON_DIR@':icons_dir, '@VERSION': '2.0'}
 env.Substfile('data/sunpinyin.xml.in', SUBST_DICT=sub)
 env.Substfile('setup/config.py.in', SUBST_DICT=sub)
 env.Substfile('setup/ibus-setup-sunpinyin.in', SUBST_DICT=sub)

另外sunpinyin.xml.in的XML 
Declaration多了几个引号,生成的xml文件不是well-formed的。

Original comment by darren....@gmail.com on 24 Jul 2010 at 6:34

GoogleCodeExporter commented 9 years ago
thanks fixed.

Original comment by tchai...@gmail.com on 23 Aug 2010 at 5:45