[fcitx] 编译fcitx-fbterm时make提示错误 :(

44 views
Skip to first unread message

青月

unread,
Feb 22, 2012, 8:20:45 PM2/22/12
to fc...@googlegroups.com
现在的fcitx使用正常,看到网上对fbterm描述很感兴趣,打算在fbterm下也调用fbterm。并下载了fcitx-fbterm。进行编译。
刚开始fcitx,fcitx-fbterm的prefix不指向同一目录,提示错误。更改后cmake不再提示错误。

执行make。错误提示如下:

bash-4.1# make
[ 12%] Generating marshall.h
[ 25%] Generating marshall.c
Scanning dependencies of target fcitx-fbterm
[ 37%] Building C object src/CMakeFiles/fcitx-fbterm.dir/marshall.c.o
[ 50%] Building C object src/CMakeFiles/fcitx-fbterm.dir/client.c.o
/root/test/fcitx-fbterm/src/client.c:22:41: 致命错误:fcitx/module/dbus/dbusstuff.h:没有那个文件或目录
编译中断。
make[2]: *** [src/CMakeFiles/fcitx-fbterm.dir/client.c.o] 错误 1
make[1]: *** [src/CMakeFiles/fcitx-fbterm.dir/all] 错误 2
make: *** [all] 错误 2

在网上搜索
https://www.csslayer.info/wordpress/fcitx-dev/fcitx-4-1/这里的@lurz也遇到过同样的问题,作者回复是“你得加编译dbus编译fcitx。”
这里还有篇文章https://www.csslayer.info/wordpress/fcitx-dev/here-comes-fcitx-fbterm/

我用的是slackware,安装了dbus。
所以请教各位,如何编译呢?谢谢

Weng Xuetian

unread,
Feb 22, 2012, 10:12:40 PM2/22/12
to fc...@googlegroups.com
编译fcitx的要加上dbus,虽然说是默认加的,但你也许关了……

cmake的时侯加上 -DENABLE_DBUS=On,如果正常的话 fcitx 安装时就会有那个文件的。

2012/2/23 青月 <liushuiwu...@gmail.com>:

> --
> 您收到此邮件是因为您订阅了 Google 网上论坛的“fcitx”论坛。
> 要向此网上论坛发帖,请发送电子邮件至 fc...@googlegroups.com
> 要取消订阅此网上论坛,请发送电子邮件至 fcitx+un...@googlegroups.com
> 若有更多问题,请通过 http://groups.google.com/group/fcitx?hl=zh-CN 访问此网上论坛。

青月

unread,
Feb 22, 2012, 11:31:59 PM2/22/12
to fc...@googlegroups.com
那我cmake    fcitx-fbterm的时候加上这个参数试试。
有点儿发愁再次编译fcitx。好不容易编译好。有些舍不得 ><

Weng Xuetian

unread,
Feb 22, 2012, 11:57:00 PM2/22/12
to fc...@googlegroups.com
不不,这个参数要加在fcitx的cmake时……

再说也没啥舍不得的……编译fcitx还是很快的……


2012/2/23 青月 <liushuiwu...@gmail.com>:

青月

unread,
Feb 22, 2012, 11:57:55 PM2/22/12
to fc...@googlegroups.com
:(
舍不得孩子,套不得狼。干!!

在 2012年2月23日 下午12:57,Weng Xuetian <wen...@gmail.com>写道:
不不,这个参数要加在fcitx的cmake时......

再说也没啥舍不得的......编译fcitx还是很快的......



2012/2/23 青月 <liushuiwu...@gmail.com>:
> 那我cmake    fcitx-fbterm的时候加上这个参数试试。
> 有点儿发愁再次编译fcitx。好不容易编译好。有些舍不得 ><
>
> 在 2012年2月23日 上午11:12,Weng Xuetian <wen...@gmail.com>写道:
>
>> 编译fcitx的要加上dbus,虽然说是默认加的,但你也许关了......

依云

unread,
Feb 22, 2012, 11:58:21 PM2/22/12
to fc...@googlegroups.com
fcitx 很快就编译好啦,又不是内核,又要配置,编译又要半小时。

--
Best regards,
lilydjwg

Linux Vim Python 我的博客:
http://lilydjwg.is-programmer.com/
--
A: Because it obfuscates the reading.
Q: Why is top posting so bad?

Weng Xuetian

unread,
Feb 23, 2012, 12:01:41 AM2/23/12
to fc...@googlegroups.com
……我建议你参考archlinux的 pkgbuild。

http://projects.archlinux.org/svntogit/packages.git/tree/trunk?h=packages/fcitx

简单省事,都是shell脚本,还能告诉你安装后也许要执行的额外命令……

https://aur.archlinux.org/packages/fc/fcitx-fbterm/PKGBUILD

安装在 /usr 的原因就是,默认pkgconfig,cmake都会找 /usr下面的文件,而不是自定义的,省事。

2012/2/23 青月 <liushuiwu...@gmail.com>:

青月

unread,
Feb 23, 2012, 5:28:50 AM2/23/12
to fc...@googlegroups.com
我参照你在http://forum.ubuntu.org.cn/viewtopic.php?t=344650&p=2525668上面提到的
# 让pkg-config找到fcitx的pkgconfig
export  PKG_CONFIG_PATH=<prefix>/lib/pkgconfig:$PKG_CONFIG_PATH
# 让cmake找到 FcitxConfig.cmake
export CMAKE_PREFIX_PATH=<prefix>
# 将fcitx的prefix的bin加入path,因为cmake需要 fcitx4-config 这个脚本来确定一些路径
export PATH=<prefix>/bin:$PATH

fcitx-fbterm编译没报错。不过fbterm里面却是出问题了。满屏的信息,看不出什么,但不是乱码。总结一句就是:没法在fbterm里启动。
在fbterm的配置文件里面:
input-method=
这个参数后面是添加fcitx呢?还是添加fcitx-fbterm呢?

在 2012年2月23日 下午1:01,Weng Xuetian <wen...@gmail.com>写道:
......我建议你参考archlinux的 pkgbuild。

http://projects.archlinux.org/svntogit/packages.git/tree/trunk?h=packages/fcitx

简单省事,都是shell脚本,还能告诉你安装后也许要执行的额外命令......

Weng Xuetian

unread,
Feb 23, 2012, 5:35:47 AM2/23/12
to fc...@googlegroups.com
你把 fcitx-fbterm 的 bin 目录加到 PATH里面(一定要加……因为fcitx-fbterm-helper里面没用相对路径)

然后你可以先试试执行 fcitx-fbterm-helper

如果仍然不行的话可以再用 fcitx-fbterm-helper -l

详情参见提示信息。

2012/2/23 青月 <liushuiwu...@gmail.com>:

青月

unread,
Feb 23, 2012, 5:37:48 AM2/23/12
to fc...@googlegroups.com
好的。我试试。谢谢:)

在 2012年2月23日 下午6:35,Weng Xuetian <wen...@gmail.com>写道:
你把 fcitx-fbterm 的 bin 目录加到 PATH里面(一定要加......因为fcitx-fbterm-helper里面没用相对路径)

青月

unread,
Feb 23, 2012, 6:39:46 AM2/23/12
to fc...@googlegroups.com
因为我自己指定了安装路径。因此在执行fcitx-fbterm-helper -l时,提示
fcitx-fbterm:error while loading shared libraries:libfcitx-core.so.o:cannot open shared object file:No such file or directory
因为本人水平问题,所以直接把安装路径的lib目录下内容全部cp到/usr/lib下了。再执行fcitx-fbterm-helper -l,可以进fbterm了,而且还可以输入了:)

《本想传张图片的,考虑图片的体积就算了,呵呵》

Weng Xuetian

unread,
Feb 23, 2012, 6:43:40 AM2/23/12
to fc...@googlegroups.com
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/path/to/libdir

2012/2/23 青月 <liushuiwu...@gmail.com>:

青月

unread,
Feb 23, 2012, 6:53:08 AM2/23/12
to fc...@googlegroups.com
export 仅能指定本次的。下次在启动还得指定,私下感觉还是cp省事儿,虽然要多花费一些空间来存放cp到/usr/lib的东西,嘿嘿

Weng Xuetian

unread,
Feb 23, 2012, 6:56:30 AM2/23/12
to fc...@googlegroups.com
你写到 ~/.profile 里面就好了啊。一劳永逸。

2012/2/23 青月 <liushuiwu...@gmail.com>:

依云

unread,
Feb 23, 2012, 7:02:31 AM2/23/12
to fc...@googlegroups.com
vi /etc/ld.so.conf && ldconfig

> > >>> >> >> >> > https://www.csslayer.info/wordpress/fcitx-dev/fcitx-4-1/
> > 这里的@lurz也遇到过同样的问题,作者回复是"你得加编译dbus编译fcitx。"
> > >>> >> >> >> >
> > >>> >> >> >> >
> > >>> >> >> >> >
> > >>> >> >> >> >
> > >>> >> >> >> > 这里还有篇文章

--

青月

unread,
Feb 23, 2012, 7:09:36 AM2/23/12
to fc...@googlegroups.com

依云

unread,
Feb 23, 2012, 8:19:58 AM2/23/12
to fc...@googlegroups.com
OT 下,为什么我的 fbterm 的字体显示不对了? http://img.vim-cn.com/9e/37cb9ba6acb47936a02677db7514aea44162d2

On Thu, Feb 23, 2012 at 08:09:36PM +0800, 青月 wrote:
> https://lh6.googleusercontent.com/-gvY5nczKe-M/T0Yrpc2WKWI/AAAAAAAAAEg/cJTyEKkWYMU/w359-h287-k/120223A036.jpg
>
> https://lh6.googleusercontent.com/-1yh0yQ_xOR8/T0Yr2EF7w9I/AAAAAAAAAFA/7N6Pp5Ztcl4/w359-h287-k/120223A035.jpg
>
> 给两个地址吧。有兴趣就看看,嘿嘿
> 对二位提出的亲切建议表示感谢:D
>

--

青月

unread,
Feb 23, 2012, 8:30:35 AM2/23/12
to fc...@googlegroups.com
正在下字体。
换个字体试试如何?

依云

unread,
Feb 23, 2012, 8:45:46 AM2/23/12
to fc...@googlegroups.com
都一样,DejaVu Sans Mono, Consolas, Inconsolate.

青月

unread,
Feb 23, 2012, 9:17:04 AM2/23/12
to fc...@googlegroups.com
好像是这个样子。。。。
比较难看:(

青月

unread,
Feb 23, 2012, 9:32:33 AM2/23/12
to fc...@googlegroups.com
你试试看这两个字体:
Monospace   和  DejaVu  Sans  Mono
等会儿我给个图片链接。
不过,因为背景的黑色不纯,确切说是发黑灰,所以感觉字体调成绿色比较好些(个人视觉)

青月

unread,
Feb 23, 2012, 9:37:45 AM2/23/12
to fc...@googlegroups.com

依云

unread,
Feb 23, 2012, 10:31:10 AM2/23/12
to fc...@googlegroups.com
我这里还是不行,看来是硬件设置的问题?我的是 i 卡的。以前的是 n 卡,那里
也是没有问题的。

青月

unread,
Feb 23, 2012, 6:32:52 PM2/23/12
to fc...@googlegroups.com
我也是A卡
Reply all
Reply to author
Forward
0 new messages