Cannot compile libkexiv2

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

Cannot compile libkexiv2

Bugzilla from mikmach@wp.pl
Hello,

Cannot compile kexiv2 from trunk:

kexiv2 svn: 889398
exiv2 svn: 1686

Compilation fails with:

Linking CXX shared library ../../../lib/libkexiv2.so
CMakeFiles/kexiv2.dir/kexiv2exif.o: In function
`KExiv2Iface::KExiv2::getExifThumbnail(bool) const':
kexiv2exif.cpp:(.text+0x22e): undefined reference to
`Exiv2::ExifThumbC::ExifThumbC(Exiv2::ExifData const&)'
kexiv2exif.cpp:(.text+0x23d): undefined reference to
`Exiv2::ExifThumbC::copy() const'
CMakeFiles/kexiv2.dir/kexiv2exif.o: In function
`KExiv2Iface::KExiv2::setExif(QByteArray const&) const':
kexiv2exif.cpp:(.text+0x4e0): undefined reference to
`Exiv2::ExifParser::decode(Exiv2::ExifData&, unsigned char const*,
unsigned int)'
CMakeFiles/kexiv2.dir/kexiv2exif.o: In function
`KExiv2Iface::KExiv2::getExif(bool) const':
kexiv2exif.cpp:(.text+0x6f3): undefined reference to
`Exiv2::ExifParser::encode(std::vector<unsigned char,
std::allocator<unsigned char> >&, unsigned char const*, unsigned int,
Exiv2::ByteOrder, Exiv2::ExifData const&)'
CMakeFiles/kexiv2.dir/kexiv2exif.o: In function
`KExiv2Iface::KExiv2::setExifThumbnail(QImage const&, bool) const':
kexiv2exif.cpp:(.text+0x14e1): undefined reference to
`Exiv2::ExifThumb::ExifThumb(Exiv2::ExifData&)'
kexiv2exif.cpp:(.text+0x14ed): undefined reference to
`Exiv2::ExifThumb::setJpegThumbnail(std::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&)'
CMakeFiles/kexiv2.dir/kexiv2exif.o: In function
`KExiv2Iface::KExiv2::setExifTagData(char const*, QByteArray const&, bool)
const':
kexiv2exif.cpp:(.text+0x1ccd): undefined reference to
`Exiv2::DataValue::DataValue(unsigned char const*, long, Exiv2::ByteOrder,
Exiv2::TypeId)'
CMakeFiles/kexiv2.dir/kexiv2iptc.o: In function
`KExiv2Iface::KExiv2::setIptc(QByteArray const&) const':
kexiv2iptc.cpp:(.text+0x190): undefined reference to
`Exiv2::IptcParser::decode(Exiv2::IptcData&, unsigned char const*,
unsigned int)'
CMakeFiles/kexiv2.dir/kexiv2iptc.o: In function
`KExiv2Iface::KExiv2::getIptc(bool) const':
kexiv2iptc.cpp:(.text+0x3a3): undefined reference to
`Exiv2::IptcParser::encode(Exiv2::IptcData const&)'
CMakeFiles/kexiv2.dir/kexiv2iptc.o: In function
`KExiv2Iface::KExiv2::setIptcTagData(char const*, QByteArray const&, bool)
const':
kexiv2iptc.cpp:(.text+0x132d): undefined reference to
`Exiv2::DataValue::DataValue(unsigned char const*, long, Exiv2::ByteOrder,
Exiv2::TypeId)'
collect2: ld returned 1 exit status
make[2]: *** [lib/libkexiv2.so.7.2.0] Błąd 1
make[1]: *** [libs/libkexiv2/libkexiv2/CMakeFiles/kexiv2.dir/all] Błąd 2
make[1]: *** Oczekiwanie na niezakończone zadania....

Any ideas?

TIA

m.


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

Re: Cannot compile libkexiv2

Gilles Caulier-4
Mik,

I cannot reproduce the problem here. In Exiv2 :

[gilles@localhost exiv2]$ pwd
/mnt/data/devel/SVN/trunk/exiv2
[gilles@localhost exiv2]$ svn up
At revision 1686.

... distclean, compiled, and Installed

And in kdegraphics, i have cleaned CMake cache to be sure that i use last Exiv2 installation:

[gilles@localhost libkexiv2]$ pwd
/mnt/data/devel/SVN/trunk/kdegraphics/libs/libkexiv2
[gilles@localhost libkexiv2]$ svn up
At revision 891337.
[gilles@localhost libkexiv2]$ make
Scanning dependencies of target kexiv2
[ 11%] Building CXX object libs/libkexiv2/libkexiv2/CMakeFiles/kexiv2.dir/kexiv2_automoc.o
[ 22%] Building CXX object libs/libkexiv2/libkexiv2/CMakeFiles/kexiv2.dir/kexiv2.o
[ 33%] Building CXX object libs/libkexiv2/libkexiv2/CMakeFiles/kexiv2.dir/kexiv2private.o
[ 44%] Building CXX object libs/libkexiv2/libkexiv2/CMakeFiles/kexiv2.dir/kexiv2image.o
[ 55%] Building CXX object libs/libkexiv2/libkexiv2/CMakeFiles/kexiv2.dir/kexiv2comments.o
[ 66%] Building CXX object libs/libkexiv2/libkexiv2/CMakeFiles/kexiv2.dir/kexiv2exif.o
[ 77%] Building CXX object libs/libkexiv2/libkexiv2/CMakeFiles/kexiv2.dir/kexiv2iptc.o
[ 88%] Building CXX object libs/libkexiv2/libkexiv2/CMakeFiles/kexiv2.dir/kexiv2gps.o
[100%] Building CXX object libs/libkexiv2/libkexiv2/CMakeFiles/kexiv2.dir/kexiv2xmp.o
Linking CXX shared library ../../../lib/libkexiv2.so
[100%] Built target kexiv2

Gilles

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

Re: Cannot compile libkexiv2

Bugzilla from mikmach@wp.pl
Dnia Monday 01 December 2008, Gilles Caulier napisał:
> Mik,
>
> I cannot reproduce the problem here. In Exiv2 :
>
> [gilles@localhost exiv2]$ pwd
> /mnt/data/devel/SVN/trunk/exiv2
> [gilles@localhost exiv2]$ svn up
> At revision 1686.

I'm blind :/ Reinstalled Mandriva lately and didn't notice this sneaky
bastard put its own version of exiv2. After removing this everything
compiles. Thanks.

m.

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