[CMake] Fw : Linking boost failure

Mike Jackson mike.jackson at bluequartz.net
Thu Dec 11 10:09:27 EST 2008


I just pulled down the BoostPro installer and installed the headers and 
a few libraries. I installed to C:\Developer\VS9\boost\boost_1_36_0.

I then set the environment variable BOOST_ROOT to 
C:\Developer\VS9\boost\boost_1_36_0

I ran CMake 2.6.2 from a Visual Studio command prompt and was able to 
find the libraries.

If you can add the following to your 
$CMAKE_INSTALL/share/cmake-2.6/modules/FindBoost.cmake at line 438:

     message(STATUS "Boost_LIB_VERSION: ${Boost_LIB_VERSION}")
     message(STATUS 
"${Boost_LIB_PREFIX}boost_${COMPONENT}${_boost_COMPILER}${_boost_MULTITHREADED}-${Boost_LIB_VERSION}")
     message(STATUS 
"${Boost_LIB_PREFIX}boost_${COMPONENT}${_boost_COMPILER}${_boost_MULTITHREADED}${_boost_STATIC_TAG}-${Boost_LIB_VERSION}")
     message(STATUS 
"${Boost_LIB_PREFIX}boost_${COMPONENT}${_boost_MULTITHREADED}")
     message(STATUS 
"${Boost_LIB_PREFIX}boost_${COMPONENT}${_boost_MULTITHREADED}${_boost_STATIC_TAG}")
     message(STATUS "${Boost_LIB_PREFIX}boost_${COMPONENT}")

(there are 5 separate lines there. You may have to unwrap them from the 
email)

Then run cmake again on a clean build directory and post the output.

I get the following:

-- Boost_LIB_VERSION: 1_36
-- boost_program_options-vc90-mt-1_36
-- boost_program_options-vc90-mt-1_36
-- boost_program_options-mt
-- boost_program_options-mt
-- boost_program_options

If your Boost_LIB_VERSION is empty then that is the first problem.

Mike

kafou nmento wrote:
> Here is one libboost_filesystem-vc71-mt-gd-1_34_1.lib
> 
> 
> --- En date de : Jeu 11.12.08, Michael Jackson <mike.jackson at bluequartz.net> a écrit :
> 
> De: Michael Jackson <mike.jackson at bluequartz.net>
> Objet: Re: [CMake] Fw : Linking boost failure
> À: "Cmake Mailing List" <cmake at cmake.org>
> Date: Jeudi 11 Décembre 2008, 15h00
> 
> Pick a library from the boost pro distribution and please send the entire name
> of the file. I have a few suspicions.
> 
> 
> ---
> Mike Jackson                 www.bluequartz.net
> 
> 
> 
> On Dec 11, 2008, at 8:36 AM, Philip Lowman wrote:
> 
>> On Thu, Dec 11, 2008 at 7:35 AM, kafou nmento <ngondorolf at yahoo.fr>
> wrote:
>> I'm still getting the same errors although I downloaded boost from
> BoostPro. The libraries are not found even if I set the BOOST_LIBRARYDIR to the
> path of boost libraries.
>> I can confirm this bug, I think.  When using the BoostPro installer (even
> with CMake 2.6.3 RC5) the FindBoost.cmake file will discover BOOST_INCLUDEDIR
> but will not find any libraries.
>> --Philip Lowman
>> _______________________________________________
>> CMake mailing list
>> CMake at cmake.org
>> http://www.cmake.org/mailman/listinfo/cmake
> 
> _______________________________________________
> CMake mailing list
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake
> 
> 
> 
>       


More information about the CMake mailing list