<a href="http://public.kitware.com/Bug/view.php?id=7783">http://public.kitware.com/Bug/view.php?id=7783</a><br><br><div class="gmail_quote">2008/10/23 Emre Turkay <span dir="ltr"><<a href="mailto:emreturkay@gmail.com">emreturkay@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><span style="border-collapse: collapse;"><div>Hi folks,</div><div><br></div><div>I'm trying to compile boost with cmake and MS Visual Studio 2003 on Windows.</div>
<div>However, when I run the cmake I get:</div>
<div><br></div><div>CMake Error at C:/Program Files/CMake 2.6/share/cmake-2.6/Modules/FindBoost.cmak</div><div>e:620 (message):</div><div> Unable to find the requested Boost libraries.</div><div><br></div><div> Boost version: 1.35.0</div>
<div><br></div><div> Boost include path: C:/Program Files/boost/boost_1_35_0</div><div><br></div><div> The following Boost libraries could not be found:</div><div><br></div><div> boost_signals</div><div><br></div>
<div> No Boost libraries were found. You may need to set Boost_LIBRARYDIR to the</div><div> directory containing Boost libraries or BOOST_ROOT to the location of</div><div> Boost.</div><div>Call Stack (most recent call first):</div>
<div> CMakeLists.txt:27 (FIND_PACKAGE)</div><div><br></div><div><br></div><div>-- Configuring incomplete, errors occurred!</div><div>------------------------------------------------------------------------------</div><div>
The "c:/Program Files/boost/boost_1_35_0" path is correct and I have:</div><div><br></div><div>libboost_signals-vc71-mt-1_35.lib</div><div>libboost_signals-vc71-mt-gd-1_35.lib</div><div>libboost_signals-vc71-mt-s-1_35.lib</div>
<div>libboost_signals-vc71-mt-sgd-1_35.lib</div><div>libboost_signals-vc71-s-1_35.lib</div><div>libboost_signals-vc71-sgd-1_35.lib</div><div>libboost_signals-vc80-mt-1_35.lib</div><div>libboost_signals-vc80-mt-gd-1_35.lib</div>
<div>libboost_signals-vc80-mt-s-1_35.lib</div><div>libboost_signals-vc80-mt-sgd-1_35.lib</div><div>libboost_signals-vc80-s-1_35.lib</div><div>libboost_signals-vc80-sgd-1_35.lib</div><div>libboost_signals-vc90-mt-1_35.lib</div>
<div>libboost_signals-vc90-mt-gd-1_35.lib</div><div>libboost_signals-vc90-mt-s-1_35.lib</div><div>libboost_signals-vc90-mt-sgd-1_35.lib</div><div>libboost_signals-vc90-s-1_35.lib</div><div>libboost_signals-vc90-sgd-1_35.lib</div>
<div><br></div><div>files in the "c:/Program Files/boost/boost_1_35_0/lib" path.</div><div><br></div><div>Here is my CMakeLists file:</div><div><br></div><div>----------------------------</div><div>CMAKE_MINIMUM_REQUIRED(VERSION 2.6)</div>
<div>PROJECT(test)</div><div><br></div><div>SET(TEST_SRCS</div><div> ../../Application/display_controller.cpp</div><div> ../../Application/GUI.cpp</div><div> ../../Application/joystick_controller.cpp</div><div> ../../Application/keyboard_controller.cpp</div>
<div> main.cpp</div><div>)</div><div><br></div><div>SET(TEST_MOC_HDRS</div><div> ../../Application/GUI.h</div><div>)</div><div><br></div><div>SET(TEST_UIS</div><div> ../../Application/GUI.ui</div><div>)</div><div>
<br></div><div>SET(TEST_RCS</div><div> ../../Application/GUI.qrc</div><div>)</div><div><br></div><div>ADD_DEFINITIONS(-Wall)</div><div><br></div><div>FIND_PACKAGE(Qt4 REQUIRED)</div><div>FIND_PACKAGE(Boost REQUIRED COMPONENTS signals)</div>
<div><br></div><div>IF (Boost_FOUND)</div><div> INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIRS})</div><div> LINK_DRIECTORIES(${Boost_LIBRARY_DIRS})</div><div> ADD_DEFINITIONS(${Boost_LIB_DIAGNOSTIC_DEFINITIONS})</div>
<div>
ENDIF (Boost_FOUND)</div><div><br></div><div>INCLUDE( ${QT_USE_FILE} )</div><div>QT4_ADD_RESOURCES( TEST_RC_SRCS ${TEST_RCS} )</div><div>QT4_WRAP_UI( TEST_UI_HDRS ${TEST_UIS} )</div><div>QT4_WRAP_CPP( TEST_MOC_SRCS ${TEST_MOC_HDRS} )</div>
<div>INCLUDE_DIRECTORIES( ${CMAKE_BINARY_DIR} )</div><div>ADD_EXECUTABLE( test ${TEST_SRCS} ${TEST_MOC_SRCS} ${TEST_RC_SRCS} ${TEST_UI_HDRS} )</div><div><br></div><div><br></div><div>TARGET_LINK_LIBRARIES(test ${QT_LIBRARIES} ${Boost_LIBRARIES})</div>
<div>----------------------------</div><div><br></div><div>and the cmake version is "2.6-patch 2".</div><div><br></div><div>More, this file works in ubuntu smoothly.</div><div><br></div><div>Does someone have any idea on what may be wrong?</div>
<div><br></div><div>Thanks,</div><div><br></div><div><span style="color: rgb(136, 136, 136);">Emre Turkay</span><br></div></span>
<br>_______________________________________________<br>
CMake mailing list<br>
<a href="mailto:CMake@cmake.org">CMake@cmake.org</a><br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br></blockquote></div><br>