LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 11385|回复: 18

scim + skim - "Failed to load x11 FrontEnd module."

[复制链接]
发表于 2005-7-16 21:00:41 | 显示全部楼层 |阅读模式
hi all,

sorry i write in english in a chinese forum. i don't yet know enough chinese to communicate. hope you don't mind. somebody feel free to translate the posts in this thread to chinese for the others. thanx

i'm package maintainer in archlinux (aka dp) and on my next step, trying to make skim work (to go to [extra]) i now try to find out why it does not work. basically it stops with this:


  1. [damir@Asteraceae ~]$ skim
  2. Launching a SCIM process with x11...
  3. Loading socket Config module ...
  4. Creating backend ...
  5. Loading x11 FrontEnd module ...
  6. Failed to load x11 FrontEnd module.
  7. Failed to launch SCIM.
复制代码


unfortunately also a strace do not tell me what is wrong and why this x11 FrontEnd module does not work:


  1. gettimeofday({1121518238, 267659}, NULL) = 0
  2. ioctl(3, FIONREAD, [0])                 = 0
  3. gettimeofday({1121518238, 267903}, NULL) = 0
  4. select(10, [3 4 5 7 9], [], [], {0, 476164}Loading x11 FrontEnd module ...
  5. Failed to load x11 FrontEnd module.
  6. ) = 1 (in [7], left {0, 24000})
  7. read(7, "\0", 16)                       = 1
  8. gettimeofday({1121518238, 725384}, NULL) = 0
  9. ioctl(3, FIONREAD, [0])                 = 0
  10. gettimeofday({1121518238, 725632}, NULL) = 0
  11. select(10, [3 4 5 7 9], [], [], {0, 18435}Failed to launch SCIM.
  12. ) = 0 (Timeout)
  13. gettimeofday({1121518238, 743600}, NULL) = 0
  14. ioctl(3, FIONREAD, [0])
复制代码


the same happens also with scim if you try to load it with x11 and not with socket FrontEnd module. i found this info also in this forums here:
http://www.linuxsir.cn/bbs/showthread.php?t=208642
and here:
http://www.linuxsir.cn/bbs/showthread.php?p=1203509#post1203509

scim you can start in socket-socket mode with
  1. scim -f socket -c socket -d
复制代码

and it will work. unfortunately skim i don't know how to load in socket mode.

do anybody here knows more about why the x11 FrontEnd module fails to load?

do anybody here knows how to start skim in socket-socket mode (if possible)?

thank you in advance
 楼主| 发表于 2005-7-16 21:12:15 | 显示全部楼层
if somebody want's to experiment with skim, i have put the PKGBUILD into the cvs (in HEAD). you can find it here:

http://cvs.archlinux.org/cgi-bin ... /vnd.viewcvs-markup
回复 支持 反对

使用道具 举报

发表于 2005-7-16 22:52:50 | 显示全部楼层
I found two post here about this issue, please try their solution:
1. http://www.linuxsir.cn/bbs/showt ... light=FrontEnd+scim
change mcpu=XXX to march=XXX

2. http://www.linuxsir.cn/bbs/showt ... light=FrontEnd+scim
delete old version of gtk if you have two versions installed

and please try to compile scim/skim directly (be sure to remove any previous installed files)

>do anybody here knows how to start skim in socket-socket mode (if possible)?
users can do this by:
General skim configuration in http://www.scim-im.org/wiki/docu ... ystem_configuration

of course, you can modify the system wide config of scim under $PREFIX/etc/scim/global

change these two lines to:
/DefaultConfigModule = kconfig
/DefaultPanelProgram = /absolute/path/to/skim

BTW: you  can join scim-user or scim-devel mailing list to discuss this issues if you prefer or bug us in #scim @freenode

http://www.scim-im.org/development/mailing_lists_irc
回复 支持 反对

使用道具 举报

发表于 2005-7-16 23:35:26 | 显示全部楼层
>do anybody here knows how to start skim in socket-socket mode (if possible)?
users can do this by:
General skim configuration in http://www.scim-im.org/wiki/documen...m_configuration

Sorry to bother, but I seem not to find the answer in the document or the answer is "it's impossible"?
回复 支持 反对

使用道具 举报

发表于 2005-7-16 23:40:33 | 显示全部楼层
General skim configuration
If you installed skim and want it to be the default GUI, then please follow the steps described in this section, otherwise please skip this section.
By default, libscim (scim) will make use of GTK+2 GUIs, so you have to change that:

skim -d -f

Under X, the above command will start skim no matter whether scim-panel-gtk is running or not. Next open the configure dialog (by selecting the configure action in the right click menu of either the system tray icon or the main window) and go to FrontEnd-> General SCIM-> Othertab (before skim 1.3.0, please go to Global Settings -> General SCIMinstead) and change these settings to the following:

Panel Program -> scim-panel-kde
Config Module -> kconfig


quoted from that link
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-7-16 23:51:37 | 显示全部楼层
liuspider: thanx a lot for the detailed and fast reply

Post by liuspider
I found two post here about this issue, please try their solution:
1. http://www.linuxsir.cn/bbs/showt ... light=FrontEnd+scim
change mcpu=XXX to march=XXX


the link points me to the gtk2 related thread. can you point me to the right thread? it is possible that this is the case why x11 module is not working, but i'm not sure because scim works perfectly in socket-socket mode

Post by liuspider

2. http://www.linuxsir.cn/bbs/showt ... light=FrontEnd+scim
delete old version of gtk if you have two versions installed


gtk works (as do scim) in socket-socket mode so that's most probably not the problem.

Post by liuspider

and please try to compile scim/skim directly (be sure to remove any previous installed files)


this i already realised when updating from 1.2.3 to 1.4.0 ;-) thanx!

Post by liuspider

>do anybody here knows how to start skim in socket-socket mode (if possible)?
users can do this by:
General skim configuration in http://www.scim-im.org/wiki/docu ... ystem_configuration

of course, you can modify the system wide config of scim under $PREFIX/etc/scim/global

change these two lines to:
/DefaultConfigModule = kconfig
/DefaultPanelProgram = /absolute/path/to/skim


this does not say anything about the FrontEnd module. :-(

the config module however, you are right is possible to set to socket or simple or kconfig. thank you.

what i want is to set the frontend module (because the x11 does not work) to socket instead of x11. the scim binary has the -f option to set this to socket the skim binary does not have it.

Post by liuspider

BTW: you  can join scim-user or scim-devel mailing list to discuss this issues if you prefer or bug us in #scim @freenode

http://www.scim-im.org/development/mailing_lists_irc


i searched the ML archives without success. you are on IRC? i will try to be online to find somebody of you to "bug" about this. thx
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-7-16 23:57:44 | 显示全部楼层
maybe to clarify:


  1. [damir@Asteraceae ~]$ scim -f socket -d
  2. Smart Common Input Method 1.4.0

  3. Launching a SCIM process with socket...
  4. Loading socket Config module ...
  5. Creating backend ...
  6. Loading socket FrontEnd module ...
  7. Starting SCIM as daemon ...
  8. SCIM has been successfully launched.
复制代码


but


  1. [damir@Asteraceae ~]$ scim -f x11 -d
  2. Smart Common Input Method 1.4.0

  3. Launching a SCIM process with x11...
  4. Loading socket Config module ...
  5. Creating backend ...
  6. Loading x11 FrontEnd module ...
  7. Failed to load x11 FrontEnd module.
  8. Failed to launch SCIM.
复制代码


so either i solve the x11 issue or i use socket. socket works perfectly for now.

however in skim you cannot setup to use socket:


  1. [damir@Asteraceae ~]$ skim
  2. Launching a SCIM process with x11...
  3. Loading socket Config module ...
  4. Creating backend ...
  5. Loading x11 FrontEnd module ...
  6. Failed to load x11 FrontEnd module.
  7. Failed to launch SCIM.
复制代码
回复 支持 反对

使用道具 举报

发表于 2005-7-17 00:04:55 | 显示全部楼层
Post by damirperisa

the link points me to the gtk2 related thread. can you point me to the right thread?  

oops, sorry, here it is:
http://www.linuxsir.cn/bbs/showt ... light=FrontEnd+scim

Post by damirperisa
it is possible that this is the case why x11 module is not working, but i'm not sure because scim works perfectly in socket-socket mode

without x11 module, scim won't work in xim only apps

Post by damirperisa

this i already realised when updating from 1.2.3 to 1.4.0 ;-) thanx!

can you make x11 module work if you compile scim directly?

Post by damirperisa

this does not say anything about the FrontEnd module. :-(

the config module however, you are right is possible to set to socket or simple or kconfig. thank you.

what i want is to set the frontend module (because the x11 does not work) to socket instead of x11. the scim binary has the -f option to set this to socket the skim binary does not have it.  

After you make that changes, scim will start skim, rather than the gtk UI ;) so you do not need to change the command line at all
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-7-17 00:30:22 | 显示全部楼层
the CFLAGS and CXXFLAGS are both already set to
  1. -march=i686 -O2 -pipe -Wl,-O1
复制代码


i know that without x11 module XIM will not work. that's also why i would like it more to solve it making x11 to load successfully.

what is the frontend module variable in the config file? if there is no such a parameter, then disabling x11 in skim is not possible. no problem with that.

i will now enable debug, recompile and try to find out why it fails to load the x11 module
回复 支持 反对

使用道具 举报

发表于 2005-7-17 00:39:32 | 显示全部楼层
Post by damirperisa

what is the frontend module variable in the config file? if there is no such a parameter, then disabling x11 in skim is not possible. no problem with that.

no such variable. but disabling x11 with skim is possible: as I said, after you make the changes described in my previous posts, use this command:
  1. scim -f socket -d
复制代码

will start skim for you. (Hope clear enough this time)
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表