CMake cannot find boost libraries

I keep getting this error when I attempt to run Cmake to setup up Orocos RTT on Windows 7 x64 Using VS2010 (msvc-10.0).


CMake Error at config/FindBoost.cmake:881 (message):
  Unable to find the requested Boost libraries.

  Boost version: 1.36.0

  Boost include path: C:/Boost/include/boost-1_36

  The following Boost libraries could not be found:

          boost_unit_test_framework

The first time I tried it was with Boost 1.43 because that was the latest version. Installed the binary distribution, got this error. Set BOOST_LIBRARYDIR, set BOOST_INCLUDEDIR, did all those other things that the CMake script suggests. No difference. Set the BOOST_ADDITIONAL_VERSIONS to include 1.43. Didn't help. Set BOOST_COMPILER_VERSION to -vc100 to ensure that it was looking for the right prefixes. Didn't help.

SO I downloaded Boost 1.36 because that's in the list of versions in FindBoost.cmake. Cant compile it outright using VS2010 because its build files don't recognize msvc-v10.0 Also, the bootstrap file is missing. Downloaded bjam.exe from the boost site and translplanted the msvc.jam file from boost 1.43 so it will recognize my compiler. So, boost 1.36 compiles and installs. I run CMake, and get the same error.

I am colossally unimpressed right now. I have tried moving the boost libs and includes, renaming the folder so it's the standard C:\Boost, as well as C:\boost C:\boost_1_36 and everything else I can think of.

the unit test framework libraries are currently present at the following locations:

C:\Boost\lib\boost_unit_test_framework-vc100-mt.lib C:\Boost\lib\boost_unit_test_framework-vc100-mt-1_36.dll C:\Boost\lib\boost_unit_test_framework-vc100-mt-1_36.lib C:\Boost\lib\boost_unit_test_framework-vc100-mt-gd.lib C:\Boost\lib\boost_unit_test_framework-vc100-mt-gd-1_36.dll C:\Boost\lib\boost_unit_test_framework-vc100-mt-gd-1_36.lib

The headers are currently present at: C:\Boost\include\boost-1_36\boost\test\unit_test.hpp --blah blah all the other headers...

Help?

Thanks.

CMake cannot find boost libraries

On Tue, Aug 10, 2010 at 7:56 PM, <matt [..] ...> wrote:
> I keep getting this error when I attempt to run Cmake to setup up Orocos RTT on Windows 7 x64 Using VS2010 (msvc-10.0).
> ----------------------------------------------------------
> CMake Error at config/FindBoost.cmake:881 (message):
>  Unable to find the requested Boost libraries.
>
>  Boost version: 1.36.0
>
>  Boost include path: C:/Boost/include/boost-1_36
>
>  The following Boost libraries could not be found:
>
>          boost_unit_test_framework
> ----------------------------------------------------------
>
> The first time I tried it was with Boost 1.43 because that was the latest version.  Installed the binary distribution, got this error.  Set BOOST_LIBRARYDIR, set BOOST_INCLUDEDIR, did all those other things that the CMake script suggests.  No difference.  Set the BOOST_ADDITIONAL_VERSIONS to include 1.43.  Didn't help.  Set BOOST_COMPILER_VERSION to -vc100 to ensure that it was looking for the right prefixes.  Didn't help.
>
> SO I downloaded Boost 1.36 because that's in the list of versions in FindBoost.cmake.  Cant compile it outright using VS2010 because its build files don't recognize msvc-v10.0  Also, the bootstrap file is missing.  Downloaded bjam.exe from the boost site and translplanted the msvc.jam file from boost 1.43 so it will recognize my compiler.  So, boost 1.36 compiles and installs.  I run CMake, and get the same error.
>
> I am colossally unimpressed right now.  I have tried moving the boost libs and includes, renaming the folder so it's the standard C:\Boost, as well as C:\boost C:\boost_1_36 and everything else I can think of.
>
> the unit test framework libraries are currently present at the following locations:
>
> C:\Boost\lib\boost_unit_test_framework-vc100-mt.lib
> C:\Boost\lib\boost_unit_test_framework-vc100-mt-1_36.dll
> C:\Boost\lib\boost_unit_test_framework-vc100-mt-1_36.lib
> C:\Boost\lib\boost_unit_test_framework-vc100-mt-gd.lib
> C:\Boost\lib\boost_unit_test_framework-vc100-mt-gd-1_36.dll
> C:\Boost\lib\boost_unit_test_framework-vc100-mt-gd-1_36.lib
>
> The headers are currently present at:
> C:\Boost\include\boost-1_36\boost\test\unit_test.hpp
> --blah blah all the other headers...

Oh the suffering ! Try this: copy the top-level
orocos-rtt.default.cmake to orocos-rtt.cmake in the same directory (as
the file instructs).

Then set the CMAKE_INCLUDE_PATH and CMAKE_LIBRARY_PATH at the top of
that file to point to the boost-1_36 dir for the include path and the
boost-1_36/lib dir for the library path.

re-run cmake. I use the binary distributions too, but on VS2005, and
for external reasons am testing with boost 1.38. It is true that the
boost version must be listed in BOOST_ADDITIONAL_VERSIONS. Using the
latest boost version is tricky, since boost apis are not that stable
and we often need to #ifdef stuff as newer versions come out.

There has been a big effort on both the 1.x (in 1.12.0) and 2.x (in
2.0.0) lines to build/run better on Windows, although there are quite
some Windows users already. Also know that OCL 1.10 does not build on
windows, OCL 1.12 will be supported on Windows. If you want to
pre-test these 1.12 releases, I can make them available to you in a
zip file.

Peter
--
Orocos-Users mailing list
Orocos-Users [..] ...
http://lists.mech.kuleuven.be/mailman/listinfo/orocos-users

CMake cannot find boost

Try this: copy the top-level
orocos-rtt.default.cmake to orocos-rtt.cmake in the same directory (as
the file instructs).

> did this the first time, re-did it just now to be sure that I didn't leave something in there I shouldn't.

Then set the CMAKE_INCLUDE_PATH and CMAKE_LIBRARY_PATH at the top of
that file to point to the boost-1_36 dir for the include path and the
boost-1_36/lib dir for the library path.

> all the files from the bjam compile/install are in C:/Boost/include and C:/Boost/lib. orocos-rtt.cmake now reads like this at line 19:

set(CMAKE_INCLUDE_PATH ${CMAKE_INCLUDE_PATH} "C:\Boost\include")

set(CMAKE_LIBRARY_PATH ${CMAKE_LIBRARY_PATH} "C:\Boost\lib")

re-run cmake.

> Cleared the cache, re-ran. Get the same error:
---------------
CMake Error at config/FindBoost.cmake:881 (message):
Unable to find the requested Boost libraries.

Boost version: 1.36.0

Boost include path: C:/Boost/include/boost-1_36

The following Boost libraries could not be found:

boost_unit_test_framework

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):
tests/CMakeLists.txt:7 (find_package)

---------------

CMake cannot find boost libraries

Try this: copy the top-level orocos-rtt.default.cmake to orocos-rtt.cmake in the same directory (as the file instructs).

> did this the first time, re-did it just now to be sure that I didn't leave something in there I shouldn't.

Then set the CMAKE_INCLUDE_PATH and CMAKE_LIBRARY_PATH at the top of that file to point to the boost-1_36 dir for the include path and the boost-1_36/lib dir for the library path.

> all the files from the bjam compile/install are in C:/Boost/include and C:/Boost/lib. orocos-rtt.cmake now reads like this at line 19:

set(CMAKE_INCLUDE_PATH ${CMAKE_INCLUDE_PATH} "C:\Boost\include")

set(CMAKE_LIBRARY_PATH ${CMAKE_LIBRARY_PATH} "C:\Boost\lib")

re-run cmake.

> Cleared the cache, re-ran. Get the same error:


CMake Error at config/FindBoost.cmake:881 (message):
  Unable to find the requested Boost libraries.

  Boost version: 1.36.0

  Boost include path: C:/Boost/include/boost-1_36

  The following Boost libraries could not be found:

          boost_unit_test_framework

  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):
  tests/CMakeLists.txt:7 (find_package)

CMake cannot find boost

On Tue, Aug 10, 2010 at 10:36 PM, <matt [..] ...> wrote:
> Try this: copy the top-level
> orocos-rtt.default.cmake to orocos-rtt.cmake in the same directory (as
> the file instructs).
>
>> did this the first time, re-did it just now to be sure that I didn't leave something in there I shouldn't.
>
> Then set the CMAKE_INCLUDE_PATH and CMAKE_LIBRARY_PATH at the top of
> that file to point to the boost-1_36 dir for the include path and the
> boost-1_36/lib dir for the library path.

Don't want to spoil the party, but I believe we need at least boost
1.38 for windows anyway. The only thing that can be wrong is the
FindBoost.cmake macro itself. The newer RTT versions call
find_package(Boost COMPONENTS thread unit_test_framework ) once in the
whole cmake run and test for components where they are needed
(Boost_THREAD_FOUND etc). Doing multiple calls to find_package(Boost)
did not always give positive results. I would also suggest to remove
the orocos-rtt/config/FindBoost.cmake file. The stock cmake version
might perform better.

Just for clarity: you are using RTT 1.10 right ? Which version of cmake ?

Peter

>
>> all the files from the bjam compile/install are in C:/Boost/include and C:/Boost/lib.  orocos-rtt.cmake now reads like this at line 19:
>
>
> set(CMAKE_INCLUDE_PATH ${CMAKE_INCLUDE_PATH} "C:\Boost\include")
>
> set(CMAKE_LIBRARY_PATH ${CMAKE_LIBRARY_PATH} "C:\Boost\lib")
>
>
> re-run cmake.
>
>> Cleared the cache, re-ran.  Get the same error:
> ---------------
> CMake Error at config/FindBoost.cmake:881 (message):
>  Unable to find the requested Boost libraries.
>
>  Boost version: 1.36.0
>
>  Boost include path: C:/Boost/include/boost-1_36
>
>  The following Boost libraries could not be found:
>
>          boost_unit_test_framework
>
>  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):
>  tests/CMakeLists.txt:7 (find_package)
>
> ---------------
> --
> Orocos-Users mailing list
> Orocos-Users [..] ...
> http://lists.mech.kuleuven.be/mailman/listinfo/orocos-users
>
--
Orocos-Users mailing list
Orocos-Users [..] ...
http://lists.mech.kuleuven.be/mailman/listinfo/orocos-users

CMake cannot find boost

Yes, I`m using orocos 1.10.4, and CMake 2.8.2

Renaming the FindBoost.cmake file to disable it appears to work! :D CMake now finds Boost 1.36 without issue. I`m going to try building orocos now, but I`ll keep your advice re: using boost 1.38 or higher in mind. If 1.36 gives me issues I will try using 1.38 or 1.43.

Thanks for the very timely advice.

CMake cannot find boost

Yes, I`m using orocos 1.10.4, and CMake 2.8.2

Renaming the FindBoost.cmake file to disable it appears to work! :D CMake now finds Boost 1.36 without issue. I`m going to try building orocos now, but I`ll keep your advice re: using boost 1.38 or higher in mind. If 1.36 gives me issues I will try using 1.38 or 1.43.

Thanks for the very timely advice.

addendum

To avoid confusion: I first tried the Boost 1.43 binary distribution, THEN I downloaded the Boost 1.43 source distribution and compiled it using VS2010. Identical problem either way... Then moved on to 1.36, source distro.

addendum

To avoid confusion: I first tried the Boost 1.43 binary distribution, THEN I downloaded the Boost 1.43 source distribution and compiled it using VS2010. Identical problem either way... Then moved on to 1.36, source distro.

CMake cannot find boost libraries

I keep getting this error when I attempt to run Cmake to setup up Orocos RTT on Windows 7 x64 Using VS2010 (msvc-10.0).
----------------------------------------------------------
CMake Error at config/FindBoost.cmake:881 (message):
Unable to find the requested Boost libraries.

Boost version: 1.36.0

Boost include path: C:/Boost/include/boost-1_36

The following Boost libraries could not be found:

boost_unit_test_framework
----------------------------------------------------------

The first time I tried it was with Boost 1.43 because that was the latest version. Installed the binary distribution, got this error. Set BOOST_LIBRARYDIR, set BOOST_INCLUDEDIR, did all those other things that the CMake script suggests. No difference. Set the BOOST_ADDITIONAL_VERSIONS to include 1.43. Didn't help. Set BOOST_COMPILER_VERSION to -vc100 to ensure that it was looking for the right prefixes. Didn't help.

SO I downloaded Boost 1.36 because that's in the list of versions in FindBoost.cmake. Cant compile it outright using VS2010 because its build files don't recognize msvc-v10.0 Also, the bootstrap file is missing. Downloaded bjam.exe from the boost site and translplanted the msvc.jam file from boost 1.43 so it will recognize my compiler. So, boost 1.36 compiles and installs. I run CMake, and get the same error.

I am colossally unimpressed right now. I have tried moving the boost libs and includes, renaming the folder so it's the standard C:\Boost, as well as C:\boost C:\boost_1_36 and everything else I can think of.

the unit test framework libraries are currently present at the following locations:

C:\Boost\lib\boost_unit_test_framework-vc100-mt.lib
C:\Boost\lib\boost_unit_test_framework-vc100-mt-1_36.dll
C:\Boost\lib\boost_unit_test_framework-vc100-mt-1_36.lib
C:\Boost\lib\boost_unit_test_framework-vc100-mt-gd.lib
C:\Boost\lib\boost_unit_test_framework-vc100-mt-gd-1_36.dll
C:\Boost\lib\boost_unit_test_framework-vc100-mt-gd-1_36.lib

The headers are currently present at:
C:\Boost\include\boost-1_36\boost\test\unit_test.hpp
--blah blah all the other headers...

Help?

Thanks.