[Mono-list] libgdiplus build question

Alexander Shulgin alexander.shulgin at yessoftware.com
Thu Dec 16 12:09:35 EST 2010


On 16.12.2010 18:53, Dumple wrote:
>
> Aha!  That gets me a couple steps closer.
>
> Unfortunately, my libgdiplus build errors out:
> /usr/bin/ld: .libs/image.o: relocation R_X86_64_PC32 against
> `gdip_getcodecinfo_gif' can not be used when making a shared object;
> recompile with -fPIC
> /usr/bin/ld: final link failed: Bad value
>
> When I run autogen.sh, it reported that the GIF codec is unsupported, and it
> gave a link to a nonexistent SourceForge page
> (http://sourceforge.net/projects/libgif).  Presumably that's the related to
> the error message involving "gdip_getcodecinfo_gif"...
>
> Is there a short path to a working libgdiplus build?  (I don't need to read
> or write gif files, I'll be happy so long as libgdiplus complies).  I tried
> a couple of things, with no joy:
>
> - I'm not sure how to "recompile with -fPIC" (I tried adding that as an
> extra argument to autoconf or to make).
> - I tracked down a giflib project on sourceforge, and was able to compile
> it, but that didn't seem to change things; running autogen.sh for libgdiplus
> still reported that the GIF codec was unsupported.

There's some of the options you have:

1. Consult ./configure --help to find out how to turn off gif support 
completely.

2. Figure out which package provides libgif development files on your 
platform and install it.  Re-configure and try to build.

3. Install your compiled libgif to known location, e.g. /usr/local and 
re-configure.  Or pass additional options to ./configure to help it find 
your libgif installation.

Luck!
--
Alex


More information about the Mono-list mailing list