Changes

Jump to: navigation, search

GEPS 029: GTK3-GObject introspection Conversion

2,507 bytes added, 17:49, 16 March 2013
Add rough and ready instructions for building GExiv2
LD_LIBRARY_PATH=/usr/local/lib PYTHONPATH=/usr/local/lib/python2.7/site-packages/ python -c 'from gramps.grampsapp import main; main()'
 
=== GExiv2 for Image metadata ===
 
As at 9 Mar 2013 Fedora 18 only has a libgexiv2-0.4.1-3.fc18.i686.rpm. and
version 0.5 (released October 2012) is needed in order to have the Python
bindings for GExiv2.
 
The GExiv2 maintainer's homepage is: redmine.yorba.org/projects/gexiv2/wiki
which points to the latest sources, and tells you how to compile it.
 
But to compile a Fedora 18 GExiv2 library, you need to have installed both
exiv2-devel-0.23-3.fc18.i686.rpm and exiv2-libs-0.23-3.fc18.i686.rpm also.
And you also need (unless you already have the /usr/bin/g-ir-scanner program)
gobject-introspection-devel-1.34.2-1.fc18.i686.rpm too -- but that requires
pkgconfig (which I already had) and also libffi-devel-3.0.10-3.fc18.i686.rpm
for it to be happy.
 
The 0.5 GExiv2 sources are in www.yorba.org/download/gexiv2/0.5. There you
can download "libgexiv2-0.5.0.tar.xz" (not .bz2 or .gz) -- which will again
only be necessary if Fedora has not yet updated its official RPM (to 0.5).
 
Then, make a temporary directory and copy libgexiv2-0.5.0.tar.xz into it.
Then "cd" into that directory and say "tar xpfJ libgexiv2-0.5.0.tar.xz".
Then "cd" into the "libgexiv2-0.5.0" it made, and type:
./configure --enable-introspection --prefix=/usr
make
(with the "/usr" being needed to override the "/usr/local" default)
 
Then say (as root):
make install
 
Since I already had Python3 installed on that F18, along with the Python2
which came with the F18, the "make install" put GExiv2.py into both the
python2.7 and python3.3 site-packages/gi/overrides directories, thus enabling
it on both. If you only have one Python it will put it only there.
 
As a test, in both (for me) "python" and "python3" say:
from gi.repository import GExiv2
 
Let's not tell users that they should install self-built software into /usr. They shouldn't, and neither should you.
Either /usr/local or /opt are better choices and more-or-less standard practice. To make the library findable one
should either add the directory of choice to /etc/ld.so.conf and run ldconfig(8) or add it to $LD_LIBRARY_PATH in one's profile.
 
 
FWIW it seems a bit simpler with Linux Mint Debian Update 6
(Cinnamon)
 
libexiv, etc, etc............. are already installed or can
be installed via synaptic.
 
Then
git clone git://git.yorba.org/gexiv2" to get gexiv2 0.5;
going into gexiv2/ and running
./configure --enable-introspection
make
(as root) make install"
installs in usr/local
And
python3
from gi.repository import GExiv2"
tests OK.
== Problems ==
manual
389
edits

Navigation menu