China-Spiner / 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

编译时报错 #18

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
首先# sh find-dependencies.sh输出结果
    lua: 5.1.3
    glib-2.0: 2.22.5
    gdk-2.0: 2.18.9
    gtk+-2.0: 2.18.9
    ibus-1.0: 1.3.6
    atk: 1.28.0
    gee-1.0: 0.5.1
    dbus-glib-1: 0.82
    libnotify: 0.4.5
    sqlite3: 3.6.20

所有依赖包均安装
make install 出现如下错误
:: 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
:: Patching C files (workaround for valac) ...
if ! grep -qe 'dbus_[^t]*thread' main.c; then sed -i 
's/gdk_threads_init/dbus_g_thread_init();gdk_threads_init/' main.c; fi
for i in *.c; do sed -i "s#@PREFIX@#/usr#g" $i; done
:: Building ibus-engine-cloud-pinyin ...
gcc `cat c-flags.txt` -pthread main.c dbus-binding.c pinyin-utils.c 
frontend-utils.c config.c database.c lua-binding.c ibus-engine.c -O3 -o 
ibus-engine-cloud-pinyin
/tmp/ccKFMeZy.o: In function `main':
main.c:(.text+0x3c1): undefined reference to `g_thread_init'
collect2: ld 返回 1
make[1]: *** [ibus-engine-cloud-pinyin] 错误 1
make[1]: Leaving directory `/home/cesc/ibus-cloud-pinyin-read-only/src'
make: *** [src/ibus-engine-cloud-pinyin] 错误 2

Original issue reported on code.google.com by volcan...@gmail.com on 10 Aug 2010 at 6:30

GoogleCodeExporter commented 9 years ago
gthread-2.0 is needed.

r144 will check this.

Original comment by arcpp.zju@gmail.com on 11 Aug 2010 at 6:59