Wt on beagleboard

172 views
Skip to first unread message

Frans Meulenbroeks

unread,
Feb 8, 2009, 4:21:06 PM2/8/09
to Beagle Board
During FOSDEM I attended a talk on Wt.

Wt (pronounced 'witty') is a C++ library and application server for
developing and deploying web applications. It is not a 'framework',
which enforces a way of programming, but a library.
see: http://www.webtoolkit.eu/wt

This got me interested to see if I could get this to run on beagle.

In order to get it to work I had to fix the latest version of boost
and upgrade to it. Also I upgraded the wt recipe to the latest version
(2.2.3). These will be on the feed in a few hours.
Once they are on the feed you can install using

opkg install wt

I tested by copying http://www.webtoolkit.eu/wt/src/hello.C to a local
file hello.cc (on my cross development system); then compiled it with
~/oe/tmp/cross/armv7a/bin/arm-angstrom-linux-gnueabi-g++ -o hello
hello.cc -lwthttp
(your path to g++ may differ).
After that I copied the resulting hello executable to beagle and
started it with the command:

./hello.wt --docroot . --http-address 0.0.0.0 --http-port 80

After that you can access the example from a pc in your network by
browsing to the address of your beagle.

I'll leave it to someone else to add building and packaging the
examples to the recipe.

Enjoy! FM.

Frans Meulenbroeks

unread,
Feb 8, 2009, 4:26:56 PM2/8/09
to Beagle Board


On Feb 8, 10:21 pm, Frans Meulenbroeks <fransmeulenbro...@gmail.com>
wrote:
> During FOSDEM I attended a talk on Wt.
>
> Wt (pronounced 'witty') is a C++ library and application server for
> developing and deploying web applications. It is not a 'framework',
> which enforces a way of programming, but a library.
> see:http://www.webtoolkit.eu/wt
>
> This got me interested to see if I could get this to run on beagle.
>
> In order to get it to work I had to fix the latest version of boost
> and upgrade to it. Also I upgraded the wt recipe to the latest version
> (2.2.3). These will be on the feed in a few hours.
> Once they are on the feed you can install using
>
> opkg install wt
>
> I tested by copyinghttp://www.webtoolkit.eu/wt/src/hello.Cto a local
> file hello.cc (on my cross development system); then compiled it with
> ~/oe/tmp/cross/armv7a/bin/arm-angstrom-linux-gnueabi-g++ -o hello
> hello.cc -lwthttp
> (your path to g++ may differ).
> After that I copied the resulting hello executable to beagle and
> started it with the command:
>
> ./hello.wt --docroot . --http-address 0.0.0.0 --http-port 80
>
> After that you can access the example from a pc in your network by
> browsing to the address of your beagle.
>
> I'll leave it to someone else to add building and packaging the
> examples to the recipe.
>
> Enjoy! FM.

Three more remarks.

The build command should be:
~/oe/tmp/cross/armv7a/bin/arm-angstrom-linux-gnueabi-g++ -o hello.wt
hello.cc -lwthttp
(so the output filename should be hello.wt, also the command of course
should be in one line (I noticed google split it over two lines)

For those without cross environment I have uploaded the hello.wt
executable. Download http://groups.google.com/group/beagleboard/web/hello.wt

And if you start hello.wt you'll get some warnings like:
./hello.wt: /usr/lib/libstdc++.so.6: no version information available
(required by ./hello.wt)
These can be ignored. Not sure how to fix this (but I'm interested to
learn how).

Frans.

Jason Kridner

unread,
Feb 8, 2009, 10:44:02 PM2/8/09
to beagl...@googlegroups.com

Thanks Frans, I'm always excited about ways to make embedded GUI
development easier and I believe web-based GUIs are a nice way to do
that. This looks like it would be a nice addition to the beagleboard-
demo-image (especially if coupled with a Webkit rendering interface).
I'm an oddball who would rather have either C or JavaScript (Helma or
Jaxer) over C++, but the Wt examples still look sane, so I'll be
playing with this some more.

Frans Meulenbroeks

unread,
Feb 9, 2009, 9:31:11 AM2/9/09
to Beagle Board


On Feb 9, 4:44 am, Jason Kridner <jkrid...@beagleboard.org> wrote:

> Thanks Frans, I'm always excited about ways to make embedded GUI  
> development easier and I believe web-based GUIs are a nice way to do  
> that.  This looks like it would be a nice addition to the beagleboard-
> demo-image (especially if coupled with a Webkit rendering interface).  
> I'm an oddball who would rather have either C or JavaScript (Helma or  
> Jaxer) over C++, but the Wt examples still look sane, so I'll be  
> playing with this some more.

I'm planning to use it for James development.
And yes; I also prefer C above C++. Then again real programmers can
write C in any language :-)

FM

major.n...@gmail.com

unread,
Apr 15, 2014, 4:26:57 PM4/15/14
to beagl...@googlegroups.com, fransmeu...@gmail.com
Hello, I know that this is an old discussion, but is there a reason that wt is no longer on the Angstrom feed? If so where would it be available? I have been killing myself trying to build it on the device, but no luck! It would be nice to hear that someone has it running on a Beaglebone Black :)
Thanks!
Reply all
Reply to author
Forward
0 new messages