Travis-ci 找不到 boost/geometry.hpp
Travis-ci can't find boost/geometry.hpp
在 .travis.yml 我有:
dist: precise
addons:
apt:
sources:
# For gcc >= 4.8
- ubuntu-toolchain-r-test
# For cmake >= 2.8.8 (for CMakePackageConfigHelpers)
- kubuntu-backports
- boost-latest
packages:
- g++-4.8
- cmake
- libboost-thread-dev
- libboost-graph-dev
- libcgal-dev
- postgresql-server-dev-all
- postgresql-common
在CmakeLists.txt
find_package(Boost)
if(Boost_INCLUDE_DIRS)
message(STATUS "Boost headers were found here: ${Boost_INCLUDE_DIRS}")
find_file(MYVAR geometry.hpp)
message(STATUS "geometry.hpp found here: ${MYVAR}")
endif(Boost_INCLUDE_DIRS)
当我 运行 在我的计算机中运行 cmake 时,我得到:
-- Boost version: 1.54.0
-- Boost headers were found here: /usr/include
-- geometry.hpp found here: /usr/include/boost/geometry.hpp
但是在 github 的 travis 中工作时找不到 geometry.hpp:
-- Boost version: 1.46.1
-- Boost headers were found here: /usr/include
-- geometry.hpp found here: MYVAR-NOTFOUND
-- Boost version: 1.46.1
-- Found the following Boost libraries:
-- thread
我在插件部分遗漏了一些东西,它没有找到 header 唯一的库几何图形?
Boost.Geometry 已在 1.47 版(2011 IIRC)中添加到 Boost
因此,使用1.46.1,找不到。
在 .travis.yml 我有:
dist: precise
addons:
apt:
sources:
# For gcc >= 4.8
- ubuntu-toolchain-r-test
# For cmake >= 2.8.8 (for CMakePackageConfigHelpers)
- kubuntu-backports
- boost-latest
packages:
- g++-4.8
- cmake
- libboost-thread-dev
- libboost-graph-dev
- libcgal-dev
- postgresql-server-dev-all
- postgresql-common
在CmakeLists.txt
find_package(Boost)
if(Boost_INCLUDE_DIRS)
message(STATUS "Boost headers were found here: ${Boost_INCLUDE_DIRS}")
find_file(MYVAR geometry.hpp)
message(STATUS "geometry.hpp found here: ${MYVAR}")
endif(Boost_INCLUDE_DIRS)
当我 运行 在我的计算机中运行 cmake 时,我得到:
-- Boost version: 1.54.0
-- Boost headers were found here: /usr/include
-- geometry.hpp found here: /usr/include/boost/geometry.hpp
但是在 github 的 travis 中工作时找不到 geometry.hpp:
-- Boost version: 1.46.1
-- Boost headers were found here: /usr/include
-- geometry.hpp found here: MYVAR-NOTFOUND
-- Boost version: 1.46.1
-- Found the following Boost libraries:
-- thread
我在插件部分遗漏了一些东西,它没有找到 header 唯一的库几何图形?
Boost.Geometry 已在 1.47 版(2011 IIRC)中添加到 Boost
因此,使用1.46.1,找不到。