h1aji / chmsee

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

fedora 17 x86_64 系统编译失败 #150

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
$ cmake ../chmsee-1.3.1.1
-- checking for one of the modules 
'mozilla-gtkmozembed-embedding>=1.9;xulrunner-gtkmozembed>=1.9'
CMake Error at /usr/share/cmake/Modules/FindPkgConfig.cmake:363 (message):
  None of the required
  'mozilla-gtkmozembed-embedding>=1.9;xulrunner-gtkmozembed>=1.9' found
Call Stack (most recent call first):
  CMakeLists.txt:11 (pkg_search_module)

-- Configuring incomplete, errors occurred!
已经安装xulrunner 版本是:xulrunner-devel-14.0.1-3.fc17(64位)
xulrunner-14.0.1-3.fc17(64位) 这个也已经安装了

请教下这个是什么问题?谢谢!

Original issue reported on code.google.com by webluoye on 23 Jul 2012 at 6:50

GoogleCodeExporter commented 8 years ago
chmsee-1.3.1.1 和 xulrunner 14 不兼容,你应使用 chmsee-1.99.12

https://github.com/jungleji/chmsee/tags

Original comment by jungl...@gmail.com on 23 Jul 2012 at 6:55

GoogleCodeExporter commented 8 years ago
谢谢回答!
/usr/bin/xulrunner  /usr/bin/firefox 都可以执行

16 7月  23 15:33 xulrunner -> /usr/bin/firefox
还是提示:Could not find the Mozilla runtime.

还需要作什么操作吗?

Original comment by webluoye on 23 Jul 2012 at 7:37

GoogleCodeExporter commented 8 years ago
运行前需要

1. 编译 src 下 XPCOM
2. 使用 xulrunner-bin --install-app 安装程序
3. 有时需要 ln -s 链接 xulrunner 到安装后的目录

如果这三步执行都没出错,你用 ls -l 列出安装目录我看一下

Original comment by jungl...@gmail.com on 23 Jul 2012 at 8:16

GoogleCodeExporter commented 8 years ago
src下就这些文件

common.mk    csChmfile.o      csChm.o     Makefile         Makefile.sample
csChm.cpp    csChm.h          csIChm.h    Makefile.arch
csChmfile.c  csChmModule.cpp  csIChm.idl  Makefile.debian
csChmfile.h  csChmModule.o    csIChm.xpt  Makefile.netbsd

刚才执行的安装命令:

/usr/bin/xulrunner --install-app ~/Downloads/jungleji-chmsee-e71e904 ~/tools

/home/iceweb/tools/chmsee下的文件

-rw-rw-r--. 1 iceweb iceweb   905 7月  23 15:29 application.ini
-rw-rw-r--. 1 iceweb iceweb   139 7月  23 15:29 AUTHORS
-rw-rw-r--. 1 iceweb iceweb   110 7月  23 15:29 ChangeLog
-rwxr-xr-x. 1 iceweb iceweb 94000 7月  23 15:29 chmsee
drwxr-xr-x. 5 iceweb iceweb  4096 7月  23 15:29 chrome
-rw-rw-r--. 1 iceweb iceweb   117 7月  23 15:29 chrome.manifest
drwxr-xr-x. 2 iceweb iceweb  4096 7月  23 15:29 components
-rw-rw-r--. 1 iceweb iceweb 18002 7月  23 15:29 COPYING
drwxr-xr-x. 3 iceweb iceweb  4096 7月  23 15:29 data
drwxr-xr-x. 3 iceweb iceweb  4096 7月  23 16:11 defaults
-rw-rw-r--. 1 iceweb iceweb  2875 7月  23 15:29 HACKING
-rw-rw-r--. 1 iceweb iceweb  4324 7月  23 15:29 NEWS
-rw-rw-r--. 1 iceweb iceweb  2257 7月  23 15:29 README
drwxr-xr-x. 2 iceweb iceweb  4096 7月  23 16:11 src
lrwxrwxrwx. 1 iceweb iceweb    18 7月  23 15:37 xulrunner -> /usr/bin/xulrunner

Original comment by webluoye on 23 Jul 2012 at 8:30

GoogleCodeExporter commented 8 years ago
xulrunner 应该链接到 /usr/lib/xulrunner 目录,而不是 xulrunner 
这个可执行程序

Original comment by jungl...@gmail.com on 23 Jul 2012 at 8:57

GoogleCodeExporter commented 8 years ago
$ whereis xulrunner
xulrunner: /bin/xulrunner /usr/bin/xulrunner
$ which xulrunner
/usr/bin/xulrunner
好像没有xulrunner的目录 就有执行文件

$ cd /usr/lib/xulrunner
bash: cd: /usr/lib/xulrunner: 没有那个文件或目录

Original comment by webluoye on 23 Jul 2012 at 9:09

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
ln -s /usr/lib64/firefox/xulrunner xulrunner
这样连接就可以了,谢谢!

Original comment by webluoye on 23 Jul 2012 at 11:41

GoogleCodeExporter commented 8 years ago
打开文件:You may need to rebuild the chmsee XPCOM component

界面是红色的chmsee 2.0 好像和ubunut 下的界面不一样/

Original comment by webluoye on 23 Jul 2012 at 11:54

GoogleCodeExporter commented 8 years ago
你有没有在 src 目录下把 Makefile.fedora 复制为 
Makefile,然后执行 make?
这会生成新的  libxpcomchm.so 到 components 目录。

红色界面是没有打开文件的空界面。

Original comment by jungl...@gmail.com on 23 Jul 2012 at 12:31

GoogleCodeExporter commented 8 years ago
有改为Makefile然后执行make

现在的目录下的文件
$ pwd
/home/iceweb/tools/chmsee/components
$ ls
components.manifest  fuelApplication.js        libxpcomchm.so
csprotocol.js        fuelApplication.manifest  xpcomchm.xpt

不是很理解这“the compiled XPCOM component and its xpt defines will be 
output to
chmsee/components directory.”  是说会自动在chmsee/components生成 
xpcomchm.xpt 这样的文件 然后什么也不用做?

Original comment by webluoye on 24 Jul 2012 at 1:09

GoogleCodeExporter commented 8 years ago
还想问下 yum install chmsee安装的就是这个软件么?

Original comment by webluoye on 24 Jul 2012 at 1:11

GoogleCodeExporter commented 8 years ago
执行 make 是为了编译 libxpcomchm.so 和 xpcomchm.xpt。
在 Makefile 里面,生成的这两个文件是直接输出到 components 
目录下面,chmsee 运行的时候需要从这个目录读取。

另外,你可以试试在 /home/iceweb/tools/chmsee 这个目录执行:

$ xulrunner-bin application.ini

再打开新的 chm 文件,看是否能正确读取内容。

yum 里面 chmsee 
现在版本是多少我也不清楚,这里有个链接,供你参考:

https://bugzilla.redhat.com/show_bug.cgi?id=833640

Original comment by jungl...@gmail.com on 24 Jul 2012 at 2:26

GoogleCodeExporter commented 8 years ago
谢谢你了,可能是系统BUG。
现在可以打开一部分CHM文件了,
一部分还是XP那个提示,一部分提示
A script on this page may be busy, or it may have stopped responding. You can 
stop the script now, or you can continue to see if the script will complete.

Script: chrome://chmsee/content/rdfUtils.js:140

我在搜索下!3Q!

Original comment by webluoye on 24 Jul 2012 at 3:02

GoogleCodeExporter commented 8 years ago
如果以前系统里面装过旧版本的 chmsee,先删除 ~/.chmsee 
缓存再重新打开试试。

Original comment by jungl...@gmail.com on 24 Jul 2012 at 4:03

GoogleCodeExporter commented 8 years ago
这次新装的fedora 17 64位的系统,刚开始是编译chmsee-1.3.1.1 
一直失败,然后下载的chmsee-1.99.12的

Original comment by webluoye on 24 Jul 2012 at 5:06

GoogleCodeExporter commented 8 years ago
Clear all pre-2.0 issues

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