Hi,<br><br>I&#39;ve also been hit with the same issue.<br><br>Looks like bug in FindBoost.cmake.<br><br>When it looking for compiler it assumes that you are using Intel compiler and thus failed to find correct libraries.<br>
<br>---- cut FindBoost --------<br><br>IF (UNIX)<br>        IF (APPLE)<br>                SET (_boost_COMPILER &quot;&quot;)<br>        ELSE (APPLE)<br>          IF (NOT CMAKE_COMPILER_IS_GNUCC)<br>            # This is for the intel compiler<br>
                SET (_boost_COMPILER &quot;-il&quot;)<br>          ELSE (NOT CMAKE_COMPILER_IS_GNUCC)<br>            #find out the version of gcc being used.<br>                EXEC_PROGRAM(${CMAKE_CXX_COMPILER}<br>            ARGS --version<br>
            OUTPUT_VARIABLE _boost_COMPILER_VERSION<br>                )<br><br>---- cut FindBoost ------<br><br>The issue us in following assumptions <br>IF (NOT CMAKE_COMPILER_IS_GNUCC)<br><br>It should be like this <br>

            IF (NOT CMAKE_COMPILER_IS_GNUCXX)<br><br>Or just fix your project (workaround) as follows <br><br>project (hpx CXX C)<br><br><br><br><div class="gmail_quote">2008/6/26 Chirag Dekate &lt;<a href="mailto:cdekate@cct.lsu.edu">cdekate@cct.lsu.edu</a>&gt;:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi All,<br><br>I am working with a project (called hpx) that relies on Boost
libraries { serialization,&nbsp; etc }. We use CMake for building this project. <br><br>On my Linux Ubuntu box the build process goes through smoothly<br><br>However on another Linux machine with similar cmake2.6 &amp; Boost 1.35.0 setup (in /usr/local/ ) the Cmake fails to find the specific boost libraries.... <br>

<br>following is a detailed description of the problem:<br>
<br>After that the example (test) programs use the &quot;libhpx&quot; to link and generate executables <br><br>my directory structure is as follows<br><br>HPX_ROOT/ <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CMakeLists.txt<br>&nbsp;&nbsp;&nbsp; |<br>&nbsp;&nbsp;&nbsp; | <br>&nbsp;&nbsp;&nbsp; HPX_ROOT/src<br>


&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CMakeLists.txt<br>&nbsp;&nbsp;&nbsp; HPX_ROOT/examples<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CMakeLists.txt<br>&nbsp;&nbsp;&nbsp; HPX_ROOT/hpx<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; contains all the headers..<br><br>Working CMake Cache on my linux box: <br>Standard cmake 2.6 installation from source in /usr/local/<br>

Standard boost 1.35.0 installed from source in /usr/local/<br>
CMake makefile generation messages : <br>cdekate@px06:~/parallex/trunk/hpx$ cmake .<br>-- The C compiler identification is GNU<br>-- The CXX compiler identification is GNU<br>-- Check for working C compiler: /usr/bin/gcc<br>


-- Check for working C compiler: /usr/bin/gcc -- works<br>-- Detecting C compiler ABI info<br>-- Detecting C compiler ABI info - done<br>-- Check for working CXX compiler: /usr/bin/c++<br>-- Check for working CXX compiler: /usr/bin/c++ -- works<br>


-- Detecting CXX compiler ABI info<br>-- Detecting CXX compiler ABI info - done<br>-- Found The Following Boost Libraries:<br>--&nbsp;&nbsp; date_time<br>--&nbsp;&nbsp; filesystem<br>--&nbsp;&nbsp; graph<br>--&nbsp;&nbsp; regex<br>--&nbsp;&nbsp; serialization<br>--&nbsp;&nbsp; thread<br>


--&nbsp;&nbsp; system<br>--&nbsp;&nbsp; signals<br>-- Boost Version: 1.35.0<br>-- Configuring done<br>-- Generating done<br>-- Build files have been written to: /home/cdekate/parallex/trunk<div>/hpx<br>cdekate@px06:~/parallex/trunk/hpx$ <br>

<br>Corresponding CMakeCache file :<br>
<a href="http://www.cct.lsu.edu/%7Ecdekate/Working_CMakeCache.txt" target="_blank">http://www.cct.lsu.edu/~cdekate/Working_CMakeCache.txt</a><br><br>**************************************************************<br><br>Celeritas (PROBLEM MACHINE LISTING)<br>


Standard cmake 2.6 installation from source in /usr/local/<br>
Standard boost 1.35.0 installed from source in /usr/local/<br>cdekate@celeritas hpx]$ cmake .<br>-- The C compiler identification is GNU<br>-- The CXX compiler identification is GNU<br>-- Check for working C compiler: /home/packages/gcc-4.2.1/bin/gcc<br>


-- Check for working C compiler: /home/packages/gcc-4.2.1/bin/gcc -- works<br>-- Detecting C compiler ABI info<br>-- Detecting C compiler ABI info - done<br>-- Check for working CXX compiler: /home/packages/gcc-4.2.1/bin/c++<br>


-- Check for working CXX compiler: /home/packages/gcc-4.2.1/bin/c++ -- works<br>-- Detecting CXX compiler ABI info<br>-- Detecting CXX compiler ABI info - done<br>-- Configuring done<br>-- Generating done<br>-- Build files have been written to: /home/cdekate/hpx<br>


[cdekate@celeritas hpx]$ <br><br>Corresponding CMakeCache file:<br><a href="http://www.cct.lsu.edu/%7Ecdekate/Problem_CMakeCache.txt" target="_blank">http://www.cct.lsu.edu/~cdekate/Problem_CMakeCache.txt</a><br><br clear="all">

ON
the Problem machine even though the boost libraries and such have been
installed in globally addressable space /usr/local/{lib,include} and
/usr/{lib,include}<br>
The CMakeLists.txt line : <br><br>find_package(Boost 1.35.0 COMPONENTS date_time filesystem graph regex serialization thread system signals)<br><br>doesn&#39;t find the corresponding libraries on celeritas that it does on my linux box.. <br>


<br><br>Library File Name Listing on Problem Machine : <br><br><a href="http://www.cct.lsu.edu/%7Ecdekate/problem_boost_library_list.txt" target="_blank">http://www.cct.lsu.edu/~cdekate/problem_boost_library_list.txt</a><br>

<br>Library File Name Listing on Wroking Machine :<br>
<br><a href="http://www.cct.lsu.edu/%7Ecdekate/working_boost_library_list.txt" target="_blank">http://www.cct.lsu.edu/~cdekate/working_boost_library_list.txt</a><br><br>&amp;the complete CMakeLists.txt files are available at : <br>

<br><br>**********************************************************<br><div>the main CMakeLists.txt under the root looks like this : <br>**********************************************************<br>

<br># We require at least CMake V2.6<br>cmake_minimum_required(VERSION 2.6)<br><br>project (hpx)<br><br>include_directories (${hpx_SOURCE_DIR})<br>include_directories (${hpx_SOURCE_DIR}/external/coroutine)<br>include_directories (${hpx_SOURCE_DIR}/external/exception)<br>

include_directories (${hpx_SOURCE_DIR}/external/endian)<br>include_directories (${hpx_SOURCE_DIR}/external/logging)<br>include_directories (${hpx_SOURCE_DIR}/external/singleton)<br><br>if(WIN32)<br>&nbsp;&nbsp;&nbsp; add_definitions(-D_WIN32_WINNT=0x0501)<br>

&nbsp;&nbsp;&nbsp; add_definitions(-D_SCL_SECURE_NO_WARNINGS)<br>&nbsp;&nbsp;&nbsp; add_definitions(-D_CRT_SECURE_NO_WARNINGS)<br>&nbsp;&nbsp;&nbsp; add_definitions(-D_SCL_SECURE_NO_DEPRECATE)<br>&nbsp;&nbsp;&nbsp; add_definitions(-D_CRT_SECURE_NO_DEPRECATE)<br>endif(WIN32)<br><br>

add_subdirectory (src)<br>add_subdirectory (examples)<br>add_subdirectory (runtime)<br>add_subdirectory (tests)<br><br><br>*******************************************************<br>the CMakeLists.txt under the HPX_ROOT/src is as follows<br>

*******************************************************<br>
<br>set (hpxlib_HEADERS<br>...<br>...<br>)<br><br><br>set (hpxlib_SOURCES<br>...<br>...<br>}<br><br>add_library (hpx STATIC ${hpxlib_SOURCES} ${hpxlib_HEADERS} ${Boost_LIBRARIES})<br><br><br>*************************************************************<br>


the CMakeLists.txt under examples looks as follows : <br>*************************************************************<br><br>set (resolver_client_SOURCES naming/resolver_client.cpp)<br>add_executable (resolver_client ${resolver_client_SOURCES})<br>


target_link_libraries(resolver_client hpx ${Boost_LIBRARIES})<br><br>set (resolver_server_SOURCES naming/resolver_server.cpp)<br>add_executable (resolver_server ${resolver_server_SOURCES})<br>target_link_libraries(resolver_server hpx ${Boost_LIBRARIES})<br>


<br>set (parcelset_client_SOURCES parcelset/parcelset_client.cpp)<br>add_executable (parcelset_client ${parcelset_client_SOURCES})<br>target_link_libraries(parcelset_client hpx ${Boost_LIBRARIES})<br><br>set (parcelset_server_SOURCES parcelset/parcelset_server.cpp)<br>


add_executable (parcelset_server ${parcelset_server_SOURCES})<br>target_link_libraries(parcelset_server hpx ${Boost_LIBRARIES})<br><br>****************************<br><br><br>Any Help on your part would be greatly appreciated.<br>


<br>Thank You,<br><br>Chirag Dekate</div></div><br clear="all"><font color="#888888"><br>-- <br>*********************************************<br>* View my LinkedIn Profile at : *<br>* <a href="http://www.linkedin.com/in/cdekate" target="_blank">http://www.linkedin.com/in/cdekate</a> *<br>

*********************************************
</font><br>_______________________________________________<br>
Boost-cmake mailing list<br>
<a href="mailto:Boost-cmake@lists.boost.org">Boost-cmake@lists.boost.org</a><br>
<a href="http://listarchives.boost.org/mailman/listinfo.cgi/boost-cmake" target="_blank">http://listarchives.boost.org/mailman/listinfo.cgi/boost-cmake</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Best Regards,<br>Sergey Nikulov

