.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
헤더 만 라이브러리 지오메트리를 찾지 못한다는 애드온 섹션에서 누락 된 것이 있습니까?
Boost.Geometry는 버전 1.47 (2011 IIRC)의 Boost에 추가되었습니다.
따라서 1.46.1을 사용하면 찾을 수 없습니다.
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다