[Digikam-users] Error compiling exiv2

Arnd Baecker arnd.baecker at web.de
Tue Sep 18 22:57:47 BST 2007


On Tue, 18 Sep 2007, Caspar Maessen wrote:

> I checked out and tried to compile exiv2 from trunk:
>
> # svn checkout svn://dev.robotbattle.com/exiv2/trunk exiv2
> # cd exiv2
> # make config
> # ./configure --prefix=/usr --mandir=/usr/share/man --build=i686-pc-linux-gnu
> # make
>
> This gave me an error. I truncated the output of the make command.
>
> [...]
> xmp.cpp:48:20: warning: XMP.hpp: No such file or directory
> xmp.cpp:49:25: warning: XMP.incl_cpp: No such file or directory
> xmp.cpp:74: error: expected ',' or '...' before '&' token
> [...]
> xmp.cpp:709: error: 'opt' was not declared in this scope
> xmp.cpp:709: error: 'XMP_PropIsSimple' was not declared in this scope
> xmp.cpp: At global scope:
> xmp.cpp:692: warning: unused parameter 'XMP_OptionBits'
> make[1]: *** [xmp.o] Error 1
> make[1]: Leaving directory `/home/builds/digikam-svn/exiv2/src'
> make: *** [all] Error 2
>
> Obviously this has something to do with the XMP support being under
> development. But I cannot find a clue how to overcome this error. Any
> hint is appreciated.

Looking at xmp.cpp it seems
that it would like to have
// Adobe XMP Toolkit
#ifdef EXV_HAVE_XMP_TOOLKIT
# define TXMP_STRING_TYPE std::string
# include <XMP.hpp>
# include <XMP.incl_cpp>
#endif // EXV_HAVE_XMP_TOOLKIT

Googling for this leads to
 http://www.adobe.com/devnet/xmp/
The resulting xmp_v411_sdk.zip contains XMP.hpp.

So it seems that this has to be installed first ...

Hope this helps a bit ...,

Arnd




More information about the Digikam-users mailing list