Project

General

Profile

Wt 4.5.0 build fails with Boost error...

Added by Barca Roller about 3 years ago

When I try to build Wt 4.5.0 on Fedora 33 (with Boost 1.73), cmake/make fails at 69% with the following error:

make[2]: *** No rule to make target '/usr/lib64/libboost_thread.so.1.72.0', needed by 'src/libwt.so.4.5.0'.  Stop.
make[1]: *** [CMakeFiles/Makefile2:1856: src/CMakeFiles/wt.dir/all] Error 2
make: *** [Makefile:149: all] Error 2

Does anyone know why Wt 4.5.0 insists on using Boost 1.72 when Boost 1.73 is available?


Replies (2)

RE: Wt 4.5.0 build fails with Boost error... - Added by Korneel Dumon about 3 years ago

Seems like something is wrong with your build configuration. If you updated boost, it's possible that the cmake configuration still points to the old version.

You can try rerunning cmake and if that doesn't work try to delete your build directory entirely. This kind of problem is always a bit annoying.

RE: Wt 4.5.0 build fails with Boost error... - Added by Barca Roller about 3 years ago

Yes, I figured it out eventually. cmake had cached Boost 1.72 directories/files under /usr/lib64/cmake. Why it ignored the Boost 1.73 installation is beyond me; I would consider that a cmake bug. Anyway, I removed the Boost 1.72 directories/files under /usr/lib64/cmake and re-ran ' cmake .. ' from the Wt build directory and everything went smoothly.

    (1-2/2)