Sign In
New User? Sign Up
exiv2
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
You can search the group for older messages.

Messages

  Messages Help
Advanced
Build dll of Exiv2 0.18 in MinGW   Message List  
Reply | Forward Message #1491 of 1513 |
Re: Build dll of Exiv2 0.18 in MinGW

Hi Andreas, and thanks again.
Here's a quick follow-up on the --with-zlib=/usr/local thing.

--- In exiv2@..., "Andreas Huggel" <ahuggel@...> wrote:
> > the -L/usr/local/lib switch was required because otherwise libtool
> > wasn't able to find the libraries for libz (aka zlib): in
> > C:\msys\1.0\local\lib (mounted in /usr/local/lib) I have the following
> > files from the GnuWin32 package of zlib:
> > libz.a
> > libz.dll (renamed from the zlib1.dll)
> > libz.dll.a
>
> An additional option --with-zlib=/usr/local to configure should take
> care of this
>

Oddly enough it did not work out on my system. Here's the relevant
output from make:

../libtool --mode=link g++ -no-undefined -o libexiv2.la basicio.lo
bmpimage.lo canonmn.lo convert.lo cr2image.lo crwimage.lo datasets.lo
error.lo exif.lo futils.lo fujimn.lo gifimage.lo image.lo iptc.lo
jp2image.lo jpgimage.lo makernote.lo metadatum.lo minoltamn.lo
mrwimage.lo nikonmn.lo olympusmn.lo orfimage.lo panasonicmn.lo
pngimage.lo pngchunk.lo preview.lo properties.lo psdimage.lo
rafimage.lo sigmamn.lo pentaxmn.lo sonymn.lo tags.lo tgaimage.lo
tiffcomposite.lo tiffimage.lo tiffvisitor.lo types.lo value.lo
version.lo xmp.lo xmpsidecar.lo localtime.lo -rpath /usr/local/lib
-version-info 7:0:2 -lz -lm

*** Warning: linker path does not have real file for library -lz.
*** I have the capability to make that library automatically link in when
*** you link to this library. But I can only do this if you have a
*** shared version of the library, which you do not appear to have
*** because I did check the linker path looking for a file starting
*** with libz but no candidates were found. (...for file magic test)
*** The inter-library dependencies that have been dropped here will be
*** automatically added whenever a program is linked with this library
*** or is declared to -dlopen it.

*** Since this library must not contain undefined symbols,
*** because either the platform does not support them or
*** it was explicitly requested with -no-undefined,
*** libtool will only create a static version of it.
ar cru .libs/libexiv2.a basicio.o bmpimage.o canonmn.o convert.o
cr2image.o crwimage.o datasets.o error.o exif.o futils.o fujimn.o
gifimage.o image.o iptc.o jp2image.o jpgimage.o makernote.o
metadatum.o minoltamn.o mrwimage.o nikonmn.o olympusmn.o orfimage.o
panasonicmn.o pngimage.o pngchunk.o preview.o properties.o psdimage.o
rafimage.o sigmamn.o pentaxmn.o sonymn.o tags.o tgaimage.o
tiffcomposite.o tiffimage.o tiffvisitor.o types.o value.o version.o
xmp.o xmpsidecar.o localtime.o
ranlib .libs/libexiv2.a
creating libexiv2.la
(cd .libs && rm -f libexiv2.la && cp -p ../libexiv2.la libexiv2.la)

while appending an additional -L/usr/local/lib at the end of the
libtool invocation seems to do the trick.

I'm just leaving this here as a hint, I don't quite know what the best
course of action would




Mon Jan 5, 2009 9:25 pm

beppe_rota
Offline Offline
Send Email Send Email

Forward
Message #1491 of 1513 |
Expand Messages Author Sort by Date

Hi Andreas & all, I downloaded exiv2 v0.18 and I wanted to build a dll in windows using MinGW/msys. I'd like to share my results, hoping that someone more...
beppe_rota
Offline Send Email
Jan 2, 2009
3:19 pm

Hi Giuseppe, Thanks for sharing this! It's the first time I see an exiv2 DLL created on MinGW/MSYS with the existing Makefiles. So far I've only built DLLs...
Andreas Huggel
zzzahu
Offline Send Email
Jan 5, 2009
3:24 pm

Hi Andreas, and thanks again. Here's a quick follow-up on the --with-zlib=/usr/local thing. ... Oddly enough it did not work out on my system. Here's the...
beppe_rota
Offline Send Email
Jan 5, 2009
9:25 pm

... I can reproduce this. The LDFLAGS setting passed to "make" overwrites that from configure. It works here if I set LDFLAGS in the environment before running...
Andreas Huggel
zzzahu
Offline Send Email
Jan 6, 2009
6:47 am
Advanced

Copyright © 2009 Yahoo! UK. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help