cht電腦資訊gcin
adm Find login register

有人在 cygwin 下試過 gcin 嗎?

coolcd
joined: 2008-01-21
posted: 2601
promoted: 348
bookmarked: 95
1subject: 有人在 cygwin 下試過 gcin 嗎?Promote 0 Bookmark 02008-07-04quote  

我編不出來

$ ./configure --prefix=/usr/local/gcin

prefix: /usr/local/gcin
.... Testing gtk+-2.0 :  found.
testing if you have QT_IM_MODULE dir:/usr/lib/qt3/plugins/lib/inputmethods suppo
rt
testing if you have QT_IM_MODULE dir:/usr/lib/qt4/plugins/lib/inputmethods suppo
rt
-> No, you don't have

$ make

會出現許多 warnings,截取如下:

intcode.c:1: warning: -fpic ignored for target (all code is position independent
)
intcode.c: In function `feedkey_intcode':
intcode.c:110: warning: passing arg 2 of `utf32to8' from incompatible pointer ty
pe

win-int.c:1: warning: -fpic ignored for target (all code is position independent
)

win-message.c:1: warning: -fpic ignored for target (all code is position indepen
dent)
win-message.c: In function `create_win_message':
win-message.c:56: warning: passing arg 2 of `g_timeout_add' from incompatible po
inter type

 phrase.c:1: warning: -fpic ignored for target (all code is position independent)

 win-sym.c:1: warning: -fpic ignored for target (all code is position independent
)

 win-inmd-switch.c:1: warning: -fpic ignored for target (all code is position ind
ependent)

 pinyin.c:1: warning: -fpic ignored for target (all code is position independent)
win-pho-near.c:1: warning: -fpic ignored for target (all code is position indepe
ndent)

win-kbm.c:1: warning: -fpic ignored for target (all code is position independent
)
win-kbm.c: In function `set_kbm_key':
win-kbm.c:213: warning: passing arg 1 of `gtk_label_get_text' from incompatible
pointer type
win-kbm.c:213: warning: initialization discards qualifiers from pointer target t
ype

 intcode.pico: In function `feedkey_intcode':
/home/XXXX/gcin-1.4.2/intcode.c:100: 未w弩qѦҨ域「_big5_utf8v
/home/XXXX/gcin-1.4.2/intcode.c:113: 未w弩qѦҨ域「_sendkey_b5v
win-int.pico: In function `move_win_int':
/home/XXXX/gcin-1.4.2/win-int.c:122: 未w弩qѦҨ域「_win_ylv
/home/XXXX/gcin-1.4.2/win-int.c:122: 未w弩qѦҨ域「_win_xlv
/home/XXXX/gcin-1.4.2/win-int.c:124: 未w弩qѦҨ域「_win_xlv
/home/XXXX/gcin-1.4.2/win-int.c:124: 未w弩qѦҨ域「_dpy_xlv
/home/XXXX/gcin-1.4.2/win-int.c:125: 未w弩qѦҨ域「_win_xlv
/home/XXXX/gcin-1.4.2/win-int.c:125: 未w弩qѦҨ域「_dpy_xlv
/home/XXXX/gcin-1.4.2/win-int.c:129: 未w弩qѦҨ域「_win_ylv
/home/XXXX/gcin-1.4.2/win-int.c:129: 未w弩qѦҨ域「_dpy_ylv
/home/XXXX/gcin-1.4.2/win-int.c:130: 未w弩qѦҨ域「_win_ylv
/home/XXXX/gcin-1.4.2/win-int.c:130: 未w弩qѦҨ域「_dpy_ylv
/home/XXXX/gcin-1.4.2/win-int.c:134: 未w弩qѦҨ域「_win_xv
/home/XXXX/gcin-1.4.2/win-int.c:134: 未w弩qѦҨ域「_win_yv
win-int.pico: In function `create_win_intcode':
/home/XXXX/gcin-1.4.2/win-int.c:151: 未w弩qѦҨ域「_set_no_focusv
/home/XXXX/gcin-1.4.2/win-int.c:177: 未w弩qѦҨ域「_gcin_font_sizev
/home/XXXX/gcin-1.4.2/win-int.c:177: 未w弩qѦҨ域「_set_label_font_sizev
win-message.pico: In function `create_win_message':
/home/XXXX/gcin-1.4.2/win-message.c:20: 未w弩qѦҨ域「_set_no_focusv
/home/XXXX/gcin-1.4.2/win-message.c:38: 未w弩qѦҨ域「_tray_da_winv
/home/XXXX/gcin-1.4.2/win-message.c:41: 未w弩qѦҨ域「_get_win_sizev
/home/XXXX/gcin-1.4.2/win-message.c:44: 未w弩qѦҨ域「_dpy_ylv
/home/XXXX/gcin-1.4.2/win-message.c:45: 未w弩qѦҨ域「_dpy_ylv
/home/XXXX/gcin-1.4.2/win-message.c:49: 未w弩qѦҨ域「_dpy_xlv
/home/XXXX/gcin-1.4.2/win-message.c:50: 未w弩qѦҨ域「_dpy_xlv
phrase.pico: In function `load_phrase':
/home/XXXX/gcin-1.4.2/phrase.c:108: 未w弩qѦҨ域「_dbgv
phrase.pico: In function `feed_phrase':
/home/XXXX/gcin-1.4.2/phrase.c:161: 未w弩qѦҨ域「_current_CSv
/home/XXXX/gcin-1.4.2/phrase.c:161: 未w弩qѦҨ域「_current_CSv
/home/XXXX/gcin-1.4.2/phrase.c:162: 未w弩qѦҨ域「_add_to_tsin_buf_strv
/home/XXXX/gcin-1.4.2/phrase.c:164: 未w弩qѦҨ域「_send_textv
win-sym.pico: In function `watch_fopen':
/home/XXXX/gcin-1.4.2/win-sym.c:36: 未w弩qѦҨ域「_get_gcin_user_fnamev
/home/XXXX/gcin-1.4.2/win-sym.c:38: 未w弩qѦҨ域「_get_sys_table_file_namev
/home/XXXX/gcin-1.4.2/win-sym.c:41: 未w弩qѦҨ域「_TableDirv
win-sym.pico: In function `cb_button_sym':
/home/XXXX/gcin-1.4.2/win-sym.c:171: 未w弩qѦҨ域「_current_CSv
/home/XXXX/gcin-1.4.2/win-sym.c:171: 未w弩qѦҨ域「_current_CSv
/home/XXXX/gcin-1.4.2/win-sym.c:172: 未w弩qѦҨ域「_utf8_str_Nv
/home/XXXX/gcin-1.4.2/win-sym.c:172: 未w弩qѦҨ域「_add_to_tsin_bufv
/home/XXXX/gcin-1.4.2/win-sym.c:175: 未w弩qѦҨ域「_send_text_call_backv
/home/XXXX/gcin-1.4.2/win-sym.c:177: 未w弩qѦҨ域「_current_CSv
/home/XXXX/gcin-1.4.2/win-sym.c:179: 未w弩qѦҨ域「_clr_in_area_phov
/home/XXXX/gcin-1.4.2/win-sym.c:183: 未w弩qѦҨ域「_tsin_reset_in_phov
/home/XXXX/gcin-1.4.2/win-sym.c:187: 未w弩qѦҨ域「_reset_gtab_allv
/home/XXXX/gcin-1.4.2/win-sym.c:191: 未w弩qѦҨ域「_gcin_win_sym_click_closev
win-sym.pico: In function `move_win_sym':
/home/XXXX/gcin-1.4.2/win-sym.c:216: 未w弩qѦҨ域「_update_active_in_win_geomv
/home/XXXX/gcin-1.4.2/win-sym.c:218: 未w弩qѦҨ域「_win_xv
/home/XXXX/gcin-1.4.2/win-sym.c:218: 未w弩qѦҨ域「_win_ylv
/home/XXXX/gcin-1.4.2/win-sym.c:218: 未w弩qѦҨ域「_win_yv
/home/XXXX/gcin-1.4.2/win-sym.c:222: 未w弩qѦҨ域「_get_win_sizev
/home/XXXX/gcin-1.4.2/win-sym.c:224: 未w弩qѦҨ域「_dpy_xlv
/home/XXXX/gcin-1.4.2/win-sym.c:225: 未w弩qѦҨ域「_dpy_xlv
/home/XXXX/gcin-1.4.2/win-sym.c:235: 未w弩qѦҨ域「_dpy_ylv
/home/XXXX/gcin-1.4.2/win-sym.c:236: 未w弩qѦҨ域「_win_yv
win-sym.pico: In function `show_win_sym':
/home/XXXX/gcin-1.4.2/win-sym.c:255: 未w弩qѦҨ域「_current_CSv
/home/XXXX/gcin-1.4.2/win-sym.c:258: 未w弩qѦҨ域「_current_CSv
win-sym.pico: In function `sym_lookup_key':
/home/XXXX/gcin-1.4.2/win-sym.c:273: 未w弩qѦҨ域「_current_CSv
/home/XXXX/gcin-1.4.2/win-sym.c:273: 未w弩qѦҨ域「_current_CSv
/home/XXXX/gcin-1.4.2/win-sym.c:274: 未w弩qѦҨ域「_str_to_all_phokey_charsv
/home/XXXX/gcin-1.4.2/win-sym.c:281: 未w弩qѦҨ域「_lookup_gtab_outv
/home/XXXX/gcin-1.4.2/win-sym.c:284: 未w弩qѦҨ域「_utf8_szv
win-sym.pico: In function `create_win_sym':
/home/XXXX/gcin-1.4.2/win-sym.c:326: 未w弩qѦҨ域「_current_CSv
/home/XXXX/gcin-1.4.2/win-sym.c:327: 未w弩qѦҨ域「_dbgv
/home/XXXX/gcin-1.4.2/win-sym.c:331: 未w弩qѦҨ域「_current_CSv
/home/XXXX/gcin-1.4.2/win-sym.c:331: 未w弩qѦҨ域「_current_CSv
/home/XXXX/gcin-1.4.2/win-sym.c:332: 未w弩qѦҨ域「_current_CSv
/home/XXXX/gcin-1.4.2/win-sym.c:332: 未w弩qѦҨ域「_p_errv
/home/XXXX/gcin-1.4.2/win-sym.c:335: 未w弩qѦҨ域「_current_CSv
/home/XXXX/gcin-1.4.2/win-sym.c:335: 未w弩qѦҨ域「_current_CSv
/home/XXXX/gcin-1.4.2/win-sym.c:335: 未w弩qѦҨ域「_cur_inmdv
/home/XXXX/gcin-1.4.2/win-sym.c:338: 未w弩qѦҨ域「_current_CSv
/home/XXXX/gcin-1.4.2/win-sym.c:356: 未w弩qѦҨ域「_current_CSv
/home/XXXX/gcin-1.4.2/win-sym.c:381: 未w弩qѦҨ域「_gcin_font_size_symbolv
/home/XXXX/gcin-1.4.2/win-sym.c:381: 未w弩qѦҨ域「_set_label_font_sizev
/home/XXXX/gcin-1.4.2/win-sym.c:386: 未w弩qѦҨ域「_utf8_str_Nv
/home/XXXX/gcin-1.4.2/win-sym.c:406: 未w弩qѦҨ域「_set_no_focusv
win-inmd-switch.pico: In function `cb_update_menu_select':
/home/XXXX/gcin-1.4.2/win-inmd-switch.c:11: 未w弩qѦҨ域「_init_in_methodv
win-inmd-switch.pico: In function `create_inmd_switch':
/home/XXXX/gcin-1.4.2/win-inmd-switch.c:20: 未w弩qѦҨ域「_inmdv
/home/XXXX/gcin-1.4.2/win-inmd-switch.c:20: 未w弩qѦҨ域「_inmdv
/home/XXXX/gcin-1.4.2/win-inmd-switch.c:25: 未w弩qѦҨ域「_gcin_switch_keysv
/home/XXXX/gcin-1.4.2/win-inmd-switch.c:25: 未w弩qѦҨ域「_inmdv
 pinyin.pico: In function `pin2juyin':
/home/XXXX/gcin-1.4.2/pinyin.c:22: 未w弩qѦҨ域「_inphv
/home/XXXX/gcin-1.4.2/pinyin.c:23: 未w弩qѦҨ域「_pin_juyinNv
/home/XXXX/gcin-1.4.2/pinyin.c:24: 未w弩qѦҨ域「_pin_juyinv
/home/XXXX/gcin-1.4.2/pinyin.c:31: 未w弩qѦҨ域「_inphv
/home/XXXX/gcin-1.4.2/pinyin.c:35: 未w弩qѦҨ域「_pin_juyinNv
/home/XXXX/gcin-1.4.2/pinyin.c:38: 未w弩qѦҨ域「_typ_phov
/home/XXXX/gcin-1.4.2/pinyin.c:39: 未w弩qѦҨ域「_typ_phov
/home/XXXX/gcin-1.4.2/pinyin.c:39: 未w弩qѦҨ域「_pin_juyinv
/home/XXXX/gcin-1.4.2/pinyin.c:39: 未w弩qѦҨ域「_key_typ_phov
pinyin.pico: In function `inph_typ_pho_pinyin':
/home/XXXX/gcin-1.4.2/pinyin.c:46: 未w弩qѦҨ域「_phkbmv
/home/XXXX/gcin-1.4.2/pinyin.c:47: 未w弩qѦҨ域「_phkbmv
/home/XXXX/gcin-1.4.2/pinyin.c:51: 未w弩qѦҨ域「_inphv
/home/XXXX/gcin-1.4.2/pinyin.c:56: 未w弩qѦҨ域「_inphv
/home/XXXX/gcin-1.4.2/pinyin.c:59: 未w弩qѦҨ域「_typ_phov
/home/XXXX/gcin-1.4.2/pinyin.c:65: 未w弩qѦҨ域「_bellv
/home/XXXX/gcin-1.4.2/pinyin.c:67: 未w弩qѦҨ域「_inphv
pinyin.pico: In function `load_pin_juyin':
/home/XXXX/gcin-1.4.2/pinyin.c:78: 未w弩qѦҨ域「_text_pho_Nv
/home/XXXX/gcin-1.4.2/pinyin.c:81: 未w弩qѦҨ域「_get_sys_table_file_namev
/home/XXXX/gcin-1.4.2/pinyin.c:82: 未w弩qѦҨ域「_dbgv
/home/XXXX/gcin-1.4.2/pinyin.c:86: 未w弩qѦҨ域「_p_errv
/home/XXXX/gcin-1.4.2/pinyin.c:88: 未w弩qѦҨ域「_pin_juyinNv
/home/XXXX/gcin-1.4.2/pinyin.c:89: 未w弩qѦҨ域「_pin_juyinNv
/home/XXXX/gcin-1.4.2/pinyin.c:89: 未w弩qѦҨ域「_pin_juyinv
/home/XXXX/gcin-1.4.2/pinyin.c:90: 未w弩qѦҨ域「_pin_juyinNv
/home/XXXX/gcin-1.4.2/pinyin.c:90: 未w弩qѦҨ域「_pin_juyinv
win-pho-near.pico: In function `cb_sel':
/home/XXXX/gcin-1.4.2/win-pho-near.c:64: 未w弩qѦҨ域「_tsin_remove_lastv
/home/XXXX/gcin-1.4.2/win-pho-near.c:65: 未w弩qѦҨ域「_char_playv
/home/XXXX/gcin-1.4.2/win-pho-near.c:66: 未w弩qѦҨ域「_add_to_tsin_bufv
win-pho-near.pico: In function `create_win_pho_near':
/home/XXXX/gcin-1.4.2/win-pho-near.c:80: 未w弩qѦҨ域「_set_no_focusv
/home/XXXX/gcin-1.4.2/win-pho-near.c:90: 未w弩qѦҨ域「_key_typ_phov
/home/XXXX/gcin-1.4.2/win-pho-near.c:109: 未w弩qѦҨ域「_pho2keyv
/home/XXXX/gcin-1.4.2/win-pho-near.c:110: 未w弩qѦҨ域「_phokey_to_strv
/home/XXXX/gcin-1.4.2/win-pho-near.c:113: 未w弩qѦҨ域「_get_start_stop_idxv
/home/XXXX/gcin-1.4.2/win-pho-near.c:128: 未w弩qѦҨ域「_gcin_font_size_pho_nearv
/home/XXXX/gcin-1.4.2/win-pho-near.c:128: 未w弩qѦҨ域「_set_label_font_sizev
/home/XXXX/gcin-1.4.2/win-pho-near.c:135: 未w弩qѦҨ域「_ch_phov
/home/XXXX/gcin-1.4.2/win-pho-near.c:135: 未w弩qѦҨ域「_utf8cpyv
/home/XXXX/gcin-1.4.2/win-pho-near.c:142: 未w弩qѦҨ域「_gcin_font_size_pho_nearv
/home/XXXX/gcin-1.4.2/win-pho-near.c:142: 未w弩qѦҨ域「_set_label_font_sizev
win-kbm.pico: In function `cb_button_click':
/home/XXXX/gcin-1.4.2/win-kbm.c:50: 未w弩qѦҨ域「_dpyv
/home/XXXX/gcin-1.4.2/win-kbm.c:57: 未w弩qѦҨ域「_dpyv
/home/XXXX/gcin-1.4.2/win-kbm.c:57: 未w弩qѦҨ域「_XTestFakeKeyEventv
/home/XXXX/gcin-1.4.2/win-kbm.c:60: 未w弩qѦҨ域「_dpyv
/home/XXXX/gcin-1.4.2/win-kbm.c:60: 未w弩qѦҨ域「_XTestFakeKeyEventv
/home/XXXX/gcin-1.4.2/win-kbm.c:65: 未w弩qѦҨ域「_send_fake_key_evev
/home/XXXX/gcin-1.4.2/win-kbm.c:73: 未w弩qѦҨ域「_dpyv
/home/XXXX/gcin-1.4.2/win-kbm.c:74: 未w弩qѦҨ域「_dpyv
/home/XXXX/gcin-1.4.2/win-kbm.c:74: 未w弩qѦҨ域「_XTestFakeKeyEventv
win-kbm.pico: In function `create_win_kbm':
/home/XXXX/gcin-1.4.2/win-kbm.c:131: 未w弩qѦҨ域「_set_label_font_sizev
/home/XXXX/gcin-1.4.2/win-kbm.c:143: 未w弩qѦҨ域「_set_no_focusv
win-kbm.pico: In function `move_win_kbm':
/home/XXXX/gcin-1.4.2/win-kbm.c:151: 未w弩qѦҨ域「_get_win_sizev
/home/XXXX/gcin-1.4.2/win-kbm.c:154: 未w弩qѦҨ域「_tray_da_winv
/home/XXXX/gcin-1.4.2/win-kbm.c:155: 未w弩qѦҨ域「_tray_da_winv
/home/XXXX/gcin-1.4.2/win-kbm.c:156: 未w弩qѦҨ域「_tray_da_winv
/home/XXXX/gcin-1.4.2/win-kbm.c:158: 未w弩qѦҨ域「_dpy_ylv
/home/XXXX/gcin-1.4.2/win-kbm.c:159: 未w弩qѦҨ域「_dpy_ylv
/home/XXXX/gcin-1.4.2/win-kbm.c:163: 未w弩qѦҨ域「_dpy_xlv
/home/XXXX/gcin-1.4.2/win-kbm.c:164: 未w弩qѦҨ域「_dpy_xlv
/home/XXXX/gcin-1.4.2/win-kbm.c:168: 未w弩qѦҨ域「_dpy_xlv
/home/XXXX/gcin-1.4.2/win-kbm.c:169: 未w弩qѦҨ域「_dpy_ylv
win-kbm.pico: In function `show_win_kbm':
/home/XXXX/gcin-1.4.2/win-kbm.c:177: 未w弩qѦҨ域「_current_CSv
win-kbm.pico: In function `update_win_kbm':
/home/XXXX/gcin-1.4.2/win-kbm.c:241: 未w弩qѦҨ域「_current_CSv
/home/XXXX/gcin-1.4.2/win-kbm.c:247: 未w弩qѦҨ域「_current_CSv
/home/XXXX/gcin-1.4.2/win-kbm.c:256: 未w弩qѦҨ域「_phkbmv
/home/XXXX/gcin-1.4.2/win-kbm.c:257: 未w弩qѦҨ域「_phkbmv
/home/XXXX/gcin-1.4.2/win-kbm.c:260: 未w弩qѦҨ域「_pho_charsv
/home/XXXX/gcin-1.4.2/win-kbm.c:260: 未w弩qѦҨ域「_utf8cpyv
/home/XXXX/gcin-1.4.2/win-kbm.c:272: 未w弩qѦҨ域「_cur_inmdv
/home/XXXX/gcin-1.4.2/win-kbm.c:272: 未w弩qѦҨ域「_cur_inmdv
/home/XXXX/gcin-1.4.2/win-kbm.c:275: 未w弩qѦҨ域「_cur_inmdv
/home/XXXX/gcin-1.4.2/win-kbm.c:277: 未w弩qѦҨ域「_cur_inmdv
/home/XXXX/gcin-1.4.2/win-kbm.c:281: 未w弩qѦҨ域「_cur_inmdv
/home/XXXX/gcin-1.4.2/win-kbm.c:288: 未w弩qѦҨ域「_utf8cpyv
collect2: ld returned 1 exit status
make: *** [gcin1.so] Error 1

PS. 我的 cygwin 有用 utf-8 cygwin 加持過,但我想應該影響不大,因為我用原始的 cygwin1.dll 仍出現一樣的訊息

只不過出現的訊息是正確的中文,上面的「未w弩qѦҨ域」是 「未定義參考到」

想請問一下我是不是少裝了什麼套件?還是說這是平台的差異呢?

eliu

joined: 2007-08-09
posted: 11482
promoted: 617
bookmarked: 187
新竹, 台灣
2subject: Promote 0 Bookmark 02008-07-04quote  

.pico部分的 message 請修改 Makefile,把 .so部份拿掉,改成直接 link

coolcd
joined: 2008-01-21
posted: 2601
promoted: 348
bookmarked: 95
3subject: Promote 0 Bookmark 02008-07-04quote  

歹勢我對這方面不太瞭解耶~

是指把

gcin1_so= intcode.pico win-int.pico win-message.pico phrase.pico win-sym.pic
o win-inmd-switch.pico pinyin.pico win-pho-near.pico win-kbm.pico
gcin1.so: $(gcin1_so)
        $(CC) $(SO_FLAGS) -o $@ $(gcin1_so) $(LDFLAGS)

改成

gcin1.so: intcode.pico win-int.pico win-message.pico phrase.pico win-sym.pic
o win-inmd-switch.pico pinyin.pico win-pho-near.pico win-kbm.pico
        $(CC) $(SO_FLAGS) -o $@ $(gcin1_so) $(LDFLAGS)

嗎? 

cht電腦資訊gcin
adm Find login register
views:9237