編譯前已經 運行
代码: 全选
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!
但還是報一樣的錯誤.
後來試試編譯 Google code裏面的4.2.3,非常順利,一次編譯成功.
現在也正常使用,只是搞不懂爲什麼編譯4.2.4就會有這樣的問題!
求解釋...