Gregory,

as you probably know, Shotwell 0.9 requires Vala 0.12 (or 0.11.7); building with 0.10 will not work. Since you have both 0.10 and 0.12 installed, are you completely sure that 0.12 is being used during the build? What does this print?

$ valac --version

You might need to run 'sudo update-alternatives --config valac' to choose which version you want to be active. Cheers -

adam

On 04/07/2011 03:48 PM, Gregory Smirnov wrote:
Hello I have Ubuntu 10.04 64bit.

Some time ago I managed to build Shotwell 0.8.1 from sources.

Currently I have installed both vala-0.10 (0.10.3) and vala-0.12.

Today I tried to build Shotwell 0.9.1 (tar.bz2 from yorba.org website)
and have this error:

~/Projects/Shotwell/shotwell-0.9.1$ make
valac-0.12 -c -g --enable-checking --thread --fatal-warnings
--vapidir=plugins/ -X -DGETTEXT_PACKAGE='"shotwell"' -X -I.
--pkg=gobject-2.0 --pkg=glib-2.0 --pkg=gdk-2.0 --pkg=gtk+-2.0
--includedir=plugins --vapi=plugins/shotwell-plugin-dev-1.0.vapi
--header=plugins/shotwell-plugin-dev-1.0.h
src/plugins/SpitInterfaces.vala src/plugins/TransitionsInterfaces.vala
src/plugins/PublishingInterfaces.vala
/home/gregory/Projects/Shotwell/shotwell-0.9.1/src/plugins/PublishingInterfaces.vala.c:193:
 error: expected specifier-qualifier-list before ‘GDateTime’
/home/gregory/Projects/Shotwell/shotwell-0.9.1/src/plugins/PublishingInterfaces.vala.c:357:
 error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
/home/gregory/Projects/Shotwell/shotwell-0.9.1/src/plugins/PublishingInterfaces.vala.c:1172:
 error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
/home/gregory/Projects/Shotwell/shotwell-0.9.1/src/plugins/PublishingInterfaces.vala.c:
 In function ‘spit_publishing_publishable_reserved0’:
/home/gregory/Projects/Shotwell/shotwell-0.9.1/src/plugins/PublishingInterfaces.vala.c:1182:
 error: ‘SpitPublishingPublishableIface’ has no member named ‘reserved0’
...
/home/gregory/Projects/Shotwell/shotwell-0.9.1/src/plugins/PublishingInterfaces.vala.c:1260:
 error: ‘SpitPublishingPublishableIface’ has no member named ‘reserved7’
error: cc exited with status 256
Compilation failed: 1 error(s), 0 warning(s)

I tried generating C file only:

~/Projects/Shotwell/shotwell-0.9.1$ valac-0.12 -C -g --enable-checking
--thread --fatal-warnings  --vapidir=plugins/ -X
-DGETTEXT_PACKAGE='"shotwell"' -X -I. --pkg=gobject-2.0 --pkg=glib-2.0
--pkg=gdk-2.0 --pkg=gtk+-2.0 --includedir=./plugins
--vapi=./plugins/shotwell-plugin-dev-1.0.vapi
--header=./plugins/shotwell-plugin-dev-1.0.h
src/plugins/PublishingInterfaces.vala
src/plugins/PublishingInterfaces.vala:246.44-246.61: error: The type
name `Spit.HostInterface' could not be found
public interface PluginHost : GLib.Object, Spit.HostInterface {
                                            ^^^^^^^^^^^^^^^^^^
src/plugins/PublishingInterfaces.vala:563.36-563.49: error: The type
name `Spit.Pluggable' could not be found
public interface Service : Object, Spit.Pluggable {
                                    ^^^^^^^^^^^^^^
Compilation failed: 2 error(s), 0 warning(s)

Any suggestions?
Gregory


_______________________________________________
Shotwell mailing list
[email protected]
http://lists.yorba.org/cgi-bin/mailman/listinfo/shotwell

_______________________________________________
Shotwell mailing list
[email protected]
http://lists.yorba.org/cgi-bin/mailman/listinfo/shotwell

Reply via email to