Closed GoogleCodeExporter closed 8 years ago
sorry,有一些错字,
What steps will reproduce the problem?
1.在编译过程中出错
2.依赖应该都没有问题,因为已经到了make all这一步了。
To jungleji:
我之前提交的BUG为:chmsee不能查看chm中的图片
http://code.google.com/p/chmsee/issues/detail?id=68
你建议我使用1.1.0-beta版,所以在编译过程中,出现这个问题�
��
Original comment by chinainv...@gmail.com
on 27 Mar 2010 at 8:32
在 make 命令后面加上 VERBOSE=1, 即:
$ make VERBOSE=1
再把错误信息发上来看看。
Original comment by jungl...@gmail.com
on 27 Mar 2010 at 5:11
有一个地方可能是造成编译出错的原因:修改
chmsee-1.1.0-beta/CMakeLists.txt, 将
# Set RPATH for installing
set(CMAKE_SKIP_BUILD_RPATH FALSE)
set(CMAKE_BUILD_WITH_INSTALL_RPATH FALSE)
set(CMAKE_INSTALL_RPATH ${CMAKE_SYSTEM_LIBRARY_PATH})
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
这些行都注释掉,然后重新进行 cmake 和 make 过程。
Original comment by jungl...@gmail.com
on 27 Mar 2010 at 5:23
在 Gentoo下編譯也有相同的情形,以下是編譯環境:
glib-2.22.4
libxml2-2.7.3-r2
libglade-2.6.4
gtk+-2.18.6
chmlib-0.40
libgcrypt-1.4.5
xulrunner-1.9.2.2-r1
gettext-0.17-r1
intltool-0.41.0
依照Comment 3
的方式修改,再編譯一次,也同樣無法編譯成功。
Original comment by chang001...@gmail.com
on 28 Mar 2010 at 2:58
在 Gentoo下編譯也有相同的情形,以下是編譯環境:
glib-2.22.4
libxml2-2.7.3-r2
libglade-2.6.4
gtk+-2.18.6
chmlib-0.40
libgcrypt-1.4.5
xulrunner-1.9.2.2-r1
gettext-0.17-r1
intltool-0.41.0
依照Comment 3
的方式修改,再編譯一次,也同樣無法編譯成功。
Original comment by chang001...@gmail.com
on 28 Mar 2010 at 3:10
Attachments:
多谢你提供的 errors,我看到了问题所在。
在出错的那一步,你系统上是:
Linking C executable chmsee
...
/usr/bin/gcc -O3 -DNDEBUG -fPIC CMakeFiles/chmsee.dir/main.c.o -o chmsee ...
而我这里是:
Linking CXX executable chmsee
...
/usr/bin/c++ -O3 -DNDEBUG CMakeFiles/chmsee.dir/main.c.o -o chmsee ...
临时解决方法将 main.c 改名为 main.cpp,并修改 src/CMakeLists.txt
里面对应的文件名。
Original comment by jungl...@gmail.com
on 28 Mar 2010 at 4:29
TO jungleji:
"临时解决方法将 main.c 改名为 main.cpp,并修改 src/CMakeLists.txt
里面对应的文件名。"
这个方法可行。
但是,这个1.1.0-beta版本同样看不到图片,是不是我们的APUE2��
�一样?
我把我的APUE2放在附件中,你打开试试看,同样附上我的这边
的截图:
Original comment by chinainv...@gmail.com
on 28 Mar 2010 at 5:11
Attachments:
点击截图中的“View Full size image”,报如下错误:
The file
/home/yunkai/.chmsee/bookshelf/ea26c7c8e74a6951a7a79292956ab0f5/0201433079/image
s/0201433079/graphics/xxviifig01_alt.gif;423615
cannot be found. Please check the location and try again.
应该是对图片的地址,在读取时,出了问题。多出了“;423615�
��这部分。
Original comment by chinainv...@gmail.com
on 28 Mar 2010 at 5:17
我打开你上传的文件也可以显示图片,见附件。
你再测一下:
在该页点右键,复制连接地址,然后粘贴到 firefox
地址栏,看它能不能显示图片。
另外,标题栏为 (null),也很奇怪。
你在命令行上打开 chmsee
-vvv,然后将输出信息发上来,我看看哪里出了问题。
Original comment by jungl...@gmail.com
on 28 Mar 2010 at 6:30
Attachments:
[yunkai@yahoo ~/Download/build]$ chmsee -vvv
** Message: Main >>> load config
** (chmsee:3820): DEBUG: Main >>> chmsee config file path =
/home/yunkai/.chmsee/config
** (chmsee:3820): DEBUG: Main >>> chmsee load config file return = 1
** Message: CS_HTML_GECKO >>> init gecko system
** (chmsee:3820): DEBUG: GECKO_UTILS >>> initilize finished.
** (chmsee:3820): DEBUG: CS_BOOK >>> create
** (chmsee:3820): DEBUG: Chmsee >>> populate window finished.
** (chmsee:3820): DEBUG: GECKO_UTILS >>> set default lang
** (chmsee:3820): DEBUG: CS_BOOK >>> set hpaned position = 200
** Message: Chmsee >>> created
** (chmsee:3820): DEBUG: Chmsee >>> on_window_state_event with
event->changed_mask =
1 and event->new_window_state = 0
Original comment by chinainv...@gmail.com
on 28 Mar 2010 at 6:37
TO jungleji:
1、我这边图片显示不了的问题,我直接使用fedora12下的firefox(
3.5.8)输入连接地址,也无法
显示。但在google chrome(5.0.342.7 beta)下可以显示。
难道是firefox的lib的问题?
你的系统情况是怎样的?
2、1.1.0-beda在打开APUE2时,页内的连接也无法跳转。
3、标题为null这个问题,1.0.7版在我这边也存在同样的问题。
Original comment by chinainv...@gmail.com
on 28 Mar 2010 at 6:42
title为null的 -vvv info,见附件
Original comment by chinainv...@gmail.com
on 28 Mar 2010 at 6:46
Attachments:
我上面抓图用的系统是 debian 32, xulrunner 1.9.1.8, firefox 3.5.8。
测试了其他几个系统包括 archlinux, NetBSD
中也可以看到图片。因为 ';' 是 uri 标准里面
的保留字,估计默认的 xulrunner
是不支持的,而这几个系统刚好自己打了补丁。
标题为 null 的问题, 你删除
.chmsee/bookshelf/ea26c7c8e74a6951a7a79292956ab0f5 这个目
录,再打开 apue 看看。
问题 2,是所有的链接都不行吗,包括里面的 PREV NEX
那种连接?
Original comment by jungl...@gmail.com
on 28 Mar 2010 at 8:16
问题2, 刚测试了PREV NEXT也不行。
Original comment by chinainv...@gmail.com
on 28 Mar 2010 at 9:52
惊喜!!!
刚才我把.chmsee下的所有内容都清空后,图片也能看到了。
但是“问题2”仍然存在,连接打不开(包括PREV NEXT)。
快接近完美了!
Original comment by chinainv...@gmail.com
on 28 Mar 2010 at 9:56
当然点击“NEXT”时(使用chmsee -vvv),命令行的信息如下:
** (chmsee:6126): DEBUG: CS_HTML_GECKO >>> grab focus callback
** (chmsee:6126): DEBUG: CS_HTML_GECKO >>> send open-uri signal, uri =
file:///home/yunkai/.chmsee/bookshelf/ea26c7c8e74a6951a7a79292956ab0f5/020143307
9/toc.html
(chmsee:6126): GLib-GObject-CRITICAL **: g_value_get_pointer: assertion
`G_VALUE_HOLDS_POINTER (value)' failed
** (chmsee:6126): DEBUG: CS_BOOK >>> enter html_open_uri_cb with uri = (null)
(chmsee:6126): GLib-CRITICAL **: g_uri_parse_scheme: assertion `uri != NULL'
failed
Original comment by chinainv...@gmail.com
on 28 Mar 2010 at 10:01
TO jungleji:
"临时解决方法将 main.c 改名为 main.cpp,并修改 src/CMakeLists.txt
里面对应的文件名。"
在Gentoo可以編譯成功,而且執行正常,感謝!
BTW,Makefile 中沒有 uninstall option,那該如何做移除的動作呢?
Original comment by chang001...@gmail.com
on 28 Mar 2010 at 10:47
To chang0010934:
也感谢你帮忙测试!
cmake 里面没有提供 uninstall:
http://www.cmake.org/Wiki/CMake_FAQ#Can_I_do_.22make_uninstall.22_with_CMake.3F
要删除,只有按上面说的,参考 install_manifest.txt 手动操作。
Original comment by jungl...@gmail.com
on 28 Mar 2010 at 2:52
Comment 16 问题:
按下面 diff 改一行代码,看是否有效。
diff --git a/src/components/html-gecko.c b/src/components/html-gecko.c
index 4706203..c137a7b 100644
--- a/src/components/html-gecko.c
+++ b/src/components/html-gecko.c
@@ -102,7 +102,7 @@ cs_html_gecko_class_init(CsHtmlGeckoClass *klass)
NULL, NULL,
gtk_marshal_BOOLEAN__POINTER,
G_TYPE_BOOLEAN,
- 1, G_TYPE_STRING);
+ 1, G_TYPE_POINTER);
signals[CONTEXT_NORMAL] =
Original comment by jungl...@gmail.com
on 28 Mar 2010 at 3:44
TO Comment 19:
链接的问题解决了!
非常感谢jungleji:D。
Original comment by chinainv...@gmail.com
on 29 Mar 2010 at 2:38
To chinainvent.zyk:
也要好好谢谢你!
Original comment by jungl...@gmail.com
on 29 Mar 2010 at 6:39
Original issue reported on code.google.com by
chinainv...@gmail.com
on 27 Mar 2010 at 8:29