Compilation error with gexiv2

Bug #1174891 reported by Vladimir Kolev on 2013-04-30
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Foto
Undecided
Unassigned

Bug Description

I just downloaded the latest source and seem not be able to compile it:

/home/vladi/Development/foto/src/metadata-reader/MetadataReader.vala:37.57-37.81: error: The name `get_camera_model' does not exist in the context of `GExiv2.Metadata'
        public string camera_model { owned get { return metadata.get_camera_model (); } }
                                                        ^^^^^^^^^^^^^^^^^^^^^^^^^
/home/vladi/Development/foto/src/metadata-reader/MetadataReader.vala:39.54-39.75: error: The name `get_date_time' does not exist in the context of `GExiv2.Metadata'
        public string date_time { owned get { return metadata.get_date_time (); } }
                                                     ^^^^^^^^^^^^^^^^^^^^^^
/home/vladi/Development/foto/src/metadata-reader/MetadataReader.vala:63.26-63.44: error: The name `get_rating' does not exist in the context of `GExiv2.Metadata'
            get { return metadata.get_rating(); }
                         ^^^^^^^^^^^^^^^^^^^
/home/vladi/Development/foto/src/metadata-reader/MetadataReader.vala:57.21-57.39: error: The name `set_rating' does not exist in the context of `GExiv2.Metadata'
                    metadata.set_rating(value);
                    ^^^^^^^^^^^^^^^^^^^
/home/vladi/Development/foto/src/views/ImageGridView/ImageGridView.vala:83.9-83.64: warning: implicit .begin is deprecated
/home/vladi/Development/foto/src/views/FotoViewContainer.vala:130.9-130.27: warning: Clutter.Actor.scale_gravity has been deprecated since 1.12
/home/vladi/Development/foto/src/dialogs/SettingsDialog.vala:112.17-112.33: warning: implicit .begin is deprecated
Compilation failed: 4 error(s), 7 warning(s)
make[2]: *** [src/foto.c] Error 1
make[1]: *** [CMakeFiles/foto.dir/all] Error 2
make: *** [all] Error 2

Erasmo Marín (erasmo-marin) wrote :

Maybe you have the shotwell ppa in your system? it replaces the gexiv libraries and give some problems as I know. Foto is building ok in Quantal and Precise:

https://code.launchpad.net/~erasmo-marin/+recipe/foto-daily

Vladimir Kolev (vladimir.kolev) wrote :

I found that if I use the shotwell way to detect camera it fixes the get_camera_model():
   metadata.get_tag_interpreted_string("Exif.Image.Model")
I will check today if it will compile after I make the changes for the other method calls.

Users of elementary always have shotwell installed I think, but I'm not sure if they use the shotwell repository, have to check when I'm on the elementary machine.

Pim Vullers (pimvullers) wrote :

Same issue when building on Gentoo Linux. Which version of gexiv are you using?

Changed in foto:
status: New → Confirmed
Pim Vullers (pimvullers) wrote :

it builds with gexiv-0.4.1 but not with higher versions. So you should either fix the source to also build against newer gexiv2 versions, or have CMake check the gexiv2 version to assure it's at most 0.4.1.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers