Project

General

Profile

wt-3.0.0 build issues

Added by jupiter hce over 14 years ago

Hi,

I've just downloaded wt-3.0.0.tar.gz and I am building and installing it in a linux box. My boost and mysql are all installed in /opt/tool directory. According to the document, I was running following command in /opt/tool/Wt/wt-3.0.0/Build:

cmake BOOST_DIR=/opt/tool/Boost/boost_1_41_0 MYSQL_DIR=/opt/tool/MySql/mysql--3.0.9 ../

It could not find mysql, I guess the "MYSQL_DIR=" was wrong:

hangman example needs mysql--2.x library... Skipping.

Then, during "make", it could not find boost files:

error: boost/intrusive/list.hpp: No such file or directory.

What are the right DIR=value should be specified in cmake command?

Thank you.

Kind regards,

jupiter


Replies (9)

RE: wt-3.0.0 build issues - Added by Koen Deforche over 14 years ago

Hey Jupiter,

the BOOST_DIR should be the directory which contains the "lib/" and "include/boost_1_xx" folders containing the installed boost libraries and include files.

Regards,

koen

RE: wt-3.0.0 build issues - Added by Randall McMurphy over 11 years ago

Hi all,

I have the same problem as Jupiter and are not able to find a workaround or fix it.

I am using Centos 5.6 with boost libraries 1.33 and header files installed with yum. I tried to build and install the boost libs 1.51 but was unlucky with many errors during ./b2 install, so I gave up.

Following the INSTALL file I run "cmake -DBOOST_DIR=/usr/ ../" and it fails. When I try a second time it gives "Build files have been written to: ../wt-3.2.2/build"

The "make" ends up with "/wt-3.2.2/src/Wt/WSignal:15:36: error: boost/intrusive/list.hpp: No such file or directory"

In the boost libs 1.33, which yum installs I do not have a "intrusive" directory but in the version 1.51 I downloaded I see the folder.

Does anyone have an idea?

Thank you.

RE: wt-3.0.0 build issues - Added by Wim Dumon over 11 years ago

Define WT_NO_BOOST_INTRUSIVE to eliminate the dependency on intrusive list.

But I don't think this will be your only issue - you really need a more recent boost version. See http://www.webtoolkit.eu/wt/download under System Requirements.

BR,

Wim.

RE: wt-3.0.0 build issues - Added by Randall McMurphy over 11 years ago

Hello Wim,

ok, I decided to change my entire OS to Fedora 14, which provides Boost 1.44.0 per repository.

Now the cmake for wt-3.2.2-p1 works fine but make returns an error.

[  0%] Building CXX object src/CMakeFiles/wt.dir/Wt/WApplication.o
cd /home/wt-3.2.2-p1/build/src && /usr/bin/c++   -Dwt_EXPORTS -DWT_WITH_OLD_INTE   RNALPATH_API -DWT_THREADED -D_REENTRANT -DBOOST_SPIRIT_THREADSAFE -DWT_BUILDING    -O2 -g -fPIC -I/home/wt-3.2.2-p1/build -I/home/wt-3.2.2-p1/src/web -I/home/wt-3.   2.2-p1/src -I/home/wt-3.2.2-p1/build/src -I/home/wt-3.2.2-p1/src/Wt/Dbo/backend/   amalgamation   -o CMakeFiles/wt.dir/Wt/WApplication.o -c /home/wt-3.2.2-p1/src/W   t/WApplication.C
c++: Internal error: Killed (program cc1plus)
Please submit a full bug report.
See <http://bugzilla.redhat.com/bugzilla> for instructions.
make[2]: *** [src/CMakeFiles/wt.dir/Wt/WApplication.o] Error 1
make[2]: Leaving directory `/home/wt-3.2.2-p1/build'
make[1]: *** [src/CMakeFiles/wt.dir/all] Error 2
make[1]: Leaving directory `/home/wt-3.2.2-p1/build'
make: *** [all] Error 2

Searching for

 c++: Internal error: Killed (program cc1plus) 

returns, that people might have not enough RAM but I doubt that.

Does anyone have an idea?

Thanks and a nice day,

Nils

RE: wt-3.0.0 build issues - Added by Randall McMurphy over 11 years ago

edit

$ free

returns

 total       used       free     shared    buffers     cached
Mem:        262144      12656     249488          0        160          0
-/+ buffers/cache:      12496     249648
Swap:            0          0          0

RE: wt-3.0.0 build issues - Added by Randall McMurphy over 11 years ago

Sorry for answering 3 times.

I was just following

 $ top 

and I could see the free memory dropping down to 80k when making

Building CXX object src/CMakeFiles/wt.dir/Wt/WApplication.o

So the next issue I have is not enough memory or is there anything I can do in this case?

Thanks again,

Nils

RE: wt-3.0.0 build issues - Added by Wim Dumon over 11 years ago

Some files of Wt will take 100MB of ram (or even more) to compile. It's likely that with this setup, you won't be able to compile Wt (12MB < 100MB). If it's a VM, give it more RAM; otherwise kill processes or enable swap.

From what you posted, it's more likely that your system does run out or RAM than you hit an actual compiler bug.

BR,

Wim.

RE: wt-3.0.0 build issues - Added by Randall McMurphy over 11 years ago

Hello Wim,

yes it is a VM. How much RAM do you suggest to have at least?

Thank you,

Nils

RE: wt-3.0.0 build issues - Added by Wim Dumon over 11 years ago

We regularly compile on VMs with 2GB RAM. I don't know how low you can go.

BR,

Wim.

    (1-9/9)