[CMake] CMake Digest, Vol 99, Issue 61

Andrew Maclean andrew.amaclean at gmail.com
Tue Jul 31 02:50:07 EDT 2012


Hi Christian,
   Mike's comment about setting BOOST_ROOT should work. If this doesn't,
make sure that your directories look like this:

C:\boost
C:\boost\include
C:\boost\include\boost-1_50
C:\boost\include\boost-1_50\boost
C:\boost\lib

With the above arrangement of directories,  FindBoost.cmake shouldn't need
any variables to be set by the user.
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.

Regards
   Andrew



> ---------- Forwarded message ----------
> From: Michael Jackson <mike.jackson at bluequartz.net>
> To: Christian Henning <chhenning at gmail.com>
> Cc: cmake at cmake.org
> Date: Mon, 30 Jul 2012 21:24:47 -0400
> Subject: Re: [CMake] Problems with FindBoost.cmake
> Where is your boost installed at? What operating system are you using? Is
> this boost precompiled or compiled by you?
> If you set BOOST_ROOT as a cmake variable and point it to the top level
> directory of your boost installation does that help?
>
> For example if you boost is installed in C:\Boost then set BOOST_ROOT to
> C:\Boost
>
> --
> Mike Jackson <www.bluequartz.net>
>
> On Jul 30, 2012, at 8:44 PM, Christian Henning wrote:
>
> > Hi there, I'm trying to figure why cmake cannot find my boost
> > installation. Actually, I'm working of some outdated boost's trunk
> > version ( 1.50 ). I'm setting various variables, like BOOST_ROOT,
> > BOOST_INCLUDEDIR, etc. But findBoost.cmake always comes up with
> > Boost_FOUND = FALSE.
> >
> > Here is the output I get from that module: ( a more read friendlier
> > can be found here: http://pastebin.com/raw.php?i=6tiRftVW )
> >
> > -- [
> C:/Users/chenning/cmake-2.8.8-win32-x86/share/cmake-2.8/Modules/FindBoost.cmake:526
> > ] Boost not in cache
> > -- [
> C:/Users/chenning/cmake-2.8.8-win32-x86/share/cmake-2.8/Modules/FindBoost.cmake:529
> > ] _boost_TEST_VERSIONS =
> >
> 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
> > -- [
> C:/Users/chenning/cmake-2.8.8-win32-x86/share/cmake-2.8/Modules/FindBoost.cmake:531
> > ] Boost_USE_MULTITHREADED = TRUE
> > -- [
> C:/Users/chenning/cmake-2.8.8-win32-x86/share/cmake-2.8/Modules/FindBoost.cmake:533
> > ] Boost_USE_STATIC_LIBS = on
> > -- [
> C:/Users/chenning/cmake-2.8.8-win32-x86/share/cmake-2.8/Modules/FindBoost.cmake:535
> > ] Boost_USE_STATIC_RUNTIME = on
> > -- [
> C:/Users/chenning/cmake-2.8.8-win32-x86/share/cmake-2.8/Modules/FindBoost.cmake:537
> > ] Boost_ADDITIONAL_VERSIONS = 1.50
> > -- [
> C:/Users/chenning/cmake-2.8.8-win32-x86/share/cmake-2.8/Modules/FindBoost.cmake:539
> > ] Boost_NO_SYSTEM_PATHS =
> > -- [
> C:/Users/chenning/cmake-2.8.8-win32-x86/share/cmake-2.8/Modules/FindBoost.cmake:607
> > ] Declared as CMake or Environmental Variables:
> > -- [
> C:/Users/chenning/cmake-2.8.8-win32-x86/share/cmake-2.8/Modules/FindBoost.cmake:609
> > ]   BOOST_ROOT = C:/boost
> > -- [
> C:/Users/chenning/cmake-2.8.8-win32-x86/share/cmake-2.8/Modules/FindBoost.cmake:611
> > ]   BOOST_INCLUDEDIR = c:\boost\boost
> > -- [
> C:/Users/chenning/cmake-2.8.8-win32-x86/share/cmake-2.8/Modules/FindBoost.cmake:613
> > ]   BOOST_LIBRARYDIR = C:\boost\stage\lib\x86
> > -- [
> C:/Users/chenning/cmake-2.8.8-win32-x86/share/cmake-2.8/Modules/FindBoost.cmake:615
> > ] _boost_TEST_VERSIONS =
> >
> 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
> > -- [
> C:/Users/chenning/cmake-2.8.8-win32-x86/share/cmake-2.8/Modules/FindBoost.cmake:668
> > ] Include debugging info:
> > -- [
> C:/Users/chenning/cmake-2.8.8-win32-x86/share/cmake-2.8/Modules/FindBoost.cmake:670
> > ]   _boost_INCLUDE_SEARCH_DIRS =
> >
> c:/boost/boost;C:/boost/include;C:/boost;C:/boost/include;C:/boost;C:\Program
> > Files (x86)/boost/include;C:\Program Files
> > (x86)/boost;/sw/local/include
> > -- [
> C:/Users/chenning/cmake-2.8.8-win32-x86/share/cmake-2.8/Modules/FindBoost.cmake:672
> > ]   _boost_PATH_SUFFIXES =
> >
> 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
> > 3_0;boost-1_33;boost_1_33
> > -- [
> C:/Users/chenning/cmake-2.8.8-win32-x86/share/cmake-2.8/Modules/FindBoost.cmake:697
> > ] location of version.hpp: C:/boost/boost/version.hpp
> > -- [
> C:/Users/chenning/cmake-2.8.8-win32-x86/share/cmake-2.8/Modules/FindBoost.cmake:716
> > ] version.hpp reveals boost 1.50.0
> > -- [
> C:/Users/chenning/cmake-2.8.8-win32-x86/share/cmake-2.8/Modules/FindBoost.cmake:809
> > ] guessed _boost_COMPILER = -vc100
> > -- [
> C:/Users/chenning/cmake-2.8.8-win32-x86/share/cmake-2.8/Modules/FindBoost.cmake:819
> > ] _boost_MULTITHREADED = -mt
> > -- [
> C:/Users/chenning/cmake-2.8.8-win32-x86/share/cmake-2.8/Modules/FindBoost.cmake:862
> > ] _boost_RELEASE_ABI_TAG = -s
> > -- [
> C:/Users/chenning/cmake-2.8.8-win32-x86/share/cmake-2.8/Modules/FindBoost.cmake:864
> > ] _boost_DEBUG_ABI_TAG = -sgd
> > -- [
> C:/Users/chenning/cmake-2.8.8-win32-x86/share/cmake-2.8/Modules/FindBoost.cmake:907
> > ] _boost_LIBRARY_SEARCH_DIRS =
> >
> 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
> > Files (x86)/boost/boost_1_50_0/lib;C:\Program Files
> > (x86)/boost/boost_1_50/lib;C:\Program Files (x86)/boost/lib;C:\Program
> > Files (x86)/boost;/sw/local/lib
> > -- [
> C:/Users/chenning/cmake-2.8.8-win32-x86/share/cmake-2.8/Modules/FindBoost.cmake:978
> > ] Searching for THREAD_LIBRARY_RELEASE:
> >
> libboost_thread-vc100-mt-s-1_50;libboost_thread-vc100-mt-s;libboost_thread-mt-s-1_50;libboost_thread-mt-s;libboost_thread
> > -- [
> C:/Users/chenning/cmake-2.8.8-win32-x86/share/cmake-2.8/Modules/FindBoost.cmake:1010
> > ] Searching for THREAD_LIBRARY_DEBUG:
> >
> 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
> > -- [
> C:/Users/chenning/cmake-2.8.8-win32-x86/share/cmake-2.8/Modules/FindBoost.cmake:1120
> > ] Boost_FOUND = FALSE
> >
> > Can someone spot the problem? For instance I'm not 100% sure what the
> > BOOST_LIBRARYDIR is suppose to point to? Is it the binaries or the cpp
> > files?
> >
> > Anyway, any help is very welcome,
> > Christian
> > --
> >
> > Powered by www.kitware.com
> >
> > Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
> >
> > Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
> >
> > Follow this link to subscribe/unsubscribe:
> > http://www.cmake.org/mailman/listinfo/cmake
>
>
> --
___________________________________________
Andrew J. P. Maclean

___________________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20120731/9dd6625b/attachment.htm>


More information about the CMake mailing list