<div>I just tried the advise I was given, and the result was the following</div>
<div> </div>
<div>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>-- No Default.cmake file loaded, using default settings from config.cmake.template<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> 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> Boost include path: C:/local/boost/include/boost-1_39</div>
<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>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>- BOOST_ROOT = C:\local\boost</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> </div>
<div>I must missing some variable or setting, but I can't figure out what...</div>
<div> </div>
<div>Regards</div>
<div> </div>
<div>Martin Peter Christansen</div>
<div><br> </div>
<div class="gmail_quote">2009/11/12 Mike Jackson <span dir="ltr"><<a href="mailto:mike.jackson@bluequartz.net">mike.jackson@bluequartz.net</a>></span><br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">Usually when I build Boost on Windows I use the<br>--prefix=C:\Path\To\Boost and the "install" target instead of the<br>
stage target.<br><br>Then I set BOOST_ROOT to what ever I set the --prefix argument to.<br>That seems to always work.<br><br>And to try this out you will need a clean RobWork build directory. So,<br>to sum up, try rebuilding boost by including the --prefix=C:\.... and<br>
"install" arguments to bjam.<br><br>Then remove everything from your RobWork build directory and then<br>reconfigure RobWork using cmake.<br>_________________________________________________________<br>Mike Jackson <a href="mailto:mike.jackson@bluequartz.net">mike.jackson@bluequartz.net</a><br>
BlueQuartz Software <a href="http://www.bluequartz.net/" target="_blank">www.bluequartz.net</a><br>Principal Software Engineer Dayton, Ohio<br>
<div>
<div></div>
<div class="h5"><br><br><br><br>On Wed, Nov 11, 2009 at 7:41 PM, Martin Peter Christiansen<br><<a href="mailto:martin.p.christiansen@gmail.com">martin.p.christiansen@gmail.com</a>> wrote:<br>> For the last day or so I have tried to compile a project(RobWork) for Visual<br>
> Studio 2008 using Cmake.<br>><br>> But my problem is that Cmake claims i can't find Boost dependencies.<br>><br>><br>><br>> I have been googling the problem on the net, but the only answer I could<br>
> find was that FindBost.cmake was the problem, but not how to solve it.<br>><br>><br>><br>> When i run the project (RobWork) i get the following error:<br>><br>><br>><br>> C:\Documents and Settings\Martin>cd<br>
> c:\local\workspace\RobWork\build\release<br>><br>> C:\local\workspace\RobWork\build\release>cmake -G "Visual Studio 9 2008"<br>> -DCMAKE_BUILD_TYPE=Release<br>> ../..<br>> -- RobWork version 0.4.0<br>
> -- Build configuration: Release<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.<br>><br>> The included script<br>><br>> C:/local/workspace/RobWork/build/ProjectSetup.cmake<br>><br>> 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.<br>><br>> -- RobWork ROOT dir: C:/local/workspace/RobWork<br>> CMake Error at C:/Programmer/CMake<br>
> 2.8/share/cmake-2.8/Modules/FindBoost.cmake:879 (message):<br>> Unable to find the requested Boost libraries.<br>><br>> Boost version: 1.39.0<br>><br>> Boost include path: C:/local/boost_1_39_0<br>
><br>> The following Boost libraries could not be found:<br>><br>> boost_thread<br>><br>> No Boost libraries were found. You may need to set Boost_LIBRARYDIR to<br>> 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)<br>><br>><br>><br>> - I have successfully compiled Boost 1.39.0 to Visual studio 2008, so i get<br>
> lib files like "libboost_date_time-vc90-mt-1_39.lib" in<br>> <boost-root>/stage/lib.<br>><br>><br>><br>> - Boost have been placed in “C:\local\boost_1_39_0”<br>><br>><br>><br>> - The following environment variables has been added to Windows BOOST_ROOT =<br>
> C:\local\boost_1_39_0 and BOOST_LIBRARYDIR = $BOOST_ROOT\stage\lib<br>><br>><br>><br>> - Both Cmake 2.6 and 2.8r2 have been used to compile the project, with no<br>> success.<br>><br>><br>><br>
><br>><br>> What I need is a solution, which can help me compile this project using<br>> Visual Studio 2008<br>><br>> Is there some way I can setup FindBoost.cmake, so it will accept and boost<br>> correctly????<br>
><br>><br>><br>> Regards<br>><br>><br>><br>> Martin Peter Christiansen<br>><br>><br>><br></div></div>> _______________________________________________<br>> Powered by <a href="http://www.kitware.com/" target="_blank">www.kitware.com</a><br>
><br>> Visit other Kitware open-source projects at<br>> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>><br>> Please keep messages on-topic and check the CMake FAQ at:<br>
> <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>><br>> Follow this link to subscribe/unsubscribe:<br>> <a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
><br></blockquote></div><br>