SET (Boost_USE_STATIC_LIBS TRUE)

add that just before the call to FindPackage (boost... )

Mike

kafou nmento wrote:
I made the same but still getting the same errors
CMake Error at C:/Program Files/CMake 
2.6/share/cmake-2.6/Modules/FindBoost.cmake:620 (message):
Unable to find the requested Boost libraries.

Boost version: 1.36.0

Boost include path: C:/Program Files/boost/boost_1_36_0

The following Boost libraries could not be found:

boost_thread
boost_filesystem
boost_date_time
boost_program_options
boost_regex

No Boost libraries were found. You may need to set Boost_LIBRARYDIR to the
directory containing Boost libraries or BOOST_ROOT to the location of
Boost.
Call Stack (most recent call first):
CMakeLists.txt:68 (FIND_PACKAGE)
But Qt package is found with no problem. May be because I'm using MinGW generator. But I need it for Qt. And for libraries, I got same library names with .a extension and without -vc. For exemple libboost_filesystem-mt-gd-1_34_1.a instead of libboost_filesystem-vc71-mt-gd-1_34_1.lib


--- En date de : Jeu 11.12.08, Mike Jackson <[EMAIL PROTECTED]> a écrit :

De: Mike Jackson <[EMAIL PROTECTED]>
Objet: Re: [CMake] Fw : Linking boost failure
À: [EMAIL PROTECTED]
Cc: [email protected]
Date: Jeudi 11 Décembre 2008, 16h24

Then send along the output along with the name of one of the libraries from the MinGW boost installation.

Mike

kafou nmento wrote:
Ok but what if the generator used is MinGW


--- En date de : Jeu 11.12.08, Mike Jackson
<[EMAIL PROTECTED]> a écrit :
De: Mike Jackson <[EMAIL PROTECTED]>
Objet: Re: [CMake] Fw : Linking boost failure
À: "Cmake Mailing List" <[email protected]>
Date: Jeudi 11 Décembre 2008, 16h09

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
<[EMAIL PROTECTED]> a écrit :
De: Michael Jackson <[EMAIL PROTECTED]>
Objet: Re: [CMake] Fw : Linking boost failure
À: "Cmake Mailing List" <[email protected]>
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
<[EMAIL PROTECTED]>
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
[email protected]
http://www.cmake.org/mailman/listinfo/cmake
_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake



_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake





_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to