Closed GoogleCodeExporter closed 8 years ago
你试试 1.1.0-beta,我测试打开 apue2 可以看到图片。
Original comment by jungl...@gmail.com
on 26 Mar 2010 at 4:08
谢谢jungleji,按照你的建议,我下载了1.1.0-beta,在我的fedora12
上测试时,似乎链接过程
中出了问题:
[yunkai@yahoo ~/Download/build]$ cmake ../chmsee-1.1.0-beta
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/g++
-- Check for working CXX compiler: /usr/bin/g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- checking for modules 'gthread-2.0;glib-2.0;libxml-2.0;gtk+-2.0>=2.16;nspr'
-- found gthread-2.0, version 2.22.5
-- found glib-2.0, version 2.22.5
-- found libxml-2.0, version 2.7.6
-- found gtk+-2.0, version 2.18.7
-- found nspr, version 4.8.4
-- checking for one of the modules
'mozilla-gtkmozembed-embedding>=1.9;xulrunner-gtkmozembed>=1.9'
-- found mozilla-gtkmozembed-embedding, version 1.9.1
-- Configuring done
-- Generating done
-- Build files have been written to: /home/yunkai/Download/build
[yunkai@yahoo ~/Download/build]$ ls
CMakeCache.txt CMakeFiles cmake_install.cmake CPackConfig.cmake
CPackSourceConfig.cmake data Makefile po src
[yunkai@yahoo ~/Download/build]$ make
Scanning dependencies of target chmseelib
[ 2%] Building C object src/CMakeFiles/chmseelib.dir/chmsee.c.o
[ 4%] Building C object src/CMakeFiles/chmseelib.dir/startup.c.o
[ 6%] Building C object src/CMakeFiles/chmseelib.dir/setup.c.o
[ 9%] Building C object src/CMakeFiles/chmseelib.dir/utils.c.o
[ 11%] Building C object src/CMakeFiles/chmseelib.dir/components/book.c.o
[ 13%] Building C object src/CMakeFiles/chmseelib.dir/components/toc.c.o
[ 16%] Building C object src/CMakeFiles/chmseelib.dir/components/index.c.o
[ 18%] Building C object src/CMakeFiles/chmseelib.dir/components/bookmarks.c.o
[ 20%] Building C object src/CMakeFiles/chmseelib.dir/components/treeview.c.o
[ 23%] Building C object src/CMakeFiles/chmseelib.dir/components/html-gecko.c.o
[ 25%] Building CXX object
src/CMakeFiles/chmseelib.dir/components/gecko-utils.cpp.o
In file included from /usr/include/xulrunner-sdk-1.9.1/unstable/nsrootidl.h:11,
from /usr/include/xulrunner-sdk-1.9.1/unstable/nsISupports.h:10,
from /usr/include/xulrunner-sdk-1.9.1/unstable/nsIWebBrowser.h:10,
from
/usr/include/xulrunner-sdk-1.9.1/unstable/gtkmozembed_internal.h:41,
from /usr/include/xulrunner-sdk-1.9.1/unstable/gtkmozembed_glue.cpp:43,
from
/home/yunkai/Download/chmsee-1.1.0-beta/src/components/gecko-utils.cpp:46:
/usr/include/xulrunner-sdk-1.9.1/unstable/nscore.h:119:1: warning: "NS_HIDDEN"
redefined
In file included from
/home/yunkai/Download/chmsee-1.1.0-beta/src/components/gecko-utils.cpp:45:
/usr/include/xulrunner-sdk-1.9.1/unstable/gtkmozembed.h:57:1: warning: this is
the
location of the previous definition
In file included from /usr/include/xulrunner-sdk-1.9.1/unstable/nsrootidl.h:11,
from /usr/include/xulrunner-sdk-1.9.1/unstable/nsISupports.h:10,
from /usr/include/xulrunner-sdk-1.9.1/unstable/nsIWebBrowser.h:10,
from
/usr/include/xulrunner-sdk-1.9.1/unstable/gtkmozembed_internal.h:41,
from /usr/include/xulrunner-sdk-1.9.1/unstable/gtkmozembed_glue.cpp:43,
from
/home/yunkai/Download/chmsee-1.1.0-beta/src/components/gecko-utils.cpp:46:
/usr/include/xulrunner-sdk-1.9.1/unstable/nscore.h:208:1: warning: "NS_IMPORT_"
redefined
In file included from
/home/yunkai/Download/chmsee-1.1.0-beta/src/components/gecko-utils.cpp:45:
/usr/include/xulrunner-sdk-1.9.1/unstable/gtkmozembed.h:64:1: warning: this is
the
location of the previous definition
In file included from /usr/include/xulrunner-sdk-1.9.1/unstable/nsrootidl.h:11,
from /usr/include/xulrunner-sdk-1.9.1/unstable/nsISupports.h:10,
from /usr/include/xulrunner-sdk-1.9.1/unstable/nsIWebBrowser.h:10,
from
/usr/include/xulrunner-sdk-1.9.1/unstable/gtkmozembed_internal.h:41,
from /usr/include/xulrunner-sdk-1.9.1/unstable/gtkmozembed_glue.cpp:43,
from
/home/yunkai/Download/chmsee-1.1.0-beta/src/components/gecko-utils.cpp:46:
/usr/include/xulrunner-sdk-1.9.1/unstable/nscore.h:210:1: warning: "NS_EXPORT_"
redefined
In file included from
/home/yunkai/Download/chmsee-1.1.0-beta/src/components/gecko-utils.cpp:45:
/usr/include/xulrunner-sdk-1.9.1/unstable/gtkmozembed.h:63:1: warning: this is
the
location of the previous definition
/home/yunkai/Download/chmsee-1.1.0-beta/src/components/gecko-utils.cpp:116:
warning:
‘gboolean gecko_prefs_set_bool(const gchar*, gboolean)’ defined but not used
[ 27%] Building C object src/CMakeFiles/chmseelib.dir/models/bookmarksfile.c.o
[ 30%] Building C object src/CMakeFiles/chmseelib.dir/models/chmfile.c.o
/home/yunkai/Download/chmsee-1.1.0-beta/src/models/chmfile.c: In function
‘_extract_callback’:
/home/yunkai/Download/chmsee-1.1.0-beta/src/models/chmfile.c:241: warning:
unused
variable ‘file_ext’
[ 32%] Building C object src/CMakeFiles/chmseelib.dir/models/parser.c.o
[ 34%] Building C object src/CMakeFiles/chmseelib.dir/models/link.c.o
Linking CXX static library libchmseelib.a
[ 34%] Built target chmseelib
Scanning dependencies of target chmsee
[ 37%] Building C object src/CMakeFiles/chmsee.dir/main.c.o
Linking C executable chmsee
libchmseelib.a(gecko-utils.cpp.o):(.rodata._ZTV15nsCOMPtr_helper[vtable for
nsCOMPtr_helper]+0x8): undefined reference to `__cxa_pure_virtual'
libchmseelib.a(gecko-utils.cpp.o):(.rodata._ZTI15nsCOMPtr_helper[typeinfo for
nsCOMPtr_helper]+0x0): undefined reference to `vtable for
__cxxabiv1::__class_type_info'
libchmseelib.a(gecko-utils.cpp.o):(.eh_frame+0x12): undefined reference to
`__gxx_personality_v0'
libchmseelib.a(gecko-utils.cpp.o):(.eh_frame+0x93): undefined reference to
`__gxx_personality_v0'
/usr/lib/xulrunner-sdk-1.9.1/lib/libxpcomglue.a(nsCOMPtr.o):(.data.DW.ref.__gxx_
personality_v0[DW.ref.__gxx_personality_v0]+0x0):
undefined reference to `__gxx_personality_v0'
/usr/lib/xulrunner-sdk-1.9.1/lib/libxpcomglue.a(nsGREGlue.o): In function
`GRE_GetGREPathWithProperties':
(.text+0x3d6): undefined reference to `operator new[](unsigned int)'
/usr/lib/xulrunner-sdk-1.9.1/lib/libxpcomglue.a(nsGREGlue.o): In function
`nsINIParser::~nsINIParser()':
(.text._ZN11nsINIParserD2Ev[_ZN11nsINIParserD5Ev]+0x1f): undefined reference to
`operator delete[](void*)'
/usr/lib/xulrunner-sdk-1.9.1/lib/libxpcomglue.a(nsGlueLinkingDlopen.o): In
function
`XPCOMGlueUnload()':
(.text+0xef): undefined reference to `operator delete(void*)'
/usr/lib/xulrunner-sdk-1.9.1/lib/libxpcomglue.a(nsGlueLinkingDlopen.o): In
function
`XPCOMGlueLoad(char const*)':
(.text+0x20a): undefined reference to `operator new(unsigned int)'
/usr/lib/xulrunner-sdk-1.9.1/lib/libxpcomglue.a(nsGlueLinkingDlopen.o): In
function
`ReadDependentCB(char const*)':
(.text+0x294): undefined reference to `operator new(unsigned int)'
/usr/lib/xulrunner-sdk-1.9.1/lib/libxpcomglue.a(nsINIParser.o): In function
`nsINIParser::InitFromFILE(_IO_FILE*)':
(.text+0x232): undefined reference to `operator new[](unsigned int)'
/usr/lib/xulrunner-sdk-1.9.1/lib/libxpcomglue.a(nsINIParser.o): In function
`nsINIParser::InitFromFILE(_IO_FILE*)':
(.text+0x248): undefined reference to `operator delete[](void*)'
/usr/lib/xulrunner-sdk-1.9.1/lib/libxpcomglue.a(nsINIParser.o): In function
`nsINIParser::InitFromFILE(_IO_FILE*)':
(.text+0x382): undefined reference to `operator new(unsigned int)'
/usr/lib/xulrunner-sdk-1.9.1/lib/libxpcomglue.a(nsINIParser.o): In function
`nsAutoPtr<nsINIParser::INIValue>::~nsAutoPtr()':
(.text._ZN9nsAutoPtrIN11nsINIParser8INIValueEED2Ev[_ZN9nsAutoPtrIN11nsINIParser8
INIValueEED5Ev]+0x29):
undefined reference to `operator delete(void*)'
/usr/lib/xulrunner-sdk-1.9.1/lib/libxpcomglue.a(nsINIParser.o): In function
`nsAutoPtr<nsINIParser::INIValue>::operator=(nsINIParser::INIValue*)':
(.text._ZN9nsAutoPtrIN11nsINIParser8INIValueEEaSEPS1_[nsAutoPtr<nsINIParser::INI
Value>::operator=(nsINIParser::INIValue*)]+0x33):
undefined reference to `operator delete(void*)'
collect2: ld returned 1 exit status
make[2]: *** [src/chmsee] Error 1
make[1]: *** [src/CMakeFiles/chmsee.dir/all] Error 2
make: *** [all] Error 2
Original comment by chinainv...@gmail.com
on 27 Mar 2010 at 8:27
Original issue reported on code.google.com by
chinainv...@gmail.com
on 25 Mar 2010 at 7:47Attachments: