On 21/04/11 23:27, Adam Dingle wrote: > Bengt, > > On Thu, Apr 21, 2011 at 4:03 AM, Bengt <[email protected]> wrote: > >> Hi >> >> Why is this not working anymore? >> That is, I have a local copy of gexiv2 on my development tree, not >> system wide, so before I just set the PKG_CONFIG_PATH variable, and >> compiling Shotwell was a breeze. >> No longer so though... >> >> Any reason for this? >> >> >> PKG_CONFIG_PATH=${HOME}/unstable/gexiv2/lib/pkgconfig >> export PKG_CONFIG_PATH >> make >> make[2]: Entering directory >> `/home/bengt/Development/shotwell/shotwell/plugins/shotwell-publishing' >> valac -g --enable-checking --fatal-warnings --save-temps --compile \ >> --vapidir=../ --pkg=shotwell-plugin-dev-1.0 >> --pkg=gobject-2.0 >> --pkg=glib-2.0 --pkg=gdk-2.0 --pkg=gtk+-2.0 --pkg=gtk+-2.0 >> --pkg=libsoup-2.4 --pkg=libxml-2.0 --pkg=webkit-1.0 --pkg=gexiv2 >> --pkg=gee-1.0 \ >> -X -I../.. -X -fPIC \ >> -X -D_VERSION='"0.9.2+trunk"' -X >> -DGETTEXT_PACKAGE='"shotwell"' \ >> \ >> ../common/Resources.vala shotwell-publishing.vala >> FacebookPublishing.vala PicasaPublishing.vala FlickrPublishing.vala >> YouTubePublishing.vala ../common/RESTSupport.vala >> error: Package `gexiv2' not found in specified Vala API directories or >> GObject-Introspection GIR directories >> Compilation failed: 1 error(s), 0 warning(s) >> make[2]: *** [.stamp] Error 1 >> >> > PKG_CONFIG_PATH is not relevant for this particular error. The problem is > that valac is not finding gexiv2.vapi. This isn't super well documented, > but valac 0.12 looks in the following directories for vapi files: > > 1. Any directories specified via --vapidir on the command line (in this > case, "."). > 2. $PREFIX/share/vala-0.12/vapi, for every directory $PREFIX in > $XDG_DATA_DIRS. > 3. $PREFIX/share/vala/vapi, for every directory in $XDG_DATA_DIRS. > > If you haven't set the XDG_DATA_DIRS environment variable, it > defaults to /usr/local/share/:/usr/share/. (See > http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html). > > Typically, if you've built and installed gexiv2 locally using the default > prefix (/usr/local), then gexiv2.vapi should be in > /usr/local/share/vala/vapi, and valac should find it. If you've used a > different prefix when configuring gexiv2, you probably need to add that > directory to XDG_DATA_DIRS. > > Hope this helps!
Thanks, I will try it in a while. Just before I got your reply I decided to simply install gexiv2 system wide, and then I managed to get past this error message. On the other hand, it worked beatifully for 6 months or so, with PKG_CONFIG_PATH... or has something changed in the latest version of Vala? Bengt
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Shotwell mailing list [email protected] http://lists.yorba.org/cgi-bin/mailman/listinfo/shotwell
