h1aji / chmsee

CHM viewer
GNU General Public License v2.0
1 stars 1 forks source link

Couldn't find a compatible GRE!找不到一个兼容的GRE CoreDump #140

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
先前就是运行
sudo yum install chmsee
然后 运行chmsee,出现这样的错误:
[nie@lxde ~]$ chmsee 

** (chmsee:1804): WARNING **: GECKO_UTILS >>> Couldn't find a compatible GRE!

** ERROR **: Initialize html render engine failed!
Trace/breakpoint trap(吐核)

搜索说是升级下xulrunner,就卸载了xulrunner7,装了8
但还是有这错误。

然后,就下载 
你的11月20日的版本。尝试手动编译。又报错了:

[root@lxde src]# chmod 777 /usr/lib/xulrunner-sdk-2/bin/*  -R
[root@lxde src]# make 
/usr/lib/xulrunner-sdk-2/bin/xpidl -w -v -m header -I 
/usr/lib/xulrunner-sdk-2/idl csIChm.idl
/usr/lib/xulrunner-sdk-2/bin/xpidl -w -v -m typelib -I 
/usr/lib/xulrunner-sdk-2/idl csIChm.idl
/usr/lib/xulrunner-sdk-2/sdk/bin/xpt.py link ../components/xpcomchm.xpt 
csIChm.xpt
make: execvp: /usr/lib/xulrunner-sdk-2/sdk/bin/xpt.py: 权限不够
make: *** [../components/xpcomchm.xpt] 错误 127
[root@lxde src]# 

请老大指点。。。。

Original issue reported on code.google.com by niejieqi...@gmail.com on 23 Nov 2011 at 5:35

GoogleCodeExporter commented 8 years ago
[nie@lxde ~]$ xulrunner -v
Mozilla XULRunner 8.0 - 20111108090109

我现在的xulrunner版本

Original comment by niejieqi...@gmail.com on 23 Nov 2011 at 5:35

GoogleCodeExporter commented 8 years ago
原来 chmod 弄错了目录。抱歉。。。

Original comment by niejieqi...@gmail.com on 23 Nov 2011 at 5:38

GoogleCodeExporter commented 8 years ago
[nie@lxde src]$ sudo make
g++ -fno-rtti -fno-exceptions -std=gnu++0x -Woverloaded-virtual -Wsynth 
-Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wno-invalid-offsetof 
-fvisibility=hidden -Wall -Wpointer-arith -Wcast-align -Wno-variadic-macros -O2 
-fPIC -DPIC -fno-strict-aliasing -Dunix -fshort-wchar -pthread -pipe 
-I/usr/include -I. -I/usr/lib/xulrunner-sdk-2/include -I/usr/include/nspr4 
-I/usr/include -DMOZILLA_CLIENT -include mozilla-config.h   -c -o csChm.o 
csChm.cpp
csChm.cpp:23:21: 致命错误:chm_lib.h:没有那个文件或目录
编译中断。
make: *** [csChm.o] 错误 1
[nie@lxde src]$

老大,chm_lib.h这个文件没找到,在哪里呀,对C语言一窍不通�
��。。

Original comment by niejieqi...@gmail.com on 23 Nov 2011 at 5:41

GoogleCodeExporter commented 8 years ago
原来要装chmlib-devel
谢谢,现在照帮助所说 运行 xulrunner application.ini
能打开chm文件了。只是那目录树的格式似乎变了。都是斜的��
�。见图:

Original comment by niejieqi...@gmail.com on 23 Nov 2011 at 5:55

Attachments:

GoogleCodeExporter commented 8 years ago
使用自定义命令为什么不行?
我用的lxde,在pcman右键定义命令中添加:
xulrunner /home/nie/tools/chmsee/application.ini %f
或:
xulrunner /home/nie/tools/chmsee/application.ini 
都不行.....
但在终端这样却可以 :
xulrunner /home/nie/tools/chmsee/application.ini XX.chm

照README里面的复制xulrunner-stub到chmsee目录,然后运行时会提示��
�不到Mozilla运行环境

Original comment by niejieqi...@gmail.com on 23 Nov 2011 at 6:12

GoogleCodeExporter commented 8 years ago
可以创建一个名为 chmsee 的 shell 脚本放在 ~/bin 
目录下面,比如:

#!/bin/sh
xulrunner /home/nie/tools/chmsee/application.ini

复制 xulrunner-stub 
的方法以前可以,刚才我试了一下也不行,看来新版本下这��
�不顶用了。

目录树问题是解析 hhc 
文件出错了,我找时间看看错在哪里,这个 chm 里面的 hhc 
跟其他的不一样,多谢你提供了这个样本 :P

Original comment by jungl...@gmail.com on 23 Nov 2011 at 3:13

GoogleCodeExporter commented 8 years ago
Clear all pre-2.0 issues

Original comment by jungl...@gmail.com on 18 Jan 2013 at 6:10