<div class="gmail_quote">On Thu, Nov 12, 2009 at 5:43 AM, Martin Peter Christiansen <span dir="ltr"><<a href="mailto:martin.p.christiansen@gmail.com">martin.p.christiansen@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>I just tried the advise I was given, and the result was the following</div>
<div> </div>
<div><div class="im">C:\local\workspace\RobWork\build\release>cmake -G "Visual Studio 9 2008" -DCMAKE_BUILD_TYPE=Release ../..<br>-- RobWork version 0.4.0<br>-- Build configuration: Release<br></div>-- No Default.cmake file loaded, using default settings from config.cmake.template<div class="im">
<br>
CMake Warning (dev) at CMakeLists.txt:20 (INCLUDE):<br> Policy CMP0011 is not set: Included scripts do automatic cmake_policy PUSH<br> and POP. Run "cmake --help-policy CMP0011" for policy details. Use the<br>
cmake_policy command to set the policy and suppress this warning.</div></div><div class="im">
<div> The included script</div>
<div> C:/local/workspace/RobWork/build/ProjectSetup.cmake</div>
<div> affects policy settings. CMake is implying the NO_POLICY_SCOPE option for<br> compatibility, so the effects are applied to the including context.<br>This warning is for project developers. Use -Wno-dev to suppress it.</div>
<div>-- RobWork ROOT dir: C:/local/workspace/RobWork<br>CMake Error at C:/Programmer/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:879 (message):<br> Unable to find the requested Boost libraries.</div>
<div> Boost version: 1.39.0</div>
</div><div> Boost include path: C:/local/boost/include/boost-1_39</div><div class="im">
<div> The following Boost libraries could not be found:</div>
<div> boost_thread</div>
<div> No Boost libraries were found. You may need to set Boost_LIBRARYDIR to the<br> directory containing Boost libraries or BOOST_ROOT to the location of<br> Boost.<br>Call Stack (most recent call first):<br> build/depends.cmake:8 (FIND_PACKAGE)<br>
build/RobWorkSetup.cmake:32 (INCLUDE)<br> CMakeLists.txt:36 (INCLUDE)</div>
<div> </div>
<div> </div>
</div><div>When I was building boost this time, I did ran the following commands: </div>
<div>- "C:\Downloads\boost_1_39_0>bjam.exe --prefix=C:\local\boost -toolset=msvs define="_SECURE_SCL=0" define="_HAS_ITERATOR_DEBUGGING=0" -d+2"</div>
<div>- "C:\Downloads\boost_1_39_0>bjam.exe install --prefix=C:\local\boost"</div>
<div> </div>
<div>I removed all the old enviromental variables for boost and created the following variable</div><div class="im">
<div>- BOOST_ROOT = C:\local\boost</div>
<div> </div>
</div><div>In "C:\local\boost\lib" I have </div>
<div>- libboost_thread-vc90-mt.lib</div>
<div>- libboost_thread-vc90-mt-gd-1_39.lib</div>
<div>- libboost_thread-vc90-mt-gd.lib</div>
<div> </div>
<div>In "C:\local\boost\include\boost-1_39" I have</div>
<div> - A folder named "boost", but no subfolder or file called "boost_thread"</div>
<div> <br> </div>
<div></div></blockquote><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div>I must missing some variable or setting, but I can't figure out what...</div>
</blockquote><div><br>Your directory structure sounds good to me. <br>
<br>Here are a couple of suggestions...<br><br>Check the documentation to FindBoost.cmake. Have you specified Boost_USE_STATIC_LIBS and Boost_USE_MULTITHREADED appropriately? These affect which libraries are detected and certain ones like boost_thread can't be found if Boost_USE_MULTITHREADED is not true.<br>
<br>If this doesn't help, delete your build tree, then add this line prior to calling find_package(Boost...)<br><br>set(Boost_DEBUG TRUE)<br><br>Paste the output here and the relevant portions of your CMakeLists.txt when you call find_package(Boost...).<br>
</div></div><br clear="all"><br>-- <br>Philip Lowman<br>