<div class="gmail_quote"><div>Hi Christian,</div><div> Mike's comment about setting BOOST_ROOT should work. If this doesn't, make sure that your directories look like this:</div><div><br></div><div>C:\boost</div>
<div>C:\boost\include</div><div>C:\boost\include\boost-1_50</div><div>C:\boost\include\boost-1_50\boost</div><div>C:\boost\lib</div><div><br></div><div>With the above arrangement of directories, FindBoost.cmake shouldn't need any variables to be set by the user.</div>
<div>The problem is often that the pecompiled boost libraries do not use C:\boost\lib but instead use something like C:\boost\lib64 or C:\boost\lib32.</div><div><br></div><div>Regards</div><div> Andrew</div><div><br></div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">---------- Forwarded message ----------<br>From: Michael Jackson <<a href="mailto:mike.jackson@bluequartz.net">mike.jackson@bluequartz.net</a>><br>
To: Christian Henning <<a href="mailto:chhenning@gmail.com">chhenning@gmail.com</a>><br>Cc: <a href="mailto:cmake@cmake.org">cmake@cmake.org</a><br>Date: Mon, 30 Jul 2012 21:24:47 -0400<br>Subject: Re: [CMake] Problems with FindBoost.cmake<br>
Where is your boost installed at? What operating system are you using? Is this boost precompiled or compiled by you?<br>
If you set BOOST_ROOT as a cmake variable and point it to the top level directory of your boost installation does that help?<br>
<br>
For example if you boost is installed in C:\Boost then set BOOST_ROOT to C:\Boost<br>
<br>
--<br>
Mike Jackson <<a href="http://www.bluequartz.net" target="_blank">www.bluequartz.net</a>><br>
<br>
On Jul 30, 2012, at 8:44 PM, Christian Henning wrote:<br>
<br>
> Hi there, I'm trying to figure why cmake cannot find my boost<br>
> installation. Actually, I'm working of some outdated boost's trunk<br>
> version ( 1.50 ). I'm setting various variables, like BOOST_ROOT,<br>
> BOOST_INCLUDEDIR, etc. But findBoost.cmake always comes up with<br>
> Boost_FOUND = FALSE.<br>
><br>
> Here is the output I get from that module: ( a more read friendlier<br>
> can be found here: <a href="http://pastebin.com/raw.php?i=6tiRftVW" target="_blank">http://pastebin.com/raw.php?i=6tiRftVW</a> )<br>
><br>
> -- [ C:/Users/chenning/cmake-2.8.8-win32-x86/share/cmake-2.8/Modules/FindBoost.cmake:526<br>
> ] Boost not in cache<br>
> -- [ C:/Users/chenning/cmake-2.8.8-win32-x86/share/cmake-2.8/Modules/FindBoost.cmake:529<br>
> ] _boost_TEST_VERSIONS =<br>
> 1.50;1.50.0;1.50;1.49.0;1.49;1.48.0;1.48;1.47.0;1.47;1.46.1;1.46.0;1.46;1.45.0;1.45;1.44.0;1.44;1.43.0;1.43;1.42.0;1.42;1.41.0;1.41;1.40.0;1.40;1.39.0;1.39;1.38.0;1.38;1.37.0;1.37;1.36.1;1.36.0;1.36;1.35.1;1.35.0;1.35;1.34.1;1.34.0;1.34;1.33.1;1.33.0;1.33<br>
> -- [ C:/Users/chenning/cmake-2.8.8-win32-x86/share/cmake-2.8/Modules/FindBoost.cmake:531<br>
> ] Boost_USE_MULTITHREADED = TRUE<br>
> -- [ C:/Users/chenning/cmake-2.8.8-win32-x86/share/cmake-2.8/Modules/FindBoost.cmake:533<br>
> ] Boost_USE_STATIC_LIBS = on<br>
> -- [ C:/Users/chenning/cmake-2.8.8-win32-x86/share/cmake-2.8/Modules/FindBoost.cmake:535<br>
> ] Boost_USE_STATIC_RUNTIME = on<br>
> -- [ C:/Users/chenning/cmake-2.8.8-win32-x86/share/cmake-2.8/Modules/FindBoost.cmake:537<br>
> ] Boost_ADDITIONAL_VERSIONS = 1.50<br>
> -- [ C:/Users/chenning/cmake-2.8.8-win32-x86/share/cmake-2.8/Modules/FindBoost.cmake:539<br>
> ] Boost_NO_SYSTEM_PATHS =<br>
> -- [ C:/Users/chenning/cmake-2.8.8-win32-x86/share/cmake-2.8/Modules/FindBoost.cmake:607<br>
> ] Declared as CMake or Environmental Variables:<br>
> -- [ C:/Users/chenning/cmake-2.8.8-win32-x86/share/cmake-2.8/Modules/FindBoost.cmake:609<br>
> ] BOOST_ROOT = C:/boost<br>
> -- [ C:/Users/chenning/cmake-2.8.8-win32-x86/share/cmake-2.8/Modules/FindBoost.cmake:611<br>
> ] BOOST_INCLUDEDIR = c:\boost\boost<br>
> -- [ C:/Users/chenning/cmake-2.8.8-win32-x86/share/cmake-2.8/Modules/FindBoost.cmake:613<br>
> ] BOOST_LIBRARYDIR = C:\boost\stage\lib\x86<br>
> -- [ C:/Users/chenning/cmake-2.8.8-win32-x86/share/cmake-2.8/Modules/FindBoost.cmake:615<br>
> ] _boost_TEST_VERSIONS =<br>
> 1.50;1.50.0;1.50;1.49.0;1.49;1.48.0;1.48;1.47.0;1.47;1.46.1;1.46.0;1.46;1.45.0;1.45;1.44.0;1.44;1.43.0;1.43;1.42.0;1.42;1.41.0;1.41;1.40.0;1.40;1.39.0;1.39;1.38.0;1.38;1.37.0;1.37;1.36.1;1.36.0;1.36;1.35.1;1.35.0;1.35;1.34.1;1.34.0;1.34;1.33.1;1.33.0;1.33<br>
> -- [ C:/Users/chenning/cmake-2.8.8-win32-x86/share/cmake-2.8/Modules/FindBoost.cmake:668<br>
> ] Include debugging info:<br>
> -- [ C:/Users/chenning/cmake-2.8.8-win32-x86/share/cmake-2.8/Modules/FindBoost.cmake:670<br>
> ] _boost_INCLUDE_SEARCH_DIRS =<br>
> c:/boost/boost;C:/boost/include;C:/boost;C:/boost/include;C:/boost;C:\Program<br>
> Files (x86)/boost/include;C:\Program Files<br>
> (x86)/boost;/sw/local/include<br>
> -- [ C:/Users/chenning/cmake-2.8.8-win32-x86/share/cmake-2.8/Modules/FindBoost.cmake:672<br>
> ] _boost_PATH_SUFFIXES =<br>
> boost-1_50;boost_1_50;boost-1_50_0;boost_1_50_0;boost-1_50;boost_1_50;boost-1_49_0;boost_1_49_0;boost-1_49;boost_1_49;boost-1_48_0;boost_1_48_0;boost-1_48;boost_1_48;boost-1_47_0;boost_1_47_0;boost-1_47;boost_1_47;boost-1_46_1;boost_1_46_1;boost-1_46_0;boost_1_46_0;boost-1_46;boost_1_46;boost-1_45_0;boost_1_45_0;boost-1_45;boost_1_45;boost-1_44_0;boost_1_44_0;boost-1_44;boost_1_44;boost-1_43_0;boost_1_43_0;boost-1_43;boost_1_43;boost-1_42_0;boost_1_42_0;boost-1_42;boost_1_42;boost-1_41_0;boost_1_41_0;boost-1_41;boost_1_41;boost-1_40_0;boost_1_40_0;boost-1_40;boost_1_40;boost-1_39_0;boost_1_39_0;boost-1_39;boost_1_39;boost-1_38_0;boost_1_38_0;boost-1_38;boost_1_38;boost-1_37_0;boost_1_37_0;boost-1_37;boost_1_37;boost-1_36_1;boost_1_36_1;boost-1_36_0;boost_1_36_0;boost-1_36;boost_1_36;boost-1_35_1;boost_1_35_1;boost-1_35_0;boost_1_35_0;boost-1_35;boost_1_35;boost-1_34_1;boost_1_34_1;boost-1_34_0;boost_1_34_0;boost-1_34;boost_1_34;boost-1_33_1;boost_1_33_1;boost-1_33_0;boost_1_3<br>
> 3_0;boost-1_33;boost_1_33<br>
> -- [ C:/Users/chenning/cmake-2.8.8-win32-x86/share/cmake-2.8/Modules/FindBoost.cmake:697<br>
> ] location of version.hpp: C:/boost/boost/version.hpp<br>
> -- [ C:/Users/chenning/cmake-2.8.8-win32-x86/share/cmake-2.8/Modules/FindBoost.cmake:716<br>
> ] version.hpp reveals boost 1.50.0<br>
> -- [ C:/Users/chenning/cmake-2.8.8-win32-x86/share/cmake-2.8/Modules/FindBoost.cmake:809<br>
> ] guessed _boost_COMPILER = -vc100<br>
> -- [ C:/Users/chenning/cmake-2.8.8-win32-x86/share/cmake-2.8/Modules/FindBoost.cmake:819<br>
> ] _boost_MULTITHREADED = -mt<br>
> -- [ C:/Users/chenning/cmake-2.8.8-win32-x86/share/cmake-2.8/Modules/FindBoost.cmake:862<br>
> ] _boost_RELEASE_ABI_TAG = -s<br>
> -- [ C:/Users/chenning/cmake-2.8.8-win32-x86/share/cmake-2.8/Modules/FindBoost.cmake:864<br>
> ] _boost_DEBUG_ABI_TAG = -sgd<br>
> -- [ C:/Users/chenning/cmake-2.8.8-win32-x86/share/cmake-2.8/Modules/FindBoost.cmake:907<br>
> ] _boost_LIBRARY_SEARCH_DIRS =<br>
> C:/boost/stage/lib/x86;C:/boost/lib;C:/boost/stage/lib;C:/boost/lib;C:/boost/../lib;C:/boost/stage/lib;C:/boost/lib;C:/boost;C:\Program<br>
> Files (x86)/boost/boost_1_50_0/lib;C:\Program Files<br>
> (x86)/boost/boost_1_50/lib;C:\Program Files (x86)/boost/lib;C:\Program<br>
> Files (x86)/boost;/sw/local/lib<br>
> -- [ C:/Users/chenning/cmake-2.8.8-win32-x86/share/cmake-2.8/Modules/FindBoost.cmake:978<br>
> ] Searching for THREAD_LIBRARY_RELEASE:<br>
> libboost_thread-vc100-mt-s-1_50;libboost_thread-vc100-mt-s;libboost_thread-mt-s-1_50;libboost_thread-mt-s;libboost_thread<br>
> -- [ C:/Users/chenning/cmake-2.8.8-win32-x86/share/cmake-2.8/Modules/FindBoost.cmake:1010<br>
> ] Searching for THREAD_LIBRARY_DEBUG:<br>
> libboost_thread-vc100-mt-sgd-1_50;libboost_thread-vc100-mt-sgd;libboost_thread-mt-sgd-1_50;libboost_thread-mt-sgd;libboost_thread-mt;libboost_thread<br>
> -- [ C:/Users/chenning/cmake-2.8.8-win32-x86/share/cmake-2.8/Modules/FindBoost.cmake:1120<br>
> ] Boost_FOUND = FALSE<br>
><br>
> Can someone spot the problem? For instance I'm not 100% sure what the<br>
> BOOST_LIBRARYDIR is suppose to point to? Is it the binaries or the cpp<br>
> files?<br>
><br>
> Anyway, any help is very welcome,<br>
> Christian<br>
> --<br>
><br>
> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at <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: <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>
<br></blockquote></div>-- <br>___________________________________________<br>Andrew J. P. Maclean<br><br>___________________________________________<br>