On Wed, Jan 7, 2009 at 3:02 PM, Anthony Buck <[email protected]> wrote:
> Richard,
>
> Don't suppose you could give even vague details of how to get started
> with wtruby? (specifically how to compile and run a simple example?)
You need to build Wt with the -DMULTI_THREADED=NO and -DCONNECTOR_FCGI=ON
options.
Wt::Ruby is built with cmake too, create a build directory and then use
cmake like this to refer to the source wtruby directory
cmake -DCMAKE_INSTALL_PREFIX=/usr /home/rdale/src/wtruby
For Wt 2.2.2 you will need to edit the WPopupMenu header and add a forward
declaration of WApplication:
namespace Wt {
class WMouseEvent;
class WPoint;
class WPopupMenuItem;
class WApplication;
If Wt::Ruby successfully builds and installs, you should be able to run the
hello.rb example:
cd <wtruby dir>/ruby/wtruby/examples/hello
Edit hello.rb and change:
require 'wt'
To:
require 'wthttp'
Before the release I need to add a wt.rb file which will either require
'wthttp' or 'wtfcgi' according to whether the environment is development or
production so this step won't be needed.
You should then be able to test the hello world example with a command like
this:
$ ruby hello.rb --docroot
/home/rdale/src/wtruby-0.2/ruby/wtruby/examples/hello --http-address
localhost --http-port 4000
Note that when Wt is build with no multithreading ctrl+C no longer stops a
wthttp based process, and you need to kill it manually.
-- Richard
------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest