分页: 1 / 2
mint 編譯fcitx 4.2.4失敗求助!
发表于 : 2012-06-08 17:44
由 liangwilliam
fcitx是從
https://github.com/fcitx/fcitx.git clone下來的(版本是4.2.4).
編譯前已經 運行
代码: 全选
sudo apt-get build-dep fcitx
代码: 全选
$ cmake .. -DCMAKE_INSTALL_PREFIX=/usr
-- The C compiler identification is GNU 4.6.1
-- The CXX compiler identification is GNU 4.6.1
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.26")
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
-- Looking for include file unistd.h
-- Looking for include file unistd.h - found
-- Looking for include file malloc.h
-- Looking for include file malloc.h - found
-- Looking for include file stdbool.h
-- Looking for include file stdbool.h - found
-- Looking for asprintf
-- Looking for asprintf - found
-- Found Gettext: /usr/bin/msgmerge (found version "0.18.1")
-- Looking for dgettext
-- Looking for dgettext - found
-- Found Libintl: /usr/include
-- Looking for iconv_open
-- Looking for iconv_open - found
-- Performing Test ICONV_HAVE_WERROR
-- Performing Test ICONV_HAVE_WERROR - Success
-- Performing Test LIBICONV_SECOND_ARGUMENT_IS_CONST
-- Performing Test LIBICONV_SECOND_ARGUMENT_IS_CONST - Failed
-- Found Libiconv: /usr/include
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Found Pthread: /usr/include
-- Looking for backtrace
-- Looking for backtrace - found
-- Found LibExecinfo: /usr/include
-- Found LibXml2: /usr/lib/libxml2.so (found version "2.7.8")
-- Could NOT find Libkvm (missing: LIBKVM_INCLUDE_DIR LIBKVM_FOUND)
-- checking for module 'xkbfile'
-- package 'xkbfile' not found
CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:97 (MESSAGE):
Could NOT find XkbFile (missing: XKBFILE_LIBRARIES
XKBFILE_MAIN_INCLUDE_DIR)
Call Stack (most recent call first):
/usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:288 (_FPHSA_FAILURE_MESSAGE)
cmake/FindXkbFile.cmake:33 (find_package_handle_standard_args)
CMakeLists.txt:56 (find_package)
-- Configuring incomplete, errors occurred!
一開始以爲是cmake問題,把cmake換成自己編譯的 2.8.8
但還是報一樣的錯誤.
後來試試編譯 Google code裏面的4.2.3,非常順利,一次編譯成功.
現在也正常使用,只是搞不懂爲什麼編譯4.2.4就會有這樣的問題!
求解釋...
Re: mint 編譯fcitx 4.2.4失敗求助!
发表于 : 2012-06-08 19:18
由 YeLee
libxkbfile装了吗?话说这次的更新还挺大的,加了一大堆的附加组件,居然还要icu才能跑过去……
Re: mint 編譯fcitx 4.2.4失敗求助!
发表于 : 2012-06-08 19:59
由 liangwilliam
YeLee 写了:libxkbfile装了吗?话说这次的更新还挺大的,加了一大堆的附加组件,居然还要icu才能跑过去……
代码: 全选
sudo apt-get build-dep fcitx
不就應該解決依賴關係了嗎?
Re: mint 編譯fcitx 4.2.4失敗求助!
发表于 : 2012-06-08 20:11
由 YeLee
那办法是针对源里面的那版本的,新版本加了不少的新特性。

Re: mint 編譯fcitx 4.2.4失敗求助!
发表于 : 2012-06-08 20:12
由 liangwilliam
把libxkbfile和libenchant-dev裝了以後,cmake就通過了.但是還是有一點問題
代码: 全选
Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
代码: 全选
Could NOT find Libkvm (missing: LIBKVM_INCLUDE_DIR LIBKVM_FOUND)
代码: 全选
Could NOT find Presage (missing: PRESAGE_LIBRARIES PRESAGE_INCLUDE_DIR)
然後執行
的時候
代码: 全选
make[2]: *** [src/lib/fcitx-gclient/Fcitx-1.0.gir] 错误 1
make[1]: *** [src/lib/fcitx-gclient/CMakeFiles/Fcitx-1.0.gir.target.dir/all] 错误 2
make: *** [all] 错误 2
用
的話
代码: 全选
Building C object src/lib/fcitx/CMakeFiles/fcitx-core.dir/addon.c.o
make[2]: *** [src/lib/fcitx-gclient/Fcitx-1.0.gir] 错误 1
make[1]: *** [src/lib/fcitx-gclient/CMakeFiles/Fcitx-1.0.gir.target.dir/all] 错误 2
make[1]: *** 正在等待未完成的任务....
[ 77%] Building C object src/lib/fcitx/CMakeFiles/fcitx-core.dir/frontend.c.o
make[2]: *** [src/lib/fcitx-gclient/Fcitx-1.0.gir] 错误 1
make[1]: *** [src/lib/fcitx-gclient/CMakeFiles/Fcitx-1.0.typelib.target.dir/all] 错误 2
[ 77%] Building C object src/lib/fcitx/CMakeFiles/fcitx-core.dir/hook.c.o
[ 78%] Building C object src/lib/fcitx/CMakeFiles/fcitx-core.dir/ime.c.o
[ 78%] Building C object src/lib/fcitx/CMakeFiles/fcitx-core.dir/ui.c.o
[ 79%] Building C object src/lib/fcitx/CMakeFiles/fcitx-core.dir/module.c.o
[ 79%] Building C object src/lib/fcitx/CMakeFiles/fcitx-core.dir/keys.c.o
[ 80%] Building C object src/lib/fcitx/CMakeFiles/fcitx-core.dir/context.c.o
Linking C shared module im-fcitx.so
[ 80%] Built target im-fcitx
Linking C shared library libfcitx-core.so
[ 80%] Built target fcitx-core
make: *** [all] 错误 2
Re: mint 編譯fcitx 4.2.4失敗求助!
发表于 : 2012-06-08 20:14
由 liangwilliam
還缺了什麼庫文件嗎?在新立得搜Libkvm沒有結果啊
Re: mint 編譯fcitx 4.2.4失敗求助!
发表于 : 2012-06-08 20:47
由 YeLee
这信息真够简略的了。
不过,那三个东西都是可选组件,应该不是这问题。
Re: mint 編譯fcitx 4.2.4失敗求助!
发表于 : 2012-06-08 20:55
由 liangwilliam
不是這幾個問題的話,我就找不到理由了...
代码: 全选
$ cmake .. -DCMAKE_INSTALL_PREFIX=/usr-- The C compiler identification is GNU 4.6.1
-- The CXX compiler identification is GNU 4.6.1
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.26")
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
-- Looking for include file unistd.h
-- Looking for include file unistd.h - found
-- Looking for include file malloc.h
-- Looking for include file malloc.h - found
-- Looking for include file stdbool.h
-- Looking for include file stdbool.h - found
-- Looking for asprintf
-- Looking for asprintf - found
-- Found Gettext: /usr/bin/msgmerge (found version "0.18.1")
-- Looking for dgettext
-- Looking for dgettext - found
-- Found Libintl: /usr/include
-- Looking for iconv_open
-- Looking for iconv_open - found
-- Performing Test ICONV_HAVE_WERROR
-- Performing Test ICONV_HAVE_WERROR - Success
-- Performing Test LIBICONV_SECOND_ARGUMENT_IS_CONST
-- Performing Test LIBICONV_SECOND_ARGUMENT_IS_CONST - Failed
-- Found Libiconv: /usr/include
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Found Pthread: /usr/include
-- Looking for backtrace
-- Looking for backtrace - found
-- Found LibExecinfo: /usr/include
-- Found LibXml2: /usr/lib/libxml2.so (found version "2.7.8")
-- Could NOT find Libkvm (missing: LIBKVM_INCLUDE_DIR LIBKVM_FOUND)
-- checking for module 'xkbfile'
-- found xkbfile, version 1.0.7
-- Found XkbFile: /usr/lib/libxkbfile.so
-- checking for module 'enchant'
-- found enchant, version 1.6.0
-- Found Enchant: /usr/lib/libenchant.so
-- checking for module 'iso-codes'
-- found iso-codes, version 3.27
-- Found IsoCodes: /usr/share/xml/iso-codes/iso_639.xml
-- Could NOT find Presage (missing: PRESAGE_LIBRARIES PRESAGE_INCLUDE_DIR)
-- Found ICU header files in /usr/include
-- Found ICU libraries: /usr/lib/libicuuc.so
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/lib/x86_64-linux-gnu/libX11.so
-- checking for module 'cairo-xlib >= 1.0'
-- found cairo-xlib , version 1.10.2
-- checking for module 'pangocairo >= 1.0'
-- found pangocairo , version 1.29.3
-- checking for module 'dbus-1 >= 1.1.0'
-- found dbus-1 , version 1.4.14
-- checking for module 'opencc >= 0.1.1'
-- found opencc , version 0.3.0
-- checking for module 'gio-2.0 >= 2.26'
-- found gio-2.0 , version 2.30.0
-- checking for module 'gobject-introspection-1.0'
-- found gobject-introspection-1.0, version 1.30.0
-- checking for module 'glib-2.0'
-- found glib-2.0, version 2.30.0
-- checking for module 'gtk+-2.0'
-- found gtk+-2.0, version 2.24.6
-- Configuring done
-- Generating done
-- Build files have been written to: /home/tofuliang/fcitx/build
Re: mint 編譯fcitx 4.2.4失敗求助!
发表于 : 2012-06-08 20:57
由 liangwilliam
代码: 全选
$ make
[ 1%] Building C object src/lib/fcitx-utils/CMakeFiles/fcitx-utils.dir/utf8.c.o
[ 1%] Building C object src/lib/fcitx-utils/CMakeFiles/fcitx-utils.dir/utils.c.o
[ 2%] Building C object src/lib/fcitx-utils/CMakeFiles/fcitx-utils.dir/log.c.o
[ 2%] Building C object src/lib/fcitx-utils/CMakeFiles/fcitx-utils.dir/qsort_r.c.o
[ 3%] Building C object src/lib/fcitx-utils/CMakeFiles/fcitx-utils.dir/msort_r.c.o
[ 3%] Building C object src/lib/fcitx-utils/CMakeFiles/fcitx-utils.dir/memory.c.o
Linking C shared library libfcitx-utils.so
[ 3%] Built target fcitx-utils
[ 4%] Building C object src/lib/fcitx-config/CMakeFiles/fcitx-config.dir/fcitx-config.c.o
[ 4%] Building C object src/lib/fcitx-config/CMakeFiles/fcitx-config.dir/hotkey.c.o
[ 6%] Building C object src/lib/fcitx-config/CMakeFiles/fcitx-config.dir/xdg.c.o
Linking C shared library libfcitx-config.so
[ 6%] Built target fcitx-config
[ 7%] Generating marshall.h
[ 7%] Generating marshall.c
[ 7%] Building C object src/lib/fcitx-gclient/CMakeFiles/fcitx-gclient.dir/fcitxclient.c.o
[ 8%] Building C object src/lib/fcitx-gclient/CMakeFiles/fcitx-gclient.dir/fcitxinputmethod.c.o
[ 8%] Building C object src/lib/fcitx-gclient/CMakeFiles/fcitx-gclient.dir/fcitxkbd.c.o
[ 9%] Building C object src/lib/fcitx-gclient/CMakeFiles/fcitx-gclient.dir/marshall.c.o
Linking C shared library libfcitx-gclient.so
[ 9%] Built target fcitx-gclient
[ 9%] Generating Fcitx-1.0.gir
g-ir-scanner: compile: gcc -Wall -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/home/tofuliang/fcitx/build -I/home/tofuliang/fcitx/src -I/home/tofuliang/fcitx/src/lib -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/home/tofuliang/fcitx/build/src/lib/fcitx-gclient -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -c -o /home/tofuliang/fcitx/build/src/lib/fcitx-gclient/tmp-introspectYLAodh/Fcitx-1.0.o /home/tofuliang/fcitx/build/src/lib/fcitx-gclient/tmp-introspectYLAodh/Fcitx-1.0.c
g-ir-scanner: link: gcc -o /home/tofuliang/fcitx/build/src/lib/fcitx-gclient/tmp-introspectYLAodh/Fcitx-1.0 -L. -Wl,-rpath=. -lfcitx-gclient -L/home/tofuliang/fcitx/build/src/lib/fcitx-gclient -pthread -lgio-2.0 -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0 /home/tofuliang/fcitx/build/src/lib/fcitx-gclient/tmp-introspectYLAodh/Fcitx-1.0.o
/home/tofuliang/fcitx/build/src/lib/fcitx-gclient/tmp-introspectYLAodh/Fcitx-1.0.o: In function `g_string_append_c_inline':
Fcitx-1.0.c:(.text+0x79): undefined reference to `g_string_insert_c'
/home/tofuliang/fcitx/build/src/lib/fcitx-gclient/tmp-introspectYLAodh/Fcitx-1.0.o: In function `escaped_printf':
Fcitx-1.0.c:(.text+0x129): undefined reference to `g_markup_vprintf_escaped'
Fcitx-1.0.c:(.text+0x193): undefined reference to `g_output_stream_write_all'
Fcitx-1.0.c:(.text+0x1be): undefined reference to `g_log'
Fcitx-1.0.c:(.text+0x1cd): undefined reference to `g_clear_error'
Fcitx-1.0.c:(.text+0x1dc): undefined reference to `g_free'
/home/tofuliang/fcitx/build/src/lib/fcitx-gclient/tmp-introspectYLAodh/Fcitx-1.0.o: In function `goutput_write':
Fcitx-1.0.c:(.text+0x244): undefined reference to `g_output_stream_write_all'
Fcitx-1.0.c:(.text+0x26c): undefined reference to `g_log'
Fcitx-1.0.c:(.text+0x278): undefined reference to `g_clear_error'
/home/tofuliang/fcitx/build/src/lib/fcitx-gclient/tmp-introspectYLAodh/Fcitx-1.0.o: In function `invoke_get_type':
Fcitx-1.0.c:(.text+0x2a5): undefined reference to `g_module_symbol'
Fcitx-1.0.c:(.text+0x2ae): undefined reference to `g_io_error_quark'
Fcitx-1.0.c:(.text+0x2d2): undefined reference to `g_set_error'
Fcitx-1.0.c:(.text+0x2ef): undefined reference to `g_io_error_quark'
Fcitx-1.0.c:(.text+0x313): undefined reference to `g_set_error'
/home/tofuliang/fcitx/build/src/lib/fcitx-gclient/tmp-introspectYLAodh/Fcitx-1.0.o: In function `invoke_error_quark':
Fcitx-1.0.c:(.text+0x344): undefined reference to `g_module_symbol'
Fcitx-1.0.c:(.text+0x34d): undefined reference to `g_io_error_quark'
Fcitx-1.0.c:(.text+0x371): undefined reference to `g_set_error'
/home/tofuliang/fcitx/build/src/lib/fcitx-gclient/tmp-introspectYLAodh/Fcitx-1.0.o: In function `dump_properties':
Fcitx-1.0.c:(.text+0x39d): undefined reference to `g_type_fundamental'
Fcitx-1.0.c:(.text+0x3af): undefined reference to `g_type_class_ref'
Fcitx-1.0.c:(.text+0x3c6): undefined reference to `g_object_class_list_properties'
Fcitx-1.0.c:(.text+0x3d8): undefined reference to `g_type_default_interface_ref'
Fcitx-1.0.c:(.text+0x3ef): undefined reference to `g_object_interface_list_properties'
Fcitx-1.0.c:(.text+0x433): undefined reference to `g_type_name'
Fcitx-1.0.c:(.text+0x472): undefined reference to `g_free'
/home/tofuliang/fcitx/build/src/lib/fcitx-gclient/tmp-introspectYLAodh/Fcitx-1.0.o: In function `dump_signals':
Fcitx-1.0.c:(.text+0x49c): undefined reference to `g_signal_list_ids'
Fcitx-1.0.c:(.text+0x4cd): undefined reference to `g_signal_query'
Fcitx-1.0.c:(.text+0x4d9): undefined reference to `g_type_name'
Fcitx-1.0.c:(.text+0x631): undefined reference to `g_type_name'
/home/tofuliang/fcitx/build/src/lib/fcitx-gclient/tmp-introspectYLAodh/Fcitx-1.0.o: In function `dump_object_type':
Fcitx-1.0.c:(.text+0x699): undefined reference to `g_type_name'
Fcitx-1.0.c:(.text+0x6d4): undefined reference to `g_type_parent'
Fcitx-1.0.c:(.text+0x6e2): undefined reference to `g_string_new'
Fcitx-1.0.c:(.text+0x714): undefined reference to `g_type_name'
Fcitx-1.0.c:(.text+0x726): undefined reference to `g_string_append'
Fcitx-1.0.c:(.text+0x732): undefined reference to `g_type_parent'
Fcitx-1.0.c:(.text+0x76b): undefined reference to `g_string_free'
Fcitx-1.0.c:(.text+0x77c): undefined reference to `g_type_test_flags'
Fcitx-1.0.c:(.text+0x7ba): undefined reference to `g_type_interfaces'
Fcitx-1.0.c:(.text+0x7e5): undefined reference to `g_type_name'
/home/tofuliang/fcitx/build/src/lib/fcitx-gclient/tmp-introspectYLAodh/Fcitx-1.0.o: In function `dump_interface_type':
Fcitx-1.0.c:(.text+0x863): undefined reference to `g_type_name'
Fcitx-1.0.c:(.text+0x893): undefined reference to `g_type_interface_prerequisites'
Fcitx-1.0.c:(.text+0x8c5): undefined reference to `g_type_name'
/home/tofuliang/fcitx/build/src/lib/fcitx-gclient/tmp-introspectYLAodh/Fcitx-1.0.o: In function `dump_boxed_type':
Fcitx-1.0.c:(.text+0x946): undefined reference to `g_type_name'
/home/tofuliang/fcitx/build/src/lib/fcitx-gclient/tmp-introspectYLAodh/Fcitx-1.0.o: In function `dump_flags_type':
Fcitx-1.0.c:(.text+0x985): undefined reference to `g_type_class_ref'
Fcitx-1.0.c:(.text+0x995): undefined reference to `g_type_name'
/home/tofuliang/fcitx/build/src/lib/fcitx-gclient/tmp-introspectYLAodh/Fcitx-1.0.o: In function `dump_enum_type':
Fcitx-1.0.c:(.text+0xa4c): undefined reference to `g_type_class_ref'
Fcitx-1.0.c:(.text+0xa5c): undefined reference to `g_type_name'
/home/tofuliang/fcitx/build/src/lib/fcitx-gclient/tmp-introspectYLAodh/Fcitx-1.0.o: In function `dump_fundamental_type':
Fcitx-1.0.c:(.text+0xb1a): undefined reference to `g_type_name'
Fcitx-1.0.c:(.text+0xb48): undefined reference to `g_type_test_flags'
Fcitx-1.0.c:(.text+0xb73): undefined reference to `g_type_test_flags'
Fcitx-1.0.c:(.text+0xb99): undefined reference to `g_type_parent'
Fcitx-1.0.c:(.text+0xba7): undefined reference to `g_string_new'
Fcitx-1.0.c:(.text+0xbd9): undefined reference to `g_type_name'
Fcitx-1.0.c:(.text+0xbea): undefined reference to `g_type_name'
Fcitx-1.0.c:(.text+0xbfc): undefined reference to `g_string_append'
Fcitx-1.0.c:(.text+0xc08): undefined reference to `g_type_parent'
Fcitx-1.0.c:(.text+0xc51): undefined reference to `g_string_free'
Fcitx-1.0.c:(.text+0xc75): undefined reference to `g_type_interfaces'
Fcitx-1.0.c:(.text+0xca0): undefined reference to `g_type_name'
/home/tofuliang/fcitx/build/src/lib/fcitx-gclient/tmp-introspectYLAodh/Fcitx-1.0.o: In function `dump_type':
Fcitx-1.0.c:(.text+0xcf8): undefined reference to `g_type_fundamental'
/home/tofuliang/fcitx/build/src/lib/fcitx-gclient/tmp-introspectYLAodh/Fcitx-1.0.o: In function `dump_error_quark':
Fcitx-1.0.c:(.text+0xde6): undefined reference to `g_quark_to_string'
/home/tofuliang/fcitx/build/src/lib/fcitx-gclient/tmp-introspectYLAodh/Fcitx-1.0.o: In function `dump_irepository':
Fcitx-1.0.c:(.text+0xe35): undefined reference to `g_module_open'
Fcitx-1.0.c:(.text+0xe45): undefined reference to `g_module_error'
Fcitx-1.0.c:(.text+0xe4d): undefined reference to `g_io_error_quark'
Fcitx-1.0.c:(.text+0xe70): undefined reference to `g_set_error'
Fcitx-1.0.c:(.text+0xe93): undefined reference to `g_strsplit'
Fcitx-1.0.c:(.text+0xea6): undefined reference to `g_file_new_for_path'
Fcitx-1.0.c:(.text+0xebd): undefined reference to `g_file_new_for_path'
Fcitx-1.0.c:(.text+0xed9): undefined reference to `g_file_read'
Fcitx-1.0.c:(.text+0xf19): undefined reference to `g_file_replace'
Fcitx-1.0.c:(.text+0xf29): undefined reference to `g_input_stream_get_type'
Fcitx-1.0.c:(.text+0xf3b): undefined reference to `g_type_check_instance_cast'
Fcitx-1.0.c:(.text+0xf4d): undefined reference to `g_input_stream_close'
Fcitx-1.0.c:(.text+0xf5c): undefined reference to `g_output_stream_get_type'
Fcitx-1.0.c:(.text+0xf6e): undefined reference to `g_type_check_instance_cast'
Fcitx-1.0.c:(.text+0xf80): undefined reference to `g_output_stream_get_type'
Fcitx-1.0.c:(.text+0xf92): undefined reference to `g_type_check_instance_cast'
Fcitx-1.0.c:(.text+0xfae): undefined reference to `g_hash_table_new'
Fcitx-1.0.c:(.text+0xfb7): undefined reference to `g_input_stream_get_type'
Fcitx-1.0.c:(.text+0xfc9): undefined reference to `g_type_check_instance_cast'
Fcitx-1.0.c:(.text+0xfd1): undefined reference to `g_data_input_stream_new'
Fcitx-1.0.c:(.text+0xfe1): undefined reference to `g_object_unref'
Fcitx-1.0.c:(.text+0xffb): undefined reference to `g_data_input_stream_read_line'
Fcitx-1.0.c:(.text+0x101d): undefined reference to `g_free'
Fcitx-1.0.c:(.text+0x102e): undefined reference to `g_strchomp'
Fcitx-1.0.c:(.text+0x10a5): undefined reference to `g_printerr'
Fcitx-1.0.c:(.text+0x10b8): undefined reference to `g_free'
Fcitx-1.0.c:(.text+0x10d0): undefined reference to `g_hash_table_lookup'
Fcitx-1.0.c:(.text+0x10f0): undefined reference to `g_hash_table_insert'
Fcitx-1.0.c:(.text+0x10f5): undefined reference to `g_output_stream_get_type'
Fcitx-1.0.c:(.text+0x1107): undefined reference to `g_type_check_instance_cast'
Fcitx-1.0.c:(.text+0x1197): undefined reference to `g_printerr'
Fcitx-1.0.c:(.text+0x11aa): undefined reference to `g_free'
Fcitx-1.0.c:(.text+0x11b1): undefined reference to `g_output_stream_get_type'
Fcitx-1.0.c:(.text+0x11c3): undefined reference to `g_type_check_instance_cast'
Fcitx-1.0.c:(.text+0x11e6): undefined reference to `g_free'
Fcitx-1.0.c:(.text+0x11f7): undefined reference to `g_hash_table_destroy'
Fcitx-1.0.c:(.text+0x11fc): undefined reference to `g_output_stream_get_type'
Fcitx-1.0.c:(.text+0x120e): undefined reference to `g_type_check_instance_cast'
Fcitx-1.0.c:(.text+0x123b): undefined reference to `g_input_stream_get_type'
Fcitx-1.0.c:(.text+0x124d): undefined reference to `g_type_check_instance_cast'
Fcitx-1.0.c:(.text+0x125e): undefined reference to `g_input_stream_close'
Fcitx-1.0.c:(.text+0x126e): undefined reference to `g_output_stream_get_type'
Fcitx-1.0.c:(.text+0x1280): undefined reference to `g_type_check_instance_cast'
Fcitx-1.0.c:(.text+0x1291): undefined reference to `g_output_stream_close'
/home/tofuliang/fcitx/build/src/lib/fcitx-gclient/tmp-introspectYLAodh/Fcitx-1.0.o: In function `main':
Fcitx-1.0.c:(.text+0x12d5): undefined reference to `g_threads_got_initialized'
Fcitx-1.0.c:(.text+0x12e3): undefined reference to `g_thread_init'
Fcitx-1.0.c:(.text+0x12e8): undefined reference to `g_type_init'
Fcitx-1.0.c:(.text+0x1308): undefined reference to `g_str_has_prefix'
Fcitx-1.0.c:(.text+0x1325): undefined reference to `g_printerr'
Fcitx-1.0.c:(.text+0x1392): undefined reference to `g_printerr'
/home/tofuliang/fcitx/build/src/lib/fcitx-gclient/tmp-introspectYLAodh/Fcitx-1.0.o:(.data+0x0): undefined reference to `fcitx_client_get_type'
/home/tofuliang/fcitx/build/src/lib/fcitx-gclient/tmp-introspectYLAodh/Fcitx-1.0.o:(.data+0x8): undefined reference to `fcitx_input_method_get_type'
/home/tofuliang/fcitx/build/src/lib/fcitx-gclient/tmp-introspectYLAodh/Fcitx-1.0.o:(.data+0x10): undefined reference to `fcitx_kbd_get_type'
collect2: ld 返回 1
linking of temporary binary failed: Command '['gcc', '-o', '/home/tofuliang/fcitx/build/src/lib/fcitx-gclient/tmp-introspectYLAodh/Fcitx-1.0', '-L.', '-Wl,-rpath=.', '-lfcitx-gclient', '-L/home/tofuliang/fcitx/build/src/lib/fcitx-gclient', '-pthread', '-lgio-2.0', '-lgobject-2.0', '-lgmodule-2.0', '-lgthread-2.0', '-lrt', '-lglib-2.0', '/home/tofuliang/fcitx/build/src/lib/fcitx-gclient/tmp-introspectYLAodh/Fcitx-1.0.o']' returned non-zero exit status 1
make[2]: *** [src/lib/fcitx-gclient/Fcitx-1.0.gir] 错误 1
make[1]: *** [src/lib/fcitx-gclient/CMakeFiles/Fcitx-1.0.gir.target.dir/all] 错误 2
make: *** [all] 错误 2
Re: mint 編譯fcitx 4.2.4失敗求助!
发表于 : 2012-06-08 21:04
由 YeLee
gobject-introspection呢?

Re: mint 編譯fcitx 4.2.4失敗求助!
发表于 : 2012-06-08 21:07
由 atsivsucks
Re: mint 編譯fcitx 4.2.4失敗求助!
发表于 : 2012-06-08 21:09
由 liangwilliam
YeLee 写了:gobject-introspection呢?

在cmake的倒數第9行不是提示找到了嗎?

Re: mint 編譯fcitx 4.2.4失敗求助!
发表于 : 2012-06-08 21:30
由 YeLee
Re: mint 編譯fcitx 4.2.4失敗求助!
发表于 : 2012-06-08 21:39
由 liangwilliam
這個...是從哪看出來是gobject-introspection的問題呢?

Re: mint 編譯fcitx 4.2.4失敗求助!
发表于 : 2012-06-08 21:44
由 YeLee
在链接的过程中出了问题,而且那几个函数有点面熟,不过,我只是猜的。
