|
Boost Users : |
Subject: [Boost-users] cmake on windows
From: Emre Turkay (emreturkay_at_[hidden])
Date: 2008-10-22 10:38:27
Hi folks,
I'm trying to compile boost with cmake and MS Visual Studio 2003 on Windows.
However, when I run the cmake tool I get:
CMake Error at C:/Program Files/CMake
2.6/share/cmake-2.6/Modules/FindBoost.cmak
e:620 (message):
Unable to find the requested Boost libraries.
Boost version: 1.35.0
Boost include path: C:/Program Files/boost/boost_1_35_0
The following Boost libraries could not be found:
boost_signals
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:27 (FIND_PACKAGE)
-- Configuring incomplete, errors occurred!
------------------------------------------------------------------------------
The "c:/Program Files/boost/boost_1_35_0" path is correct and I have:
libboost_signals-vc71-mt-1_35.lib
libboost_signals-vc71-mt-gd-1_35.lib
libboost_signals-vc71-mt-s-1_35.lib
libboost_signals-vc71-mt-sgd-1_35.lib
libboost_signals-vc71-s-1_35.lib
libboost_signals-vc71-sgd-1_35.lib
libboost_signals-vc80-mt-1_35.lib
libboost_signals-vc80-mt-gd-1_35.lib
libboost_signals-vc80-mt-s-1_35.lib
libboost_signals-vc80-mt-sgd-1_35.lib
libboost_signals-vc80-s-1_35.lib
libboost_signals-vc80-sgd-1_35.lib
libboost_signals-vc90-mt-1_35.lib
libboost_signals-vc90-mt-gd-1_35.lib
libboost_signals-vc90-mt-s-1_35.lib
libboost_signals-vc90-mt-sgd-1_35.lib
libboost_signals-vc90-s-1_35.lib
libboost_signals-vc90-sgd-1_35.lib
files in the "c:/Program Files/boost/boost_1_35_0/lib" path.
Here is my CMakeLists file:
----------------------------
CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
PROJECT(test)
SET(TEST_SRCS
../../Application/display_controller.cpp
../../Application/GUI.cpp
../../Application/joystick_controller.cpp
../../Application/keyboard_controller.cpp
main.cpp
)
SET(TEST_MOC_HDRS
../../Application/GUI.h
)
SET(TEST_UIS
../../Application/GUI.ui
)
SET(TEST_RCS
../../Application/GUI.qrc
)
ADD_DEFINITIONS(-Wall)
FIND_PACKAGE(Qt4 REQUIRED)
FIND_PACKAGE(Boost REQUIRED COMPONENTS signals)
IF (Boost_FOUND)
INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIRS})
LINK_DRIECTORIES(${Boost_LIBRARY_DIRS})
ADD_DEFINITIONS(${Boost_LIB_DIAGNOSTIC_DEFINITIONS})
ENDIF (Boost_FOUND)
INCLUDE( ${QT_USE_FILE} )
QT4_ADD_RESOURCES( TEST_RC_SRCS ${TEST_RCS} )
QT4_WRAP_UI( TEST_UI_HDRS ${TEST_UIS} )
QT4_WRAP_CPP( TEST_MOC_SRCS ${TEST_MOC_HDRS} )
INCLUDE_DIRECTORIES( ${CMAKE_BINARY_DIR} )
ADD_EXECUTABLE( test ${TEST_SRCS} ${TEST_MOC_SRCS} ${TEST_RC_SRCS}
${TEST_UI_HDRS} )
TARGET_LINK_LIBRARIES(test ${QT_LIBRARIES} ${Boost_LIBRARIES})
----------------------------
and the cmake version is "2.6-patch 2".
More, this file works in ubuntu smoothly.
Does someone have any idea on what may be wrong?
Thanks,
Emre Turkay
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net