Can anyone explain the following?
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
given that exiv2 version 0.27 does not exist for Ubuntu in general (it stops at v0.25).
I did the following:
- I went to the exiv website
- I grabbed the link for the linux build of exiv 0.27
I ran the following
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
added
:/usr/local/lib/exiv2-0.27.1-Linux64/bin
source /etc/environment
- restarted the terminal.
and then exiv is correctly usable.
But meson does not detect it is there during the build.
To be clear: the package gexiv2 Version 0.10.9 shipped for Ubuntu 19.04 is inferior to my needed version of 0.11.0 at least.
I found what was wrong - you have downloaded binary version of Exiv2, but really you need source version with corresponding headers and development files.
So the complete steps will be the following:
exiv2 part
Check:
gexiv2 part
and so on.