On Tue, Sep 8, 2009 at 5:10 PM, very official<[email protected]> wrote:
>
> 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
There is something very strange in what you send:
- Stock Ubuntu Jaunty brings Wt 2.2.1-1, depending on Boost 1.35.0
- My PPA contains Wt 2.2.4-2, depending on Boost 1.37.0.
If you added my PPA and upgraded witty, you should have Boost 1.35.0
runtime packages, Boost 1.37.0 runtime packages and Boost 1.37.0
development packages but no Boost 1.35.0 development packages. I can't
see any Boost 1.37.0 package in your system.
Run "dpkg --print-avail witty | grep Version" and make sure it is
"Version: 2.2.4-2~jaunty~pgquiles1" (i. e. the one from my PPA) not
"Version: 2.2.1-1" (i. e. the one from stock Jaunty)
That being said, even if you have Boost 1.37.0, it won't recognize
some Boost libraries. This is what I see in my Jaunty:
[...]
-- ** 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.
[...]
It's because Wt is doing it wrong and I did not notice when I packaged it.
To better understand what is wrong, see for example the top of the
examples/filetreetable/CMakeLists.txt:
IF(BOOST_FS_LIB_MT AND EXISTS ${BOOST_FS_LIB_MT})
SET(HAVE_FILETREE_BOOST true)
ELSE(BOOST_FS_LIB_MT AND EXISTS ${BOOST_FS_LIB_MT})
SET(HAVE_FILETREE_BOOST false)
ENDIF(BOOST_FS_LIB_MT AND EXISTS ${BOOST_FS_LIB_MT})
But there is no INCLUDE( WtFindAsio ) before checking for the
variables, so these variables are not set.
If you build the examples at the same time you build Wt, it will work
because CMake still has those variables in cache. But if you try to
build the examples afterwards, those variables have not been set, thus
building those examples fails. Oddly this means I now need to
redistribute WtFindAsio.txt, WtFindGd.txt and others in the witty-doc
package, which I dislike.
I will fix this bug and release witty 2.2.4-3 ASAP. In the meantime,
if you need to build those specific examples, you will need to build
Wt from sources. Sorry for the inconvenience and thanks for noticing
the bug.
Koen, Wim: I will send you a patch as soon as I have it. A slightly
modified patch will need to be applied in 3.0, too.
--
Pau Garcia i Quiles
http://www.elpauer.org
(Due to my workload, I may need 10 days to answer)
------------------------------------------------------------------------------
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