任何人都可以解释以下内容吗?
user@system:~/gexiv2-0.11.0/build$ exiv2 --version
exiv2 0.27.1
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public
License along with this program; if not, write to the Free
Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301 USA
user@system:~/gexiv2-0.11.0/build$ meson --prefix=/usr ..
The Meson build system
Version: 0.49.0
Source dir: /home/user/gexiv2-0.11.0
Build dir: /home/user/gexiv2-0.11.0/build
Build type: native build
Project name: gexiv2
Project version: 0.11.0
Native C compiler: cc (gcc 8.3.0 "cc (Ubuntu 8.3.0-6ubuntu1) 8.3.0")
Native C++ compiler: c++ (gcc 8.3.0 "c++ (Ubuntu 8.3.0-6ubuntu1) 8.3.0")
Build machine cpu family: x86_64
Build machine cpu: x86_64
Found pkg-config: /usr/bin/pkg-config (0.29.1)
Found CMake: /usr/bin/cmake (3.13.4)
Dependency exiv2 found: NO (tried pkgconfig)
meson.build:13:0: ERROR: Dependency "exiv2" not found, tried pkgconfig
A full log can be found at /home/user/gexiv2-0.11.0/build/meson-logs/meson-log.txt
鉴于一般 Ubuntu 不存在 exiv2 版本 0.27 (它停在v0.25)。
我做了以下事情:
- 我去了exiv网站
- 我抓住了 exiv 0.27 的 linux 版本的链接
我跑了以下
wget https://www.exiv2.org/builds/exiv2-0.27.1-Linux64.tar.gz sudo tar xzf exiv2-0.27.1-Linux64.tar.gz -C /usr/local/lib/ sudo nano /etc/environment
添加
:/usr/local/lib/exiv2-0.27.1-Linux64/bin
source /etc/environment
- 重新启动终端。
然后 exiv 可以正确使用。
但是介子在构建过程中没有检测到它的存在。
需要明确的是:为 Ubuntu 19.04 提供的 gexiv2 版本0.10.9至少不如我需要的 0.11.0 版本。
我发现出了什么问题——你已经下载了 Exiv2 的二进制版本,但实际上你需要带有相应头文件和开发文件的源版本。
所以完整的步骤如下:
exiv2部分
查看:
gexiv2 部分
等等。