Showing posts with label Waf. Show all posts
Showing posts with label Waf. Show all posts

Saturday, June 26, 2010

Vala & Gstreamer

Hey All,

Yesterday I took the plunge to try and learn Vala. That's
not too bad as its based on C#, which has syntax like Java / C++.

Its a language designed around the GObject system that the Gnome
platform employs, and hence is a great language to use for that kind
of application development.

GStreamer (or GnomeStreamer..?) is a multimedia library that follows
the GObject style, and incorperates well with Vala & the Gnome platform.

All in all this should allow for "write-once, run-everywhere" programming,
while the performance should stay approximatly as good as when coding in
native C, because Vala gets compiled to C, and then the C sources are run
trough your C compiler of choice.. (gcc).

Ill let you know once I have something useful coded.. -Harry

Friday, January 22, 2010

Tut 9: Dropping your IDE

Hi,

So far, I've been using an IDE for most of the tutorials I've done.
To get "real" cross-platform compilation, and not make everyone
else use the same IDE as you to work on a certain project, you
need to adapt to a Build System.

The most common build system in the past was Make. (& freinds.)
Originally developed years ago, I think it was a revolution. But now
I think its an outdated, unusable piece of software.

Waf: Please stand up:
Waf is a new build system, based on Scons, and its written in Python.
This means that to use Waf, you dont need to learn any "new"
scripting language, all you need to do, is learn a couple of "keywords"
that will use waf to build your program.

 There's a zip here, which has a "full C++ demo" of Gtkmm & Waf.
Inside the zip, there's a file called ReadMeToComplie.sh
If you open it with a text editor, you'll get a run through of how to use
Waf.  If you open a terminal in that location, and type:
./RunMeToCompile.sh
Its going to configure, build, run, and then clean up your program.
Ie: Prepare to build, Build, Run, and Remove the compiled program.

Hope that's a help to those looking for a simple tut, -Harry