fzxs8 / chmsee

Automatically exported from code.google.com/p/chmsee
GNU General Public License v2.0
0 stars 0 forks source link

Images don't show #27

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Open CHM file with images
2. Open page that has images

What is the expected output? What do you see instead?
Images should show. But a broken link image box is shown

What version of the product are you using? On what operating system?
Latest svn release on ArchLinux

Please provide any additional information below.
The image doesn't get extracted. Checked the bookshelf folder. The images
folder does not exist there.
Same CHM opens with images in GnoCHM

Original issue reported on code.google.com by abhinav....@gmail.com on 12 Apr 2009 at 6:38

GoogleCodeExporter commented 9 years ago
give me the sample chm file, thanks.

Original comment by lidaob...@gmail.com on 12 Apr 2009 at 6:41

GoogleCodeExporter commented 9 years ago
Hey I think I found the problem.

The image filename has a semicolon in between and xulrunner wants it changed to 
a %3B
in the URL.

I tried opening chmsee's generated url in firefox and I got a 'file not found' 
error.
Then I replaced the semicolon with %3B and it worked.

So this problem is in the chm and not in chmsee.

Original comment by abhinav....@gmail.com on 12 Apr 2009 at 7:32

GoogleCodeExporter commented 9 years ago
check this issue: http://code.google.com/p/chmsee/issues/detail?id=12

it has been fixed in chmsee 1.0.4

Original comment by lidaob...@gmail.com on 12 Apr 2009 at 7:36

GoogleCodeExporter commented 9 years ago
Strange. The latest git won't compile. Am I missing any dependencies ?

[  3%] Building CXX object src/CMakeFiles/chmseelib.dir/gecko_utils.cpp.o
In file included from /usr/include/xulrunner-1.9/unstable/nsrootidl.h:11,
                 from /usr/include/xulrunner-1.9/unstable/nsISupports.h:10,
                 from /usr/include/xulrunner-1.9/unstable/nsIWebBrowser.h:10,
                 from /usr/include/xulrunner-1.9/unstable/gtkmozembed_internal.h:41,
                 from /usr/include/xulrunner-1.9/unstable/gtkmozembed_glue.cpp:43,
                 from /home/abhinav/Desktop/chmsee/src/gecko_utils.cpp:46:
/usr/include/xulrunner-1.9/unstable/nscore.h:117:1: warning: "NS_HIDDEN" 
redefined
In file included from /home/abhinav/Desktop/chmsee/src/gecko_utils.h:44,
                 from /home/abhinav/Desktop/chmsee/src/gecko_utils.cpp:42:
/usr/include/xulrunner-1.9/unstable/gtkmozembed.h:57:1: warning: this is the 
location
of the previous definition
In file included from /usr/include/xulrunner-1.9/unstable/nsrootidl.h:11,
                 from /usr/include/xulrunner-1.9/unstable/nsISupports.h:10,
                 from /usr/include/xulrunner-1.9/unstable/nsIWebBrowser.h:10,
                 from /usr/include/xulrunner-1.9/unstable/gtkmozembed_internal.h:41,
                 from /usr/include/xulrunner-1.9/unstable/gtkmozembed_glue.cpp:43,
                 from /home/abhinav/Desktop/chmsee/src/gecko_utils.cpp:46:
/usr/include/xulrunner-1.9/unstable/nscore.h:206:1: warning: "NS_IMPORT_" 
redefined
In file included from /home/abhinav/Desktop/chmsee/src/gecko_utils.h:44,
                 from /home/abhinav/Desktop/chmsee/src/gecko_utils.cpp:42:
/usr/include/xulrunner-1.9/unstable/gtkmozembed.h:64:1: warning: this is the 
location
of the previous definition
In file included from /usr/include/xulrunner-1.9/unstable/nsrootidl.h:11,
                 from /usr/include/xulrunner-1.9/unstable/nsISupports.h:10,
                 from /usr/include/xulrunner-1.9/unstable/nsIWebBrowser.h:10,
                 from /usr/include/xulrunner-1.9/unstable/gtkmozembed_internal.h:41,
                 from /usr/include/xulrunner-1.9/unstable/gtkmozembed_glue.cpp:43,
                 from /home/abhinav/Desktop/chmsee/src/gecko_utils.cpp:46:
/usr/include/xulrunner-1.9/unstable/nscore.h:208:1: warning: "NS_EXPORT_" 
redefined
In file included from /home/abhinav/Desktop/chmsee/src/gecko_utils.h:44,
                 from /home/abhinav/Desktop/chmsee/src/gecko_utils.cpp:42:
/usr/include/xulrunner-1.9/unstable/gtkmozembed.h:63:1: warning: this is the 
location
of the previous definition
In file included from /home/abhinav/Desktop/chmsee/src/gecko_utils.cpp:71:
/usr/include/utils.h: In function ‘char* copystring(const char*)’:
/usr/include/utils.h:89: error: invalid conversion from ‘void*’ to 
‘char*’
/usr/include/utils.h: In function ‘char* catstring(char*, const char*)’:
/usr/include/utils.h:99: error: invalid conversion from ‘void*’ to 
‘char*’
/usr/include/utils.h:101: error: invalid conversion from ‘void*’ to 
‘char*’
/home/abhinav/Desktop/chmsee/src/gecko_utils.cpp: In function ‘nsresult
gecko_utils_init_prefs()’:
/home/abhinav/Desktop/chmsee/src/gecko_utils.cpp:186: error: 
‘get_resource_path’ was
not declared in this scope
make[2]: *** [src/CMakeFiles/chmseelib.dir/gecko_utils.cpp.o] Error 1
make[1]: *** [src/CMakeFiles/chmseelib.dir/all] Error 2
make: *** [all] Error 2

Original comment by abhinav....@gmail.com on 12 Apr 2009 at 8:04

GoogleCodeExporter commented 9 years ago
fixed, please retry.

http://github.com/lidaobing/chmsee/commit/850405f48ecf0d3a545743abff4d61252152d4
59

Original comment by lidaob...@gmail.com on 12 Apr 2009 at 8:15

GoogleCodeExporter commented 9 years ago
Thanks. Compiled and working.

Original comment by abhinav....@gmail.com on 12 Apr 2009 at 8:24

GoogleCodeExporter commented 9 years ago

Original comment by lidaob...@gmail.com on 13 Apr 2009 at 7:41