<div class="gmail_quote">On Sun, Oct 4, 2009 at 6:28 AM, Timothy Chan <span dir="ltr">&lt;<a href="mailto:timothychanmailinglists@gmail.com">timothychanmailinglists@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">


<p>Hi all,<br>
<br>
I have a newbie question here. I am installing a software called gazebo which
uses cmake. The software requres boost 1.35+. I have 1.32 on the system, and
1.40 installed locally. Cmake seems to only be able to find 1.32 and is not
able to find my local installation of 1.40. <br>
<br>
I have boost installed in:<br>
/home/timchan/boost_1_40_0<br>
<br>
In my .bashrc file I put:<br>
<br>
export LD_LIBRARY_PATH=/home/timchan/boost_1_40_0/libs:$LD_LIBRARY_PATH<br>
export CPATH=/home/timchan/boost_1_40_0/boost:$CPATH<br>
<br>
When I run cmake, I get the following error:<br>
<br>
CMake Error at /usr/share/cmake/Modules/FindBoost.cmake:868 (message):<br>
  Unable to find the requested Boost libraries.<br>
  Boost version: 1.32.0<br>
  Boost include path: /usr/include<br>
  Detected version of Boost is too old.  Requested version was 1.35
(or newer).<br>
<br>
<br>
I am using cmake 2.6.4 on CentOS 4.7. Any help would be greatly appreciated!!</p></blockquote><div>You need to set Boost_ADDITIONAL_VERSIONS in include your version of Boost.  See the documentation to FindBoost.cmake.</div>
</div><br>I don&#39;t think LD_LIBRARY_PATH or CPATH (whatever that is) would have any affect on FindBoost.  You may want to use BOOST_ROOT either as an environment variable or CMake variable to assist in finding your custom build of boost.<br clear="all">
<br>-- <br>Philip Lowman<br>