Wt on beagleboard

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 --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).


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 :slight_smile:


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 :slight_smile: