For Wt 3.1.9, how to run blog example. I tried:
tcc@tcc:/usr/lib/Wt/examples/blog$ ./blog Reading: /etc/wt/wt_config.xml [2011-Jun-19 21:22:53.516200] 12684 - [notice] "Wt: initializing built-in httpd" [2011-Jun-19 21:22:53.516364] 12684 - [notice] "Reading Wt config file: /etc/wt/wt_config.xml (location = '/usr/lib/Wt/examples/blog/blog.wt')" exception: unable to open database file tcc@tcc:/usr/lib/Wt/examples/blog$ -- H.S.Rai On Sun, Jun 19, 2011 at 9:18 PM, H.S.Rai <[email protected]> wrote: > On Sun, Jun 19, 2011 at 4:40 PM, Pau Garcia i Quiles > <[email protected]> wrote: >> >> Please use this repository to take Wt 3.1.9 and make sure you install the >> witty-examples package: >> https://launchpad.net/~pgquiles/+archive/wt > > I tried, and reported in same email. I thank you for your detailed > reply. Since we can use latest version, so you could have safely > skipped trouble shooting for old version. > >> (you were setting WT_SOURCE_DIR to the wrong directory) >> Since Wt 3.1.8, the examples are also provided in binary form in the >> witty-examples package and installed to /usr/lib/Wt/examples > > I noticed this folder, but was not aware that it is in binary form. > > <snip> > >>> http://redmine.webtoolkit.eu/projects/wt/wiki/Installing_Wt_on_Ubuntu#Installing-from-prebuilt-packages >>> ), with ppa:pgquiles/wt >>> >>> It showed examples in /usr/lib/Wt/examples >>> >>> When I issue command as given below, it results in error: >>> >>> tcc@tcc:~/Wt$ cmake -DWT_SOURCE_Dir=/usr/lib/Wt/ >>> -DEXAMPLES_CONNECTOR="wt;wthttp" /usr/lib/Wt/examples > > I think I was wrong here. > >> It looks like you did not clean the build directory (~/Wt) before trying to >> build the examples using the packages in the Wt PPA. Given that those are >> two different versions of Wt (3.1.2 vs 3.1.9), it spells disaster to me. >> Please do: >> $ cd ~/Wt >> $ rm -rf * > > I did this. > >> Then follow the instructions in README.Debian if you want to build from >> source, > > OK > >> or just run the examples in /usr/lib/Wt/examples. There is a script >> for each example (same name as the example but removing the .wt extension) >> that runs the example without your providing parameters. > > Great! > > Just following line worked flawlessly: > > tcc@tcc:~$ /usr/lib/Wt/examples/widgetgallery/widgetgallery > > Thanks a lot for your timely help. ------------------------------------------------------------------------------ EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev _______________________________________________ witty-interest mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/witty-interest
