Support #2132
closedWT could not find boost libaries
0%
Description
Hi,
When I tried to install WT, cmake could not install WT.
- Environment
WT - 3.3.0
Boost - 1.53
cmake - 2.8.11.2
OS - Windows 7 64 bit.
VC - 9.0
I have got the error messages
CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:1106 (message):
Unable to find the requested Boost libraries.
Boost version: 1.53.0
Boost include path: C:/project9/boost/boost_1_53_0
The following Boost libraries could not be found:
boost_date_time
boost_regex
boost_program_options
boost_signals
boost_system
boost_filesystem
boost_thread
No Boost libraries were found. You may need to set BOOST_LIBRARYDIR to the
directory containing Boost libraries or BOOST_ROOT to the location of
Boost.
However, I think that I set properly BOOST_PREFIX value and absolutely, all boost library files are in the subdirectory (stage\lib).
I attached 'CMakeCache.txt' file and I hope I wiil get the answer to fix this problem.
Files
Updated by Wim Dumon over 10 years ago
- Status changed from New to Feedback
Hello,
I'm a bit confused by the path layout of boost in your screenshot.
When I install boost, my layout looks like this:
c:/Boost/
- include
- boost-1_54
- boost
- ... (boost header files)
- lib
- libboost_wserialization-vc110-mt-gd-1_54.lib
- ... (boost library files)
Cmake finds my boost install out of the box. I know boost can have different directory layouts too, I don't know if cmake can discover all of them.
It looks like boost did find your header files (Boost_INCLUDE_DIR is set), but not the libraries. I see you have a 'stage' directory which contains a 'lib' directory; that's a bit odd, I haven't seen that yet.
Read the comments in the file c:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake
. Especially by setting BOOST_INCLUDEDIR and BOOST_LIBRARYDIR, you may convince cmake to find your boost.
BR,
Wim.
Updated by Richard Moon over 10 years ago
- File cmake_log.txt cmake_log.txt added
Hello Wim,
I did what you suggested, but I still have the same problem.
- I see you have a 'stage' directory which contains a 'lib' directory; that's a bit odd, I haven't seen that yet.
- That's right. After building boost, there were no dll files. I fixed this problem and then I have got all dll files.
<!-- -->
- It looks like boost did find your header files (Boost_INCLUDE_DIR is set) / Especially by setting BOOST_INCLUDEDIR and BOOST_LIBRARYDIR, you may convince cmake to find your boost.
- Yes, cmake can find my header files but cmake still does not find a library directory even I set BOOST_INCLUDEDIR and BOOST_LIBRARYDIR.
I attached the log file from cmake.
Updated by Wim Dumon over 10 years ago
Start with the first two lines of your cmake output:
The C compiler identification is unknown
The CXX compiler identification is unknown
That's a problem since the boost libraries file names contain the compiler type.
Last time I saw this, it was caused by some antivirus program that would not allow the compiler to create .exe files. I believe there is a more detailed log file in your build directory somewhere that could give you extra clues about what went wrong.
BR,
Wim.
Updated by Richard Moon over 10 years ago
I set explicitly BOOST_COMPILER value as VC90 and then I can build WT.
Thanks for your help.
BR,