libextractor
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [libextractor] OLE2 problem while using libextractor library


From: sunilp
Subject: Re: [libextractor] OLE2 problem while using libextractor library
Date: Tue, 7 Nov 2006 21:39:40 -0800 (PST)

Hi Christian,

 Well thanks first of all for your prompt reply.
 I applied the patch & compiled libextractor again. I checked out the
config.h file. Now it does set HAVE_GSF.

 EARLIER i had to use "extract -l libextractor_ole2 sample.doc" to get
metadata out of office files, But now it works
 if I just give
                                     "extract sample.doc"

But as earlier said when I use the libextractor library it does'nt give any
output, though it works for all other file types.
  
my sample code just contains following lines:
                     EXTRACTOR_ExtractorList *extractors =
EXTRACTOR_loadDefaultLibraries();
                     EXTRACTOR_KeywordList *keywords =
EXTRACTOR_getKeywords(extractors, argv[1]);
                     EXTRACTOR_printKeywords(stdout,keywords);


Christian Grothoff wrote:
> 
> I suspect that somehow the "HAVE_GSF" directive is not set when
> extractor.c 
> was compiled (check the config.h file generated by configure).  Looking at 
> the configure scripts (m4/abi-gsf.m4), I think that there is a bug which 
> means that HAVE_GSF would NOT be set if something else Gnome'ish was
> detected 
> on your system.  
> 
> Patch:
> 
> Index: abi-gsf.m4
> ===================================================================
> --- abi-gsf.m4  (revision 3659)
> +++ abi-gsf.m4  (working copy)
> @@ -68,6 +68,7 @@
> 
>  if test "x$have_gsf_gnome" = "xtrue" ; then
>         abi_gsf_message="yes, with GNOME support"
> +        AC_DEFINE(HAVE_GSF, 1, [Have gsf])
>  else if test "x$have_gsf" = "xtrue" ; then
>         abi_gsf_message="yes, without GNOME support"
>          AC_DEFINE(HAVE_GSF, 1, [Have gsf])
> 
> I've fixed the problem in SVN.  As a work-around, you can also load the
> ole2 
> plugin by hand (as you do with extract's -l option below). You can do this
> in 
> your own C code using EXTRACTOR_loadConfigLibraries.
> 
> Best regards,
> 
> Christian
> 
> On Tuesday 07 November 2006 06:28, sunilp wrote:
>> extract works fine for ole2 when i use
>>                     "extract -l libextractor_ole2 sample.doc"
>>
>> But when i use the sample c code on gnunet.org, it gives no output for
>> the
>> same doc file, though it prints the metadata for other file extensions.
>>
>> I compile my file extract_meta.c as,
>>                 gcc  extract_meta.c -o extract_meta -lextractor
>> It complies fine & works for all other file formats except windows office
>> file using ole2
>>
>> Can someone help me out to trace the problem.
>> Thanks
> 
> 
> _______________________________________________
> libextractor mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/libextractor
> 
> 

-- 
View this message in context: 
http://www.nabble.com/OLE2-problem-while-using-libextractor-library-tf2588728.html#a7233070
Sent from the Gnu - Libextractor - General mailing list archive at Nabble.com.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]