Hi Abhishek ,

 You should not use latest witty version , because it's still in unstable for 
production use. 

 Set all repositories as they were, and install   boost 1.35   and   witty  
from    package manager .
 It'll work without swet :) .
 
 I had a lot of headaches with  CMake when I first installed witty .   I would 
advise you not trying to compile examples with CMake , instead  , I would 
suggest you to write some sample code for yourself , or   to place example 
files  in some IDE ( KDevelop , Code::Blocks, CodeLite and SlickEdit worked  
for me from  the first try :)   )


Cheers!
Dushan





________________________________
From: very official <[email protected]>
To: [email protected]
Sent: Tuesday, September 8, 2009 5:10:22 PM
Subject: [Wt-interest] Building the witty examples in ubuntu 9.04


Hi everyone,
I installed witty in Ubuntu 9.04 using the instructions here.
http://www.webtoolkit.eu/wt/wiki/index.php/Installing_Wt_on_Ubuntu

The Cmake does not seem to recognise that I have installed the required boost 
libraries. Please help me.

I installed libraries like boost and asio using apt-get (I did not install from 
sources)

For latest version of witty, I added this to my /etc/apt/sources.list


deb http://ppa.launchpad.net/pgquiles/ubuntu jaunty main restricted universe 
multiverse

deb-src http://ppa.launchpad.net/pgquiles/ubuntu jaunty main restricted 
universe multiverse
Then did

sudo apt-get update
sudo aptitude install witty witty-dbg witty-dev witty-doc

Then I created a folder /home/barua/Projects/wtexamples

Inside this foloder, I ran
cmake -DWT_SOURCE_DIR=/usr/share/doc/witty-doc/ 
-DEXAMPLES_CONNECTOR="wt;wthttp" /usr/share/doc/witty-doc/examples

The output was this
*******************************************************************************************
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU

-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++

-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
CMake Warning (dev) in CMakeLists.txt:
  No cmake_minimum_required command is present.  A line of code such as

    cmake_minimum_required(VERSION 2.6)

  should be added at the top of the file.  The version specified may be lower
  if you wish to support older CMake versions for this project.  For more
  information run "cmake --help-policy CMP0000".

This warning is for project developers.  Use -Wno-dev to suppress it.

-- ** Filetreetable example needs boost_filesystem library... Skipping.
-- ** Form example needs boost_date_time library... Skipping.
-- ** Mandelbrot example needs gd library... Skipping.

-- ** Serverpush example needs boost with thread support... Skipping.
-- ** Style example needs gd library... Skipping.
-- ** hangman example needs mysql++-2.x library... Skipping.
-- ** Wt/Qt interopability example (wtwithqt) needs Qt4... Skipping.

-- Configuring done
-- Generating done
-- Build files have been written to: /home/barua/Projects/wtexamples
*****************************************************************************************************

I have boost library installed. Still, Cmake skipped.

As a proof, that I have boost libraries installed, I ran

dpkg --get-selections | grep boost

The output is

libboost-date-time1.35-dev                      install
libboost-date-time1.35.0                        install
libboost-filesystem1.35-dev                     install
libboost-filesystem1.35.0                       install
libboost-graph1.35-dev                          install

libboost-graph1.35.0                            install
libboost-iostreams1.35-dev                      install
libboost-iostreams1.35.0                        install
libboost-program-options1.35-dev                install
libboost-program-options1.35.0                  install
libboost-python1.35-dev                         install

libboost-python1.35.0                           install
libboost-regex1.35-dev                          install
libboost-regex1.35.0                            install
libboost-serialization1.35-dev                  install
libboost-serialization1.35.0                    install
libboost-signals1.35-dev                        install

libboost-signals1.35.0                          install
libboost-system1.35-dev                         install
libboost-system1.35.0                           install
libboost-test1.35-dev                           install
libboost-test1.35.0                             install
libboost-thread1.35-dev                         install
libboost-thread1.35.0                           install

libboost-wave1.35-dev                           install
libboost-wave1.35.0                             install
libboost1.35-dbg                                install
libboost1.35-dev                                install
libboost1.35-doc                                install


Please help me successfully build and run the apps.

Regards,
Abhishek Barua


      
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to