From: Andy S. <laz...@gm...> - 2009-05-10 14:15:07
|
Axel Simon <Axe...@en...> writes: > On May 10, 2009, at 11:50, Andy Stewart wrote: > >> Hi, >> >> Axel Simon <Axe...@en...> writes: >> >>> On May 10, 2009, at 10:56, Andy Stewart wrote: >>> >>>> Hi all, >>>> >>>> Today, i test demo/mozembed. >>>> >>>> I got error after `make`: >>>> >>>> ------------------------------> error start <------------------------------ >>>> ghc --make TestEmbedMoz.hs -o testembedmoz >>>> Linking testembedmoz ... >>>> /usr/bin/ld: cannot find -lxpcomglue_s >>>> ------------------------------> error end <------------------------------ >>>> >>>> I missing some library? >>>> >>> >>> I think the binding mozembed has seen much attention, that is, even in the releases we have not >>> actually checked that every binding works with the latest library. The mozembed is enabled if >>> pkg-config knows about one of the following libraries: mozilla- >>> gtkmozembed seamonkey- >>> gtkmozembed firefox-gtmozembed xulrunner-gtkmozembed. Check which one is installed, check that >>> the >>> above library is actually in the path that pkg-config claims it should be in. If all is >>> installed >>> correctly, you should file a bug report stating which library you're using, what the output of >>> pkg-config is and what build error you get (i.e. the above). >> I use "pkg-config --list-all" check, i have installed mozilla- >> gtkmozembed. >> >> Below is output of command "pkg-config mozilla-gtkmozembed --libs" >> >> -L/usr/lib/xulrunner-devel-1.9.0.10/lib -lxpcomglue_s -lxul -lxpcom -lplds4 -lplc4 -lnspr4 >> -lpthread -ldl >> >> Below is output of command "ls /usr/lib/xulrunner-devel-1.9.0.10/lib" >> >> libembed_base_s.a libmozjs.so libunicharutil_external_s.a libxpcomglue_s.a >> libxul.so >> libembed_base_standalone.a libmozreg_s.a libxpcomglue.a libxpcom.so >> >> > > This is strange. Does ghc-pkg describe mozembed refer to the same set of libraries and the same > directory? I have use command "ghc-pkg check" for check, and i think something wrong with GHC. Below is output of command "ghc-pkg check": ------------------------------> output start <------------------------------ There are problems in package rts-1.0: include-dirs: PAPI_INCLUDE_DIR doesn't exist or isn't a directory There are problems in package mozembed-0.10.0: library-dirs: /usr/lib/xulrunner-devel-1.9.0.9/lib doesn't exist or isn't a directory include-dirs: /usr/include/xulrunner-1.9.0.9/unstable doesn't exist or isn't a directory The following packages are broken, either because they have a problem listed above, or because they depend on a broken package. rts-1.0 mozembed-0.10.0 ghc-paths-0.1.0.5 haddock-2.4.2 regex-base-0.93.1 regex-tdfa-1.1.1 safe-0.2 time-1.1.2.4 uniplate-1.2.0.3 X11-1.4.5 utf8-string-0.3.4 X11-xft-0.3 xmonad-0.8.1 xmonad-contrib-0.8.1 Diff-0.1.2 QuickCheck-2.1.0.1 binary-0.5.0.1 derive-0.1.4 extensible-exceptions-0.1.1.0 fingertree-0.0 pureMD5-0.2.4 regex-tdfa-1.0.0 rosezipper-0.1 split-0.1.1 terminfo-0.3.0.2 transformers-0.1.4.0 data-accessor-0.2.0.2 monads-fd-0.0.0.1 data-accessor-monads-fd-0.2 pointedlist-0.3.1 unix-compat-0.1.2.1 utility-ht-0.0.4 data-accessor-template-0.2.1.1 vty-3.1.8.4 yi-0.6.0 TypeCompose-0.6.4 lazysmallcheck-0.3 Stream-0.3.1 arrows-0.4.1.1 grapefruit-frp-0.0.0.0 type-level-0.2.2 type-equality-check-0.0.0.0 grapefruit-records-0.0.0.0 grapefruit-ui-0.0.0.0 grapefruit-examples-0.0.0.0 grapefruit-ui-gtk-0.0.0.0 readline-1.0.1.0 X11-extras-0.4 OpenGL-2.2.1.1 GLFW-0.3 elerea-0.3.0 pcre-light-0.3.1 fgl-5.4.2.2 haddock-2.4.2 ghc-prim-0.1.0.0 integer-0.1.0.1 base-4.1.0.0 syb-0.1.0.1 base-3.0.3.1 array-0.2.0.0 packedstring-0.1.0.1 containers-0.2.0.1 bytestring-0.9.1.4 old-locale-1.0.0.1 old-time-1.0.0.2 filepath-1.1.0.2 unix-2.3.2.0 directory-1.0.0.3 process-1.0.1.1 pretty-1.0.1.0 hpc-0.5.0.3 template-haskell-2.3.0.1 editline-0.2.1.0 Cabal-1.6.0.3 random-1.0.0.1 haskell98-1.0.1.0 regex-base-0.72.0.2 regex-posix-0.72.0.3 regex-compat-0.71.0.1 parsec-2.1.0.1 haskell-src-1.0.1.3 html-1.0.1.2 network-2.2.1 QuickCheck-1.2.0.0 HUnit-1.2.0.3 mtl-1.1.0.2 stm-2.1.1.2 xhtml-3000.2.0.1 parallel-1.1.0.1 dph-base-0.3 dph-prim-interface-0.3 dph-prim-seq-0.3 dph-prim-par-0.3 dph-seq-0.3 dph-par-0.3 ghc-6.10.2 HTTP-4000.0.6 zlib-0.5.0.0 glib-0.10.0 cairo-0.10.0 svgcairo-0.10.0 gtk-0.10.0 soegtk-0.10.0 gio-0.10.0 glade-0.10.0 gconf-0.10.0 gtksourceview2-0.10.0 gtkglext-0.10.0 gnomevfs-0.10.0 gstreamer-0.10.0 ------------------------------> output end <------------------------------ And i have't below directory: library-dirs: /usr/lib/xulrunner-devel-1.9.0.9/lib doesn't exist or isn't a directory include-dirs: /usr/include/xulrunner-1.9.0.9/unstable doesn't exist or isn't a directory I just have /usr/lib/xulrunner-devel-1.9.0.10/lib /usr/include/xulrunner-1.9.0.10/unstable So how to fix above problem? I install GHC-6.10.2 and gtk2hs-0.10.0 in Ubuntu 8.10 Thanks! -- Andy |