[root@lambda fcitx-4.2.8]# cd build [root@lambda build]# cmake .. -DCMAKE_INSTALL_PREFIX=/opt/usr/local/ -- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) -- Could NOT find GettextPo (missing: GETTEXTPO_LIBRARIES GETTEXTPO_INCLUDE_DIR) -- checking for module 'enchant' -- package 'enchant' not found -- Could NOT find Enchant (missing: ENCHANT_LIBRARIES ENCHANT_INCLUDE_DIR ENCHANT_API_COMPATIBLE) -- checking for module 'iso-codes' -- package 'iso-codes' not found CMake Error at /usr/local/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:108 (message): Could NOT find IsoCodes (missing: ISOCODES_ISO639_XML ISOCODES_ISO3166_XML) Call Stack (most recent call first): /usr/local/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:315 (_FPHSA_FAILURE_MESSAGE) cmake/FindIsoCodes.cmake:30 (find_package_handle_standard_args) CMakeLists.txt:90 (find_package)
http://mirrors.ustc.edu.cn/centos/6.4/os/x86_64/Packages/enchant-1.5.0-4.el6.i686.rpm
yum install enchant-devel
yum install iso-codes-devel-3.16-2.el6.noarch
[root@lambda build]# cmake .. -DCMAKE_INSTALL_PREFIX=/opt/usr/local/
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
-- Could NOT find GettextPo (missing: GETTEXTPO_LIBRARIES GETTEXTPO_INCLUDE_DIR)
-- checking for module 'enchant'
-- package 'enchant' not found
-- checking for module 'iso-codes'
-- found iso-codes, version 3.16
-- Found IsoCodes: /usr/share/xml/iso-codes/iso_639.xml
-- checking for module 'xkbfile'
-- package 'xkbfile' not found
CMake Error at /usr/local/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:108 (message):
Could NOT find XkbFile (missing: XKBFILE_LIBRARIES
XKBFILE_MAIN_INCLUDE_DIR)
Call Stack (most recent call first):
/usr/local/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:315 (_FPHSA_FAILURE_MESSAGE)
cmake/FindXkbFile.cmake:33 (find_package_handle_standard_args)
CMakeLists.txt:91 (find_package)
gettext-devel
doxygen
qt4-devel
[root@lambda build]# cmake .. -DCMAKE_INSTALL_PREFIX=/opt/usr/local/
-- checking for module 'enchant'
-- package 'enchant' not found
-- checking for module 'xkbfile'
-- package 'xkbfile' not found
-- Could NOT find Presage (missing: PRESAGE_LIBRARIES PRESAGE_INCLUDE_DIR PRESAGE_API_COMPATIBLE)
-- Found ICU header files in /usr/include
-- Found ICU libraries: /usr/lib64/libicuuc.so
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - found
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - not found
-- Found Qt4: /usr/bin/qmake-qt4 (found suitable version "4.6.2", minimum required is "4.5")
-- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so
-- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/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/lib64/libX11.so
-- checking for module 'cairo-xlib>=1.0'
-- found cairo-xlib, version 1.12.16
-- checking for module 'pangocairo>=1.0'
-- package 'pangocairo>=1.0' not found
-- checking for module 'fontconfig'
-- found fontconfig, version 2.10.95
-- checking for module 'dbus-1>=1.1.0'
-- package 'dbus-1>=1.1.0' not found
-- checking for module 'opencc'
-- package 'opencc' not found
-- Could NOT find OpenCC (missing: OPENCC_LIBRARIES OPENCC_INCLUDE_DIR OPENCC_API_COMPATIBLE)
-- Adding Fcitx Addon x11
-- Adding Fcitx Addon xkb
-- Adding Fcitx Addon xkbdbus
-- Adding Fcitx Addon chttrans
-- Adding Fcitx Addon punc
-- Adding Fcitx Addon spell
-- Adding Fcitx Addon pinyin-enhance
-- Adding Fcitx Addon quickphrase
-- Adding Fcitx Addon autoeng
-- Adding Fcitx Addon fullwidth-char
-- Adding Fcitx Addon remote-module
-- Adding Fcitx Addon imselector
-- Adding Fcitx Addon clipboard
-- Adding Fcitx Addon vk
-- Adding Fcitx Addon dbus
-- Adding Fcitx Addon lua
-- Adding Fcitx Addon unicode
-- Adding Fcitx Addon freedesktop-notify
-- Adding Fcitx Addon notificationitem
-- Adding Fcitx Addon pinyin
-- Adding Fcitx Addon keyboard
-- Adding Fcitx Addon table
-- Adding Fcitx Addon qw
-- Adding Fcitx Addon xim
-- Adding Fcitx Addon ipc
-- Adding Fcitx Addon classic-ui
-- Adding Fcitx Addon kimpanel-ui
-- Configuring done
-- Generating done
-- Build files have been written to: /media/pkg/fctix/fcitx-4.2.8/build
接下来make,这个过程还挺快,有百分比显示,挺好,完毕后进行make install
安装完毕后,还需要对它进行一些配置(参考了http://agong.org/2012/centos-6-3-install-fcitx-4-2-6-1.html)
方法如下:
1.新建配置文件: sudo vim /etc/X11/xinit/xinput.d/fcitx.conf 添加以下内容: XIM=fcitx XIM_PROGRAM=/usr/local/bin/fcitx # 这里请更改为你的fcitx执行文件位置,默认安装是这里 XIM_ARGS=”-d” GTK_IM_MODULE=fcitx QT_IM_MODULE =fcitx 2.然后在/etc/alternatives/目录下,将符号链接xinputrc删除,重新建一个: sudo mv /etc/alternatives/xinputrc /etc/alternatives/xinputrc.bak sudo ln -s /etc/X11/xinit/xinput.d/fcitx.conf /etc/alternatives/xinputrc 3.注销然后登陆,在系统—首选项—输入法,里面选择“启用输入法特性”,选择“使用fcitx”,然后“注销”,登录后按“ctrl+空格”就可激活fcitx输入法。 注:如果你使用的桌面是英文环境的,还需要在使用用户的用户目录.bashrc配置文件里添加如下内容: export LANG=”zh_CN.UTF-8″ export LC_CTYPE=”zh_CN.UTF-8″ export XIM=fcitx export XIM_PROGRAM=fcitx export GTK_IM_MODULE=xim export XMODIFIERS=”@im=fcitx” 4.如果你可以看到菜单栏里有输入法状态图标,但是无法用“ctrl+空格”调出,请尝试删除原来默认的输入中文法ibus: sudo yum remove ibus
接下来make,这个过程还挺快,有百分比显示,挺好,完毕后进行make install
安装完毕后,还需要对它进行一些配置(参考了http://agong.org/2012/centos-6-3-install-fcitx-4-2-6-1.html)
方法如下:
1.新建配置文件: sudo vim /etc/X11/xinit/xinput.d/fcitx.conf 添加以下内容: XIM=fcitx XIM_PROGRAM=/usr/local/bin/fcitx # 这里请更改为你的fcitx执行文件位置,默认安装是这里 XIM_ARGS=”-d” GTK_IM_MODULE=fcitx QT_IM_MODULE =fcitx 2.然后在/etc/alternatives/目录下,将符号链接xinputrc删除,重新建一个: sudo mv /etc/alternatives/xinputrc /etc/alternatives/xinputrc.bak sudo ln -s /etc/X11/xinit/xinput.d/fcitx.conf /etc/alternatives/xinputrc 3.注销然后登陆,在系统—首选项—输入法,里面选择“启用输入法特性”,选择“使用fcitx”,然后“注销”,登录后按“ctrl+空格”就可激活fcitx输入法。 注:如果你使用的桌面是英文环境的,还需要在使用用户的用户目录.bashrc配置文件里添加如下内容: export LANG=”zh_CN.UTF-8″ export LC_CTYPE=”zh_CN.UTF-8″ export XIM=fcitx export XIM_PROGRAM=fcitx export GTK_IM_MODULE=xim export XMODIFIERS=”@im=fcitx” 4.如果你可以看到菜单栏里有输入法状态图标,但是无法用“ctrl+空格”调出,请尝试删除原来默认的输入中文法ibus: sudo yum remove ibus
http://m.blog.csdn.net/blog/backgarden_straw/8460751
[ 85%] Built target fcitx-quickphrase-editor_automoc
[ 86%] Generating ui_editor.h
uic: Error in line 39, column 34 : Unexpected attribute theme
File '/media/pkg/fctix/fcitx-4.2.8/tools/gui/quickphrase-editor/editor.ui' is not valid
make[2]: *** [tools/gui/quickphrase-editor/ui_editor.h] Error 1
make[1]: *** [tools/gui/quickphrase-editor/CMakeFiles/fcitx-quickphrase-editor.dir/all] Error 2
make: *** [all] Error 2
./qt-linux-opensource-1.4.0-2-x86_64-online.run
Warning: QString::arg: Argument missing: 无法解析res_nclose中的符号“res_nclose”:resolv, (/lib64/libresolv.so.2: undefined symbol: res_nclose)
CentOS 6 Qt5
http://blog.sina.com.cn/s/blog_976cce7c0101aa8b.html