On Thu, Jan 06, 2011 at 01:44:45PM +0100, Łukasz Pankowski wrote:
> calpas calpas <[email protected]> writes:
> 
> > Dear all
> > I've successfuly built OpenEmbedded on my host. I would like now to compile 
> > a
> > simple Vala HelloWorld application.
> > Could anyone let me know how should I proceed to compile the HelloWorld
> > application witten in Vala and get it run on my FreeRunner.
> > I'm quite newbie without any experience on embedded system development.
> >
> > anyhelp will help to move on in my learning process. I'm really stuck and 
> > not
> > able to find any tutorial around.
> 
> Hi,
> 
> I do not know of any tutorial for Vala & OE. You can look into my
> project ffphonelog (or ffalarms which is little bigger): see their OE
> recipes and/or get their git repos at http://git.shr-project.org/git/.
> I do not use autotools but simply a Makefile which you can look into. It
> should be easy to strip ffphonelog down to a minimal example.

Hello

I am also interested in how to begin creating Vala apps for SHR and I
am wondering if something like this might work :-

* create directory /home/ben/shr and do "make-setup" etc. for SHR
* create folder /home/ben/shr/my-app
* add my-app.vala source file [1] which prints the text "hello world" then exits
* add my-app.bb recipe also to my-app directory
* cd shr-unstable && . setup-env && bitbake -b /home/ben/shr/my-app/my-app.bb

.. but I am a newbie so don't know what to put inside the recipe [2] :-

DESCRIPTION = "hello world sample program"
PR = "r0"
DEPENDS = ""
SRC_URI = " \
file://my-app.vala \
"
S = "${WORKDIR}"
do_compile () {
valac my-app.vala
}
do_install () {
install -d ${D}${bindir}/
install -m 0755 ${S}/my-app ${D}${bindir}/
}
FILES_${PN} = "${bindir}/my-app"


Am I anywhere close?

Thanks

-- 
Ben Thompson

1. vala hello world: http://live.gnome.org/Vala/Tutorial#A_First_Program
2. bitbake recipe: 
http://www.gumstix.net/Setup-and-Programming/view/Build-system-overview/Hello-world-tutorial/111.html
_______________________________________________
Shr-devel mailing list
[email protected]
http://lists.shr-project.org/mailman/listinfo/shr-devel

Reply via email to