[LAU] sample preview program?

Niels Mayer nielsmayer at gmail.com
Wed Aug 4 23:53:37 UTC 2010


On Wed, Aug 4, 2010 at 4:24 PM, Harry Van Haaren <harryhaaren at gmail.com> wrote:
> Sorry I do assume that everybody is familiar with the Waf build system! And
> I shouldn't.

True, when I googled Waf, all I found was
http://en.wikipedia.org/wiki/Woman_acceptance_factor :-)

> To configure, build and then run:
>
> ./waf configure
> ./waf
> ./run.sh

After installing  vala.x86_64 0:0.8.1-1.fc12, I did waf confgure but
it died in compilation:
..................
gnulem-167-~/PreHear> ./waf

Setting build options & flags...
Initializing WAF build system...
Waf: Entering directory `/home/npm/PreHear/build'
Building the sources to objects...
[1/6] valac: sample.vala -> build/default/sample.c
build/default/sample.h build/default/sample.vapi
build/default/sample.deps
error: sndfile not found in specified Vala API directories or
GObject-Introspection GIR directories
error: jack not found in specified Vala API directories or
GObject-Introspection GIR directories
Waf: Leaving directory `/home/npm/PreHear/build'
Build failed:  -> task failed (err #1):
	{task: valac_task sample.vala ->
sample.c,sample.h,sample.vapi,sample.deps,sample.h}
.................

> As for what Vala is capable of, it compiles to "intermidiate" C code (pure
> C, not C++),
> however its Object Oreintated, and natively supports most common stuff you
> need if you use
> GTK and Gnome things... (its a Gnome project I think..) All C libraries are
> available if you write a
> quick "vala header" so to speak, called a .vapi  file. Syntax is like C# /
> Java / C++
>
> http://live.gnome.org/Vala

As a "programming language" aficionado, I've seen the "literature"
(kept under heading "Vala: gnome's oddball "Java"/C#")  -- but wanted
to see a working example for sound and GUI. Thus my interest in
compiling and trying out your program.

> Also may be of intrest: Genie, (another "language" sytatically, however its
> ran trough the same compiler as Vala.) This looks more like Python, but with some "types"
> throwin in around the place.
> http://live.gnome.org/Genie

Interesting as well although,  I still wish people would stop
reinventing languages that are more or less the same as already
standardized languages. Although I'm no fan of JavaScript/ECMASCRIPT
at least it's blunders are well understood... (same opinion goes for
Java/C#/Vala).

What kind of "updake" by industry and community is Vala seeing, given
there's so many directions we're all getting pulled into? What silver
bullets are they offering?

> Hope this gives you some info, -Harry

Thanks!

>
> PS: If your going to use Vala, I have parts of the Sndfile, Jack, and
> Ecasound  .vapi's written, and can
> post them somewhere if you want. :-)

Looks like I'll need them, unless I didn't configure correctly:

error: sndfile not found in specified Vala API directories or
GObject-Introspection GIR directories
error: jack not found in specified Vala API directories or
GObject-Introspection GIR directories

-- Niels
http://nielsmayer.com


More information about the Linux-audio-user mailing list