[Shotwell] Build errors

Paul Novak pnovak at alumni.caltech.edu
Sun Jan 24 12:23:05 PST 2010


Hello,

I am trying to build shotwell from SVN, and failing.

I am running Fedora, so I first installed the following packages from
the Fedora 12 repo:
dbus-glib-devel
GConf2-devel
gtk2-devel
libexif-devel
libgphoto2-devel
libsoup-devel
libxml2-devel
sqlite-devel
unique-devel
webkitgtk-devel

I then installed libgudev1-devel from Fedora Rawhide, to get a
sufficiently recent version.

I downloaded the source of shotwell from SVN, vala from git at
git://git.gnome.org/vala, and libgee from git://git.gnome.org/libgee. I
built vala first, then libgee, then tried to build shotwell, but failed
with the following errors:

	src/main.vala src/AppWindow.vala src/CollectionPage.vala
src/Thumbnail.vala src/DatabaseTables.vala src/ThumbnailCache.vala
src/image_util.vala src/CheckerboardLayout.vala src/PhotoPage.vala
src/Exif.vala src/Page.vala src/ImportPage.vala src/GPhoto.vala
src/SortedList.vala src/EventsDirectoryPage.vala src/Dimensions.vala
src/Box.vala src/Photo.vala src/Orientation.vala src/util.vala
src/BatchImport.vala src/Dialogs.vala src/Resources.vala src/Debug.vala
src/Sidebar.vala src/ColorTransformation.vala src/EditingTools.vala
src/DataObject.vala src/DataCollection.vala src/LibraryWindow.vala
src/CameraTable.vala src/DirectWindow.vala src/Properties.vala
src/CustomComponents.vala src/Config.vala src/Event.vala
src/International.vala src/Workers.vala src/system.vala src/AppDirs.vala
src/PixbufCache.vala src/WebConnectors.vala src/FacebookConnector.vala
src/CommandManager.vala src/Commands.vala src/SlideshowPage.vala
src/LibraryFiles.vala src/FlickrConnector.vala src/Printing.vala
glib-2.0.vapi:1010.9-1010.21: error: Assignment: Cannot convert from
`string*' to `char*'
		char* dest = result;
		      ^^^^^^^^^^^^^
glib-2.0.vapi:1012.21-1012.24: error: The name `dest' does not exist in
the context of `string.splice'
		GLib.Memory.copy (dest, this, (char*) start_string - (char*) this);
		                  ^^^^
glib-2.0.vapi:1013.3-1013.6: error: The name `dest' does not exist in
the context of `string.splice'
		dest += (char*) start_string - (char*) this;
		^^^^
glib-2.0.vapi:1015.21-1015.24: error: The name `dest' does not exist in
the context of `string.splice'
		GLib.Memory.copy (dest, str, str_size);
		                  ^^^^
glib-2.0.vapi:1016.3-1016.6: error: The name `dest' does not exist in
the context of `string.splice'
		dest += str_size;
		^^^^
glib-2.0.vapi:1018.21-1018.24: error: The name `dest' does not exist in
the context of `string.splice'
		GLib.Memory.copy (dest, end_string, end_string.size ());
		                  ^^^^
Compilation failed: 6 error(s), 0 warning(s)

Do you have any suggestions on how to fix this error so I can build
shotwell?

I also tried to use vala and libgee from Rawhide, but when I did so,
shotwell failed with a runtime error of "Illegal instruction". And when
I try the debug build (./configure --debug) it works. Go figure.

Also, could the instructions on installing shotwell, at
http://trac.yorba.org/wiki/ShotwellInstallation, be corrected to reflect
that hal (0.5.11) is deprecated but that gudev is needed to build
shotwell, and that vala and libgee from Rawhide are recent enough to
build shotwell?

Thanks,
Paul



More information about the Shotwell mailing list