求助!UBUNTU 10.04下编译fcitx-configtool-0.4.2失败

系统字体配置、中文显示和输入法问题
回复
sjzluquan
帖子: 24
注册时间: 2011-01-27 20:39

求助!UBUNTU 10.04下编译fcitx-configtool-0.4.2失败

#1

帖子 sjzluquan » 2013-01-03 10:58

折腾啦老半天才把fcitx-4.2.2编译安装上去,用的cmake .. 没有自己指定目录。

但是,在安装fcitx-configtool-0.4.2时却出错啦

代码: 全选

-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- 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
-- checking for module 'glib-2.0 >= 2.26'
--   package 'glib-2.0 >= 2.26' not found
CMake Error at /usr/share/cmake-2.8/Modules/FindPkgConfig.cmake:259 (message):
  A required package was not found
Call Stack (most recent call first):
  /usr/share/cmake-2.8/Modules/FindPkgConfig.cmake:311 (_pkg_check_modules_internal)
  CMakeLists.txt:16 (PKG_CHECK_MODULES)


-- checking for module 'gio-2.0 >= 2.26'
--   package 'gio-2.0 >= 2.26' not found
CMake Error at /usr/share/cmake-2.8/Modules/FindPkgConfig.cmake:259 (message):
  A required package was not found
Call Stack (most recent call first):
  /usr/share/cmake-2.8/Modules/FindPkgConfig.cmake:311 (_pkg_check_modules_internal)
  CMakeLists.txt:17 (PKG_CHECK_MODULES)


-- checking for module 'iso-codes'
--   found iso-codes, version 3.12.1
-- checking for module 'fcitx'
--   found fcitx, version 4.2.2
-- checking for module 'fcitx-config'
--   found fcitx-config, version 4.2.2
-- checking for module 'fcitx-utils'
--   found fcitx-utils, version 4.2.2
-- fcitx4-config found /usr/local/bin/fcitx4-config
-- Found Fcitx: 4.2.2
-- checking for module 'gtk+-2.0 >= 2.22'
--   package 'gtk+-2.0 >= 2.22' not found
CMake Error at /usr/share/cmake-2.8/Modules/FindPkgConfig.cmake:259 (message):
  A required package was not found
Call Stack (most recent call first):
  /usr/share/cmake-2.8/Modules/FindPkgConfig.cmake:311 (_pkg_check_modules_internal)
  gtk/CMakeLists.txt:1 (PKG_CHECK_MODULES)


-- checking for module 'unique-1.0'
--   found unique-1.0, version 1.1.6
-- Configuring incomplete, errors occurred!

我知道我可能是缺少啦什么库之类的东西了,glib 和 gio我始终找不到,但是gtk+2.0我确实安装上去了,不知道为什么。

还有就是,记得在fcitx项目主页上见过一次有人说编译新版的fcitx得到高版本的ubuntu上,是这样的吗?http://code.google.com/p/fcitx/issues/d ... ot%20found有在10.04上编译成功的大神么?求指教!

by the way,在10.04上编译fcitx-4.2.6失败。。。。与4.2.2有那么大的区别吗?求解释!
头像
YeLee
论坛版主
帖子: 26406
注册时间: 2008-08-13 8:48
系统: Fundu i64
来自: 东海硇州,一双管钥。
联系:

Re: 求助!UBUNTU 10.04下编译fcitx-configtool-0.4.2失败

#2

帖子 YeLee » 2013-01-03 11:11

http://fcitx-im.org/wiki/Special:MyLang ... rom_source
编译看这里,不过,看你的发行版的版本太旧了,建议还是换个新点的系统吧。当然,换个旧点的fcitx也是不错的建议。
自己编译也是很不推荐的办法,有个ppa,建议试一下。
◎当我站在道德的高度上俯视别人的时候,发现自己是多么渺小。
♥执着但不偏激,反对而不排斥,坚决捍卫矛盾体的存在方式。
★★★天气预报★★★
fcitx-yatable一个可以使用的码表输入法
[教程]几个实例攻克软件编译难关
Gentoo Development Guide
字体相关
sjzluquan
帖子: 24
注册时间: 2011-01-27 20:39

Re: 求助!UBUNTU 10.04下编译fcitx-configtool-0.4.2失败

#3

帖子 sjzluquan » 2013-01-03 16:02

YeLee 写了:http://fcitx-im.org/wiki/Special:MyLang ... rom_source
编译看这里,不过,看你的发行版的版本太旧了,建议还是换个新点的系统吧。当然,换个旧点的fcitx也是不错的建议。
自己编译也是很不推荐的办法,有个ppa,建议试一下。
自己编译就是为了好玩,见大神们都玩的很好。。。。

我确实是看项目的wiki了,所以才能把fcitx-4.2.2编译成功了,fcitx-4.2.6就不行。暂时不管4.2.6的问题,请问我怎样添加ppa呢?怎样得到fcitx-configtool呢?
头像
YeLee
论坛版主
帖子: 26406
注册时间: 2008-08-13 8:48
系统: Fundu i64
来自: 东海硇州,一双管钥。
联系:

Re: 求助!UBUNTU 10.04下编译fcitx-configtool-0.4.2失败

#4

帖子 YeLee » 2013-01-03 16:43

记得fcitx 4.2.5之后加了几个新的插件,需要依赖icu之类的库吧,我记得csslayer说过gobject-introspection只是可选依赖的吧。
http://fcitx-im.org/wiki/Install_%28Ubuntu%29
ppa添加方法看这里。 :em01 :em01 :em01
◎当我站在道德的高度上俯视别人的时候,发现自己是多么渺小。
♥执着但不偏激,反对而不排斥,坚决捍卫矛盾体的存在方式。
★★★天气预报★★★
fcitx-yatable一个可以使用的码表输入法
[教程]几个实例攻克软件编译难关
Gentoo Development Guide
字体相关
csslayer
帖子: 575
注册时间: 2009-08-03 13:08

Re: 求助!UBUNTU 10.04下编译fcitx-configtool-0.4.2失败

#5

帖子 csslayer » 2013-01-03 16:54

fcitx-configtool try
-DENABLE_GTK3=Off
……另外越新越好,configtool的新版有的地方反而降低了依赖……

4.2.6.1 在包版本更老的 centos 上用合适的选项都能编译啊……

代码: 全选

$ cat CMakeCache.txt  | grep ENABLE_
ENABLE_BACKTRACE:BOOL=ON
ENABLE_CAIRO:BOOL=ON
ENABLE_DBUS:BOOL=ON
ENABLE_DEBUG:BOOL=OFF
ENABLE_ENCHANT:BOOL=ON
ENABLE_GIR:BOOL=ON
ENABLE_GLIB2:BOOL=ON
ENABLE_GTK2_IM_MODULE:BOOL=ON
ENABLE_GTK3_IM_MODULE:BOOL=OFF
ENABLE_ICU:BOOL=ON
ENABLE_LIBXML2:BOOL=ON
ENABLE_LUA:BOOL=OFF
ENABLE_OPENCC:BOOL=ON
ENABLE_PANGO:BOOL=ON
ENABLE_PRESAGE:BOOL=ON
ENABLE_QT_IM_MODULE:BOOL=ON
ENABLE_SNOOPER:BOOL=ON
ENABLE_STATIC:BOOL=OFF
ENABLE_TABLE:BOOL=ON
ENABLE_TEST:BOOL=OFF
ENABLE_X11:BOOL=ON
ENABLE_XDGAUTOSTART:BOOL=ON
ppa 不更新 10.04 的了
回复