如何从包括共享库EXIV2的源代码构建Dartable

I have problem in compiling Darktable from source, I've build it a while ago but now I wanted to have the latest version of shared library exiv2, I've installed exiv2.

我有错误:

/usr/bin/ld: libdarktable.so: undefined reference to `Exiv2::ImageFactory::open(unsigned char const*, unsigned long)'
/usr/bin/ld: libdarktable.so: undefined reference to `Exiv2::ExifData::empty() const'
/usr/bin/ld: libdarktable.so: undefined reference to `Exiv2::ExifParser::encode(std::vector<unsigned char, std::allocator<unsigned char> >&, Exiv2::ByteOrder, Exiv2::ExifData const&)'
/usr/bin/ld: libdarktable.so: undefined reference to `Exiv2::ExifParser::decode(Exiv2::ExifData&, unsigned char const*, unsigned long)'
collect2: error: ld returned 1 exit status
make[2]: *** [src/CMakeFiles/darktable.dir/build.make:143: src/darktable] Błąd 1
make[1]: *** [CMakeFiles/Makefile2:1830: src/CMakeFiles/darktable.dir/all] Błąd 2
make: *** [Makefile:172: all] Błąd 2

我正在尝试将其安装在具有非常老版本的Darktable和库的Fedora GNU / linux发行版之上。

我不确定,但也许找不到exiv2头文件,它尝试使用Fedora存储库中已过期的文件。

我正在尝试这个:

export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH"

我应该只安装exiv2库并替换Fedora软件包吗?我怎样才能做到这一点?

评论