Hi,
On Sun, Jun 19, 2011 at 8:17 AM, H.S.Rai <[email protected]> wrote:
> On Ubuntu 10.10 - the Maverick Meerkat, I found Wt is there in
> universe repository as transition package, of version 3.1.2-2. When I
> install it, witty-doc is supposed to include examples.
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
> But I found
> /usr/share/doc/witty-doc/examples contain no example, though this
> folder is there and have three files namely changelog.Debian.gz,
> changelog.gz and copyright
>
>
witty-doc is a transitional package which contains nothing, it just pulls
libwt-doc in:
$ apt-cache show witty-doc
[...]
C++ library for webapps [doc]* (transition package)*
Wt (pronounced 'witty') is a C++ library and application server for
developing and deploying web applications. The API is widget-centric and
offers complete abstraction of any web-specific application details.
This package installs the documentation and examples.
*This is a dummy transition package and can be safely removed.*
> If I copy example from other installation, and try following commands:
>
> tcc@tcc:~/Wt$ cmake -DWT_SOURCE_DIR=/usr/share/doc/witty-doc/
> -DEXAMPLES_CONNECTOR="wt;wthttp" /usr/share/doc/witty-doc/examples >
> a.txt
>
Please check /usr/share/doc/libwt-doc/README.Debian for the instructions to
build the examples yourself:
--8<------
To build the examples, call CMake this way:
$ cmake -DWT_SOURCE_DIR=/usr/share/doc/libwt-doc/ \
-DEXAMPLES_CONNECTOR="wt;wthttp" -DCMAKE_BUILD_TYPE=Release \
/usr/share/doc/libwt-doc/examples
$ make
--8<------
(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
** Enabling multi threading.
> tcc@tcc:~/Wt$ make >> a.txt
>
> It gave following error:
>
> /usr/share/doc/witty-doc/examples/bobsmith/bobsmith.C:7: fatal error:
> Wt/WApplication: No such file or directory
> compilation terminated.
> make[2]: *** [bobsmith/CMakeFiles/bobsmith.wt.dir/bobsmith.o] Error 1
> make[1]: *** [bobsmith/CMakeFiles/bobsmith.wt.dir/all] Error 2
> make: *** [all] Error 2
> tcc@tcc:~/Wt$
>
> File a.txt is below signature.
>
> If I install using pre-built package (ref:
>
> 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
> -- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:366 ] boost 1.42.0
> is already in the cache. For debugging messages, please clear the
> cache.
> -- Found the Wt libraries at
>
> /usr/lib/libwt.so;/usr/lib/libwtext.so;/usr/lib/libwthttp.so;/usr/lib/libwtdbo.so;/usr/lib/libwtdbosqlite3.so;/usr/lib/libwtdbopostgres.so
> -- Found the Wt headers at /usr/include
> -- Found the Wt debug libraries at
>
> /usr/lib/libwt.so;/usr/lib/libwtext.so;/usr/lib/libwthttp.so;/usr/lib/libwtdbo.so;/usr/lib/libwtdbosqlite3.so;/usr/lib/libwtdbopostgres.so
> -- Found the Wt debug headers at /usr/include
> ** Enabling multi threading.
> CMake Error at feature/widgetset/CMakeLists.txt:12 (TARGET_LINK_LIBRARIES):
> Cannot specify link libraries for target "hello-widgetset.wt" which is not
> built by this project.
>
>
> -- Configuring incomplete, errors occurred!
> tcc@tcc:~/Wt$
>
>
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 *
Then follow the instructions in README.Debian if you want to build from
source, 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.
--
Pau Garcia i Quiles
http://www.elpauer.org
(Due to my workload, I may need 10 days to answer)
------------------------------------------------------------------------------
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