Error compiling exiv2

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Error compiling exiv2

Bugzilla from cmaessen@casco.demon.nl
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.

Caspar.
_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: Error compiling exiv2

Arnd Baecker
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

_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: Error compiling exiv2

Gilles Caulier-4
Arnd, Caspar,

Yes, xmp exiv2 development branch from svn have been merged to trunk recently.

Now Exiv2 require Adobe XMP toolkit to be compiled. Look in README-XMP for details.

This is not the final issue. Something will be done to make it configurable before to compile.

Gilles Caulier

2007/9/18, Arnd Baecker < [hidden email]>:
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
<a href="http://www.adobe.com/devnet/xmp/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">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

_______________________________________________
Digikam-users mailing list
[hidden email]
<a href="https://mail.kde.org/mailman/listinfo/digikam-users" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"> https://mail.kde.org/mailman/listinfo/digikam-users


_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users