Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot compile cpp-netlib with boost/config.h missing #874

Open
engineliu opened this issue Jun 19, 2019 · 0 comments
Open

Cannot compile cpp-netlib with boost/config.h missing #874

engineliu opened this issue Jun 19, 2019 · 0 comments

Comments

@engineliu
Copy link

Mac Mojave
Boost 1.7.0

$ cmake ..

-- The C compiler identification is AppleClang 10.0.1.10010046
-- The CXX compiler identification is AppleClang 10.0.1.10010046
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc
-- Check for working C compiler: /Library/Developer/CommandLineTools/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 for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Boost 1.70.0 at /usr/local/boost-1.70.0/lib/cmake/Boost-1.70.0
--   Requested configuration: QUIET REQUIRED
-- Found boost_headers 1.70.0 at /usr/local/boost-1.70.0/lib/cmake/boost_headers-1.70.0
-- Boost 1.57.0 found.
-- Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the system variable OPENSSL_ROOT_DIR (missing: OPENSSL_INCLUDE_DIR) 
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - found
-- Found Threads: TRUE  
-- Found PythonInterp: /usr/local/bin/python (found version "2.7.16") 
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/grayfox/Downloads/cpp-netlib/build

$ make

/Applications/CMake.app/Contents/bin/cmake -H/Users/grayfox/Downloads/cpp-netlib -B/Users/grayfox/Downloads/cpp-netlib/build --check-build-system CMakeFiles/Makefile.cmake 0
/Applications/CMake.app/Contents/bin/cmake -E cmake_progress_start /Users/grayfox/Downloads/cpp-netlib/build/CMakeFiles /Users/grayfox/Downloads/cpp-netlib/build/CMakeFiles/progress.marks
/Library/Developer/CommandLineTools/usr/bin/make -f CMakeFiles/Makefile2 all
/Library/Developer/CommandLineTools/usr/bin/make -f libs/network/src/CMakeFiles/cppnetlib-client-connections.dir/build.make libs/network/src/CMakeFiles/cppnetlib-client-connections.dir/depend
cd /Users/grayfox/Downloads/cpp-netlib/build && /Applications/CMake.app/Contents/bin/cmake -E cmake_depends "Unix Makefiles" /Users/grayfox/Downloads/cpp-netlib /Users/grayfox/Downloads/cpp-netlib/libs/network/src /Users/grayfox/Downloads/cpp-netlib/build /Users/grayfox/Downloads/cpp-netlib/build/libs/network/src /Users/grayfox/Downloads/cpp-netlib/build/libs/network/src/CMakeFiles/cppnetlib-client-connections.dir/DependInfo.cmake --color=
Scanning dependencies of target cppnetlib-client-connections
/Library/Developer/CommandLineTools/usr/bin/make -f libs/network/src/CMakeFiles/cppnetlib-client-connections.dir/build.make libs/network/src/CMakeFiles/cppnetlib-client-connections.dir/build
[  1%] Building CXX object libs/network/src/CMakeFiles/cppnetlib-client-connections.dir/client.cpp.o
cd /Users/grayfox/Downloads/cpp-netlib/build/libs/network/src && /Library/Developer/CommandLineTools/usr/bin/c++  -DASIO_HEADER_ONLY -DBOOST_SPIRIT_THREADSAFE -DBOOST_TEST_DYN_LINK -I/Users/grayfox/Downloads/cpp-netlib/deps/asio/asio/include -I/Users/grayfox/Downloads/cpp-netlib  -Wall -ftemplate-depth=256 -std=c++11 -stdlib=libc++   -o CMakeFiles/cppnetlib-client-connections.dir/client.cpp.o -c /Users/grayfox/Downloads/cpp-netlib/libs/network/src/client.cpp
In file included from /Users/grayfox/Downloads/cpp-netlib/libs/network/src/client.cpp:13:
In file included from /Users/grayfox/Downloads/cpp-netlib/boost/network/protocol/http/client/connection/normal_delegate.ipp:12:
In file included from /Users/grayfox/Downloads/cpp-netlib/deps/asio/asio/include/asio/ip/tcp.hpp:18:
/Users/grayfox/Downloads/cpp-netlib/deps/asio/asio/include/asio/detail/config.hpp:26:11:  
fatal error: 'boost/config.hpp' file not found
# include <boost/config.hpp>
          ^~~~~~~~~~~~~~~~~~
1 error generated.
make[2]: *** [libs/network/src/CMakeFiles/cppnetlib-client-connections.dir/client.cpp.o] Error 1
make[1]: *** [libs/network/src/CMakeFiles/cppnetlib-client-connections.dir/all] Error 2
make: *** [all] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant