c++ - compiler seems cannot find boost/shared_ptr.hpp -


i using mac os 10.11.6

i trying install opengv on mac. part of dependencies needed build opensfm library. so, did is:

brew install homebrew/science/ceres-solver brew install boost-python brew install eigen git clone https://github.com/paulinus/opengv.git cd opengv mkdir build cd build cmake .. -dbuild_tests=off -dbuild_python=on make install 

but got error:

in file included /users/hilman_dayo/opengv/src/relative_pose/modules/main.cpp:47: /users/hilman_dayo/opengv/include/opengv/math/sturm.hpp:43:10: fatal error: 'boost/shared_ptr.hpp' file not found #include <boost/shared_ptr.hpp>          ^ 1 error generated. make[2]: *** [cmakefiles/opengv.dir/src/relative_pose/modules/main.o] error 1 make[1]: *** [cmakefiles/opengv.dir/all] error 2 make: *** [all] error 2 

how can solve this? checked, , file there @ /usr/local/include/boost/shared_ptr.hpp.

if ever needed, output during cmake:

-- c compiler identification appleclang 7.3.0.7030031 -- cxx compiler identification appleclang 7.3.0.7030031 -- check working c compiler: /applications/xcode.app/contents/developer/toolchains/xcodedefault.xctoolchain/usr/bin/cc -- check working c compiler: /applications/xcode.app/contents/developer/toolchains/xcodedefault.xctoolchain/usr/bin/cc -- works -- detecting c compiler abi info -- detecting c compiler abi info - done -- detecting c compile features -- detecting c compile features - done -- check working cxx compiler: /applications/xcode.app/contents/developer/toolchains/xcodedefault.xctoolchain/usr/bin/c++ -- check working cxx compiler: /applications/xcode.app/contents/developer/toolchains/xcodedefault.xctoolchain/usr/bin/c++ -- works -- detecting cxx compiler abi info -- detecting cxx compiler abi info - done -- detecting cxx compile features -- detecting cxx compile features - done -- checking c++11 compiler -- checking c++11 compiler - available -- performing test supports_std_cxx11 -- performing test supports_std_cxx11 - success -- performing test supports_std_cxx01 -- performing test supports_std_cxx01 - success -- found eigen: /usr/local/include/eigen3 (required @ least version "2.91.0")  cmake warning @ /usr/local/cellar/cmake/3.6.3/share/cmake/modules/findboost.cmake:743 (message):   imported targets not available boost version 106200 call stack (most recent call first):   /usr/local/cellar/cmake/3.6.3/share/cmake/modules/findboost.cmake:842 (_boost_component_dependencies)   /usr/local/cellar/cmake/3.6.3/share/cmake/modules/findboost.cmake:1395 (_boost_missing_dependencies)   python/cmakelists.txt:2 (find_package)   -- boost version: 1.62.0 -- found following boost libraries: --   python -- found pythonlibs: /usr/lib/libpython2.7.dylib (found version "2.7.10")  -- found pythoninterp: /users/hilman_dayo/.virtualenvs/cv/bin/python2.7 (found version "2.7.12")  -- found numpy: version "1.11.1" /users/hilman_dayo/.virtualenvs/cv/lib/python2.7/site-packages/numpy/core/include -- configuring done cmake warning (dev):   policy cmp0042 not set: macosx_rpath enabled default.  run "cmake   --help-policy cmp0042" policy details.  use cmake_policy command   set policy , suppress warning.    macosx_rpath not specified following targets:     pyopengv  warning project developers.  use -wno-dev suppress it.  -- generating done -- build files have been written to: /users/hilman_dayo/opengv/build 

ok. comment @usr1234567 give me hint find answer. after quick search, need execute on command line:

xcode-select --install


Comments

Popular posts from this blog

php - How to display all orders for a single product showing the most recent first? Woocommerce -

asp.net - How to correctly use QUERY_STRING in ISAPI rewrite? -

angularjs - How restrict admin panel using in backend laravel and admin panel on angular? -