Re: [Vala] Package `Gee-0.8' not found
- From: Ralf Ganswindt <ralfganswindt gmail com>
- To: Al Thomas <astavale yahoo co uk>
- Cc: Vala Project <vala-list gnome org>
- Subject: Re: [Vala] Package `Gee-0.8' not found
- Date: Sat, 27 Jan 2018 01:08:21 -0500
Thank you, that was the missing info. I figured out the proper name for the
ubuntu repository to get the -dev package and voila the .gir file appeared
where it should. I looked through the vala directories and found it under
/usr/share/vala/vapi/, but valac still couldn't find it until I copied the
file to /usr/share/vala-0.36/vapi/. I don't know if this is unique to
Ubuntu, but I figure this might be useful to someone.
Thanks again,
Ralf
Ralf Ganswindt
RalfGanswindt gmail com
On Thu, Jan 25, 2018 at 12:03 PM, Al Thomas <astavale yahoo co uk> wrote:
On Thursday, 25 January 2018, 16:41:31 GMT, Ralf Ganswindt <
ralfganswindt gmail com> wrote:
I'm experimenting with Vala and so far I like how it works. However, I
tried to compile a basic gee example from the sample programs and I get
the
following:
$ valac --pkg Gee-0.8 list.vala
error: Package `Gee-0.8' not found in specified Vala API directories or
It should be --pkg gee-0.8 It is case sensitive!
You also need the development files installed. For Ubuntu that would be
something like
apt install libgee-dev
GIR files:
You want to avoid GIR files to start with. They are GObject Introspection
Repository (GIR)
files that contain enough information about a C library's interface to
generate bindings for
various languages, including Vala. The Vala tool vapigen can then be used
to generate a
Vala Application Programming Interface (VAPI) file from the GIR. valac can
do this automatically
if a VAPI is not found.
By using the capitalized version, --pkg Gee-0.8, valac tried to generate
the VAPI for you by
searching for the relevant GIR. It looks like that wasn't found either,
probably because you
don't have the development files installed. If you look at the files in
the dev package you
should see the difference in filenames.
When starting out you want to focus on using VAPI files for interfacing
with libraries.
All the best,
Al
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]