libextractor
[Top][All Lists]
Advanced

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

Re: [libextractor] Problem compiling libextractor with shared '-lgobject


From: Christian Grothoff
Subject: Re: [libextractor] Problem compiling libextractor with shared '-lgobject-2.0'
Date: Sun, 24 Jul 2005 22:06:19 -0500
User-agent: KMail/1.7.2

On Wednesday 20 July 2005 09:13 pm, Ravi Desai wrote:
> Hi
>     Thanks for the reply. On your suggestion, I tried the
> '--disable-glib' flag. I also tried the '--enable-static' flag, but
> neither of the two worked.
>     The error message remains the same though.

Are you sure?  I just noticed that --disable-glib does not also disable gtk 
(which depends on glib), and then libextractor would likely fail building the 
thumbnail plugin and fail there.  So the error message should at least change  
a bit.  If that is the case, you may want to copy the attached Makefile.am 
over src/plugins/Makefile.am.  This will make sure that gtk is disabled 
whenever glib is not found, that should then fix the problem. Let me know if 
this works...

Thanks!

Christian

> Thanks,
> ravster
>
> Christian Grothoff wrote:
> >I think you have two choices.
> >
> >Either compile relocatable (for non-Intel archs) static versions of glib
> > and gtk yourself, or use "--disable-glib" which should disable
> > compilation of the plugins that depend on the static glib version and
> > thus solve the problem at the expense of a few features.
> >
> >Christian
> >
> >Zitat von Ravi Desai <address@hidden>:
> >>Hello,
> >>    I have tried to compile libextractor, but I receive the error message
> >>--------------
> >>gcc -shared  .libs/libextractor_ole2_la-ole2extractor.o
> >>.libs/libextractor_ole2_la-gsf-utils.o
> >>.libs/libextractor_ole2_la-gsf-input.o
> >>.libs/libextractor_ole2_la-gsf-input-memory.o
> >>.libs/libextractor_ole2_la-gsf-infile.o
> >>.libs/libextractor_ole2_la-gsf-infile-msole.o
> >>.libs/libextractor_ole2_la-gsf-shared-memory.o  -Wl,--rpath
> >>-Wl,/home/ravi/builds/libextractor/libextractor-0.5.2/src/main/.libs
> >>-Wl,--rpath -Wl,/usr/local/lib /usr/lib/libglib-2.0.so
> >>../../../src/main/.libs/libextractor.so  -Wl,-Bstatic -Wl,-lgobject-2.0
> >>-Wl,-lglib-2.0 -Wl,-Bdynamic -Wl,-Bsymbolic -Wl,-soname
> >>-Wl,libextractor_ole2.so -o .libs/libextractor_ole2.so
> >>/usr/bin/ld: cannot find -lgobject-2.0
> >>collect2: ld returned 1 exit status
> >>make[3]: *** [libextractor_ole2.la] Error 1
> >>make[3]: Leaving directory
> >>`/home/ravi/builds/libextractor/libextractor-0.5.2/src/plugins/ole2'
> >>make[2]: *** [all-recursive] Error 1
> >>make[2]: Leaving directory
> >>`/home/ravi/builds/libextractor/libextractor-0.5.2/src/plugins'
> >>make[1]: *** [all-recursive] Error 1
> >>make[1]: Leaving directory
> >>`/home/ravi/builds/libextractor/libextractor-0.5.2/src'
> >>make: *** [all-recursive] Error 1
> >>----------------
> >>
> >>When I sent this error message to my distribution's mailing list, I was
> >>told that libextractor needs a static -lgobject-2.0 and glib2 does not
> >>provide a static version. This was in April. I have tried to compile it
> >>now, but I still have the same problem.
> >>
> >>http://www.archlinux.org/pipermail/arch/2005-April/004256.html
> >>
> >>How do I make it possible to install libextractor on my computer? I'm
> >>currently using glib2-2.6.5
> >>
> >>Thank you,
> >>ravster.

Attachment: Makefile.am
Description: Text Data


reply via email to

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