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: Ravi Desai
Subject: Re: [libextractor] Problem compiling libextractor with shared '-lgobject-2.0'
Date: Mon, 25 Jul 2005 19:43:26 -0400
User-agent: Mozilla Thunderbird 1.0 (X11/20050108)

Thanks, you are right. The message is different. Sorry about that, I was
just looking for the -lgobject part. Here is the error message with the
'--disable-glib' flag.
---
gcc -shared  .libs/thumbnailextractor.o  -Wl,--rpath
-Wl,/home/ravi/builds/libextractor/libextractor-0.5.2/src/main/.libs
-Wl,--rpath -Wl,/usr/local/lib ../../../src/main/.libs/libextractor.so
/usr/lib/libgtk-x11-2.0.so /usr/lib/libgdk-x11-2.0.so
/usr/lib/libatk-1.0.so /usr/lib/libgdk_pixbuf-2.0.so -lm
/usr/lib/libpangoxft-1.0.so /usr/lib/libpangox-1.0.so
/usr/lib/libpango-1.0.so /usr/lib/libgobject-2.0.so
/usr/lib/libgmodule-2.0.so -ldl /usr/lib/libglib-2.0.so  -Wl,-Bstatic
-Wl,-lgobject-2.0 -Wl,-lglib-2.0 -Wl,-Bdynamic -Wl,-Bsymbolic
-Wl,-soname -Wl,libextractor_thumbnail.so -o .libs/libextractor_thumbnail.so
/usr/bin/ld: cannot find -lgobject-2.0
collect2: ld returned 1 exit status
make[4]: *** [libextractor_thumbnail.la] Error 1
make[4]: Leaving directory
`/home/ravi/builds/libextractor/libextractor-0.5.2/src/plugins/thumbnail'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory
`/home/ravi/builds/libextractor/libextractor-0.5.2/src/plugins/thumbnail'
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
address@hidden libextractor-0.5.2]$
---

Here is the new error message, the one in which I placed your
Makefile.am in the 'src/plugins' folder.

---
gcc -shared  .libs/thumbnailextractor.o  -Wl,--rpath
-Wl,/home/ravi/builds/libex
tractor/libextractor-0.5.2/src/main/.libs -Wl,--rpath -Wl,/usr/local/lib
../../.
./src/main/.libs/libextractor.so /usr/lib/libgtk-x11-2.0.so
/usr/lib/libgdk-x11-
2.0.so /usr/lib/libatk-1.0.so /usr/lib/libgdk_pixbuf-2.0.so -lm
/usr/lib/libpang
oxft-1.0.so /usr/lib/libpangox-1.0.so /usr/lib/libpango-1.0.so
/usr/lib/libgobje
ct-2.0.so /usr/lib/libgmodule-2.0.so -ldl /usr/lib/libglib-2.0.so
-Wl,-Bstatic
-Wl,-lgobject-2.0 -Wl,-lglib-2.0 -Wl,-Bdynamic -Wl,-Bsymbolic
-Wl,-soname -Wl,li
bextractor_thumbnail.so -o .libs/libextractor_thumbnail.so
/usr/bin/ld: cannot find -lgobject-2.0
collect2: ld returned 1 exit status
make[4]: *** [libextractor_thumbnail.la] Error 1
make[4]: Leaving directory
`/home/ravi/builds/libextractor/libextractor-0.5.2/sr
c/plugins/thumbnail'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory
`/home/ravi/builds/libextractor/libextractor-0.5.2/sr
c/plugins/thumbnail'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/home/ravi/builds/libextractor/libextractor-0.5.2/sr
c/plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/home/ravi/builds/libextractor/libextractor-0.5.2/sr
c'
make: *** [all-recursive] Error 1
address@hidden libextractor-0.5.2]$
---

Thanks,
ravster.


Christian Grothoff wrote:

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: signature.asc
Description: OpenPGP digital signature


reply via email to

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