On Sun, Oct 31, 2010 at 5:55 PM, John Robson <[email protected]> wrote: > Hi, > > I clone last Wt in git repository and when I try build, both (examples > & wt) return errors. > > Error build Examples: > > j...@note:~/Tmp/examples$ make > -- [ /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. > ** Enabling multi threading. > -- ** hangman example needs mysql++-2.x library... Skipping. > -- ** Mandelbrot example needs gd library... Skipping. > -- ** Style example needs gd library... Skipping. > -- Configuring done > -- Generating done > -- Build files have been written to: /home/john/Tmp/examples > Scanning dependencies of target blog.wt > [ 1%] Building CXX object blog/CMakeFiles/blog.wt.dir/model/Post.o > [ 1%] Building CXX object blog/CMakeFiles/blog.wt.dir/model/Comment.o > [ 2%] Building CXX object blog/CMakeFiles/blog.wt.dir/model/User.o > [ 3%] Building CXX object blog/CMakeFiles/blog.wt.dir/model/Tag.o > [ 4%] Building CXX object blog/CMakeFiles/blog.wt.dir/view/PostView.o > [ 5%] Building CXX object blog/CMakeFiles/blog.wt.dir/view/CommentView.o > [ 6%] Building CXX object blog/CMakeFiles/blog.wt.dir/view/BlogView.o > [ 7%] Building CXX object blog/CMakeFiles/blog.wt.dir/asciidoc/asciidoc.o > [ 8%] Building CXX object blog/CMakeFiles/blog.wt.dir/BlogSession.o > [ 9%] Building CXX object blog/CMakeFiles/blog.wt.dir/BlogRSSFeed.o > [ 10%] Building CXX object blog/CMakeFiles/blog.wt.dir/blog.o > Linking CXX executable blog.wt > /usr/bin/ld: cannot find -lwtdbosqlite3 > /usr/bin/ld: cannot find -lwtdbosqlite3 > collect2: ld returned 1 exit status > make[2]: ** [blog/blog.wt] Erro 1 > make[1]: ** [blog/CMakeFiles/blog.wt.dir/all] Erro 2 > make: ** [all] Erro 2 > j...@note:~/Tmp/examples$
Looks llike you are using Ubuntu Maverick You are missing the Wt::Dbo sqlite3 backend. If you installed from packages, you need to install libwtdbosqlite-dev. If you built Wt yourself, install libsqlite3-dev, rerun CMake and build. > > Error build Wt: > > j...@note:~/Tmp/wt/build$ make > -- [ /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. > ** Enabling multi threading. > -- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) > ** Disabling PDF support (WPdfImage): requires libharu. > Indicate the location of your haru library using -DHARU_PREFIX=... > ** Disabling raster image support (WRasterImage): requires graphicsmagick. > Indicate the location of your graphicsmagick library using -DGM_PREFIX=... > ** Wt::Dbo: building SQLite3 backend. > ** Wt::Dbo: not building Postgres backend. > Indicate the location of your postgres installation using > -DPOSTGRES_PREFIX=... > ** Disabling ISAPI. > ** Enabling FastCGI connector. > ** Enabling built-in httpd. > -- ** Not building hangman example: requires mysql++ > -- Indicate the path of your mysql++-2.x installation using > -DMYSQL_PREFIX=... > -- ** Not building mandelbrot example: requires Wt::WRasterImage. > -- ** Not building style example: requires WRasterImage. > -- Configuring done > -- Generating done > -- Build files have been written to: /home/john/Tmp/wt/build > [ 0%] Generating JQuery_js.C > [ 0%] Generating Plain_html.C > [ 1%] Generating Boot_html.C > [ 1%] Generating Hybrid_html.C > [ 1%] Generating Wt_js.C > [ 1%] Generating WtMessages_xml.C > [ 2%] Generating CommAjax_js.C > [ 2%] Generating CommScript_js.C > Scanning dependencies of target wt > [ 2%] Building CXX object src/CMakeFiles/wt.dir/Wt/SizeHandle.o > [ 2%] Building CXX object src/CMakeFiles/wt.dir/Wt/StdGridLayoutImpl.o > [ 2%] Building CXX object src/CMakeFiles/wt.dir/Wt/StdLayoutImpl.o > [ 4%] Building CXX object src/CMakeFiles/wt.dir/Wt/StdLayoutItemImpl.o > [ 4%] Building CXX object src/CMakeFiles/wt.dir/Wt/StdWidgetItemImpl.o > [ 4%] Building CXX object src/CMakeFiles/wt.dir/Wt/WAbstractArea.o > In member function ?void Wt::WAbstractArea::setResource(Wt::WResource*)?: > cc1plus: internal compiler error: Falha de segmentação > Please submit a full bug report, > with preprocessed source if appropriate. > See <file:///usr/share/doc/gcc-4.4/README.Bugs> for instructions. > make[2]: ** [src/CMakeFiles/wt.dir/Wt/WAbstractArea.o] Erro 1 > make[1]: ** [src/CMakeFiles/wt.dir/all] Erro 2 > make: ** [all] Erro 2 > j...@note:~/Tmp/wt/build$ This is a known bug in gcc 4.4 in Maverick, introduced by a Ubuntu-specific patch. See https://bugs.launchpad.net/ubuntu/+source/gcc-4.4/+bug/647597 AFAIK the patch has not landed in the Ubuntu repository yet. For now, build with another version of gcc, for instance 4.5: cmake -DCMAKE_CXX_COMPILER=g++-4.5 -DCMAKE_CC_COMPILER=gcc-4.5 /path/to/wt/sources -- Pau Garcia i Quiles http://www.elpauer.org (Due to my workload, I may need 10 days to answer) ------------------------------------------------------------------------------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev _______________________________________________ witty-interest mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/witty-interest
