On lundi 26 mars 2018 15:17:56 CEST Dieter Faulbaum wrote: > I have a problem under Debian sid: > because the "native" libexiv2 in sid is version 0.25 an this version is > a little bit old it doesn't know my "new" lens(es). So I installed the > latest version (0.26) under /opt/exiv2, which works fine. > I set (export) these Environment-variables: > PKG_CONFIG_PATH=/opt/exiv2/lib/pkgconfig:/usr/local/lib/x86_64-linux-gnu/pkg > config:/usr/local/lib/pkgconfig:/usr/local/share/pkgconfig:/usr/lib/x86_64-l > inux-gnu/pkgconfig:/usr/lib/pkgconfig:/usr/share/pkgconfig > CMAKE_INCLUDE_PATH=/opt/exiv2/include/exiv2 > CMAKE_LIBRARY_PATH=/opt/exiv2/lib > LD_LIBRARY_PATH=/opt/exiv2/lib > and run ./buid.sh under /tmp/darktable-2.4.2. > > First it looks fine: > > ... > -- Found JsonGlib > -- Found EXIV2: /opt/exiv2/lib/libexiv2.so > -- Found FLICKCURL: /usr/lib/x86_64-linux-gnu/libflickcurl.so > ... > > but later on I get this: > > ... > [ 51%] Linking C shared module libtethering.so > libdarktable.so: undefined reference to > `Exiv2::XmpParser::decode(Exiv2::XmpData&, > std::__cxx11::basic_string<char, std::char_traits<char>, > std::allocator<char> > const&)' > libdarktable.so: undefined reference to > `Exiv2::ExifKey::ExifKey(std::__cxx11::basic_string<char, > std::char_traits<char>, std::allocator<char> > const&)' > libdarktable.so: undefined reference to > `Exiv2::ExifData::operator[](std::__cxx11::basic_string<char, > std::char_traits<char>, std::allocator<char> > const&)' > libdarktable.so: undefined reference to > `Exiv2::XmpProperties::registerNs(std::__cxx11::basic_string<char, > std::char_traits<char>, std::allocator<char> > const&, > std::__cxx11::basic_string<char, std::char_traits<char>, > std::allocator<char> > const&)' > libdarktable.so: undefined reference to > `Exiv2::readFile(std::__cxx11::basic_string<char, > std::char_traits<char>, std::allocator<char> > const&)' > libdarktable.so: undefined reference to > `Exiv2::XmpParser::encode(std::__cxx11::basic_string<char, > std::char_traits<char>, std::allocator<char> >&, Exiv2::XmpData > const&, unsigned short, unsigned int)' > libdarktable.so: undefined reference to > `Exiv2::XmpKey::XmpKey(std::__cxx11::basic_string<char, > std::char_traits<char>, std::allocator<char> > const&)' > libdarktable.so: undefined reference to > `Exiv2::Xmpdatum::operator=(std::__cxx11::basic_string<char, > std::char_traits<char>, std::allocator<char> > const&)' > libdarktable.so: undefined reference to > `Exiv2::XmpTextValue::XmpTextValue(std::__cxx11::basic_string<char, > std::char_traits<char>, std::allocator<char> > const&)' > libdarktable.so: undefined reference to > `Exiv2::XmpData::operator[](std::__cxx11::basic_string<char, > std::char_traits<char>, std::allocator<char> > const&)' > libdarktable.so: undefined reference to > `Exiv2::Metadatum::print[abi:cxx11](Exiv2::ExifData const*) const' > libdarktable.so: undefined reference to > `Exiv2::ImageFactory::open(std::__cxx11::basic_string<char, > std::char_traits<char>, std::allocator<char> > const&, bool)' > libdarktable.so: undefined reference to > `Exiv2::XmpTextValue::read(std::__cxx11::basic_string<char, > std::char_traits<char>, std::allocator<char> > const&)' > libdarktable.so: undefined reference to > `Exiv2::IptcKey::IptcKey(std::__cxx11::basic_string<char, > std::char_traits<char>, std::allocator<char> > const&)' > libdarktable.so: undefined reference to > `Exiv2::Exifdatum::operator=(std::__cxx11::basic_string<char, > std::char_traits<char>, std::allocator<char> > const&)' > libdarktable.so: undefined reference to > `Exiv2::Value::toString[abi:cxx11]() const' > libdarktable.so: undefined reference to > `Exiv2::PreviewImage::mimeType[abi:cxx11]() const'
Linking errors like that are usually a sign of version mismatch. Is the compiler using the proper header files for Exiv2? Another possibility is that one of the other included libraries needs Exiv2 version 0.25 (ldd might help here?) Remco ____________________________________________________________________________ darktable user mailing list to unsubscribe send a mail to [email protected]
