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

Error websocketpp boost_find_dependency while compiling #834

Open
viswakonda opened this issue Jul 26, 2019 · 6 comments
Open

Error websocketpp boost_find_dependency while compiling #834

viswakonda opened this issue Jul 26, 2019 · 6 comments

Comments

@viswakonda
Copy link

No description provided.

@viswakonda
Copy link
Author

I am new to webscoketpp and i am getting error while building websocketpp. could you please help me in fixing the error:

viswa@viswa-linux:~/Documents/boost/websocketpp$ cmake -DENABLE_CPP11=TRUE -DBUILD_EXAMPLES=TRUE -DBUILD_TESTS=TRUE -DBOOST_ROOT=/home/viswa/Documents/boost/boost_1_70_0

  • C++11 support partially enabled due to GCC version 4.8

  • Configuring Boost
    -- -- Using BOOST_ROOT
    -- /home/viswa/Documents/boost/boost_1_70_0
    -- Found Boost 1.70.0 at /usr/local/lib/cmake/Boost-1.70.0
    -- Requested configuration: QUIET REQUIRED OPTIONAL_COMPONENTS system;thread;random;unit_test_framework
    -- Found boost_headers 1.70.0 at /usr/local/lib/cmake/boost_headers-1.70.0
    CMake Error at /usr/local/lib/cmake/Boost-1.70.0/BoostConfig.cmake:124 (boost_find_dependency):
    boost_find_dependency Macro invoked with incorrect arguments for macro
    named: boost_find_dependency
    Call Stack (most recent call first):
    /usr/share/cmake-2.8/Modules/FindBoost.cmake:177 (find_package)
    CMakeLists.txt:214 (find_package)

CMake Error at /usr/local/lib/cmake/Boost-1.70.0/BoostConfig.cmake:124 (boost_find_dependency):
boost_find_dependency Macro invoked with incorrect arguments for macro
named: boost_find_dependency
Call Stack (most recent call first):
/usr/share/cmake-2.8/Modules/FindBoost.cmake:177 (find_package)
CMakeLists.txt:214 (find_package)

CMake Error at /usr/local/lib/cmake/Boost-1.70.0/BoostConfig.cmake:124 (boost_find_dependency):
boost_find_dependency Macro invoked with incorrect arguments for macro
named: boost_find_dependency
Call Stack (most recent call first):
/usr/share/cmake-2.8/Modules/FindBoost.cmake:177 (find_package)
CMakeLists.txt:214 (find_package)

CMake Error at /usr/local/lib/cmake/Boost-1.70.0/BoostConfig.cmake:124 (boost_find_dependency):
boost_find_dependency Macro invoked with incorrect arguments for macro
named: boost_find_dependency
Call Stack (most recent call first):
/usr/share/cmake-2.8/Modules/FindBoost.cmake:177 (find_package)
CMakeLists.txt:214 (find_package)

Boost 1.39.0 found.
Found Boost components:
system;thread;random;unit_test_framework
-- -- Include Directories
-- -- Library Directories
-- -- Libraries

** websocketpp
** external_io_service
-- -- Build Type:
-- EXECUTABLE
** debug_client
-- -- Build Type:
-- EXECUTABLE
** debug_server
-- -- Build Type:
-- EXECUTABLE
** sip_client
-- -- Build Type:
-- EXECUTABLE
** telemetry_client
-- -- Build Type:
-- EXECUTABLE
** echo_server_both
-- -- Build Type:
-- EXECUTABLE
** enriched_storage
-- -- Build Type:
-- EXECUTABLE
** echo_client
-- -- Build Type:
-- EXECUTABLE
** iostream_server
-- -- Build Type:
-- EXECUTABLE
** simple_broadcast_server
-- -- Build Type:
-- EXECUTABLE
** handler_switch
-- -- Build Type:
-- EXECUTABLE
** telemetry_server
-- -- Build Type:
-- EXECUTABLE
** testee_server
-- -- Build Type:
-- EXECUTABLE
** echo_server_tls
-- -- Build Type:
-- EXECUTABLE
** echo_server
-- -- Build Type:
-- EXECUTABLE
** print_client
-- -- Build Type:
-- EXECUTABLE
** subprotocol_server
-- -- Build Type:
-- EXECUTABLE
** testee_client
-- -- Build Type:
-- EXECUTABLE
** print_client_tls
-- -- Build Type:
-- EXECUTABLE
** associative_storage
-- -- Build Type:
-- EXECUTABLE
** print_server
-- -- Build Type:
-- EXECUTABLE
** broadcast_server
-- -- Build Type:
-- EXECUTABLE
** utility_client
-- -- Build Type:
-- EXECUTABLE
** test_transport
-- -- Build Type:
-- EXECUTABLE
CMake Warning at cmake/CMakeHelpers.cmake:68 (message):
CMake too old to register test_transport as a test
Call Stack (most recent call first):
test/transport/CMakeLists.txt:7 (build_test)

** test_transport_asio_timers
-- -- Build Type:
-- EXECUTABLE
CMake Warning at cmake/CMakeHelpers.cmake:68 (message):
CMake too old to register test_transport_asio_timers as a test
Call Stack (most recent call first):
test/transport/CMakeLists.txt:17 (build_test)

** test_transport_asio_security
-- -- Build Type:
-- EXECUTABLE
CMake Warning at cmake/CMakeHelpers.cmake:68 (message):
CMake too old to register test_transport_asio_security as a test
Call Stack (most recent call first):
test/transport/CMakeLists.txt:27 (build_test)

** test_transport_iostream_base
-- -- Build Type:
-- EXECUTABLE
CMake Warning at cmake/CMakeHelpers.cmake:68 (message):
CMake too old to register test_transport_iostream_base as a test
Call Stack (most recent call first):
test/transport/CMakeLists.txt:39 (build_test)

** test_transport_iostream_endpoint
-- -- Build Type:
-- EXECUTABLE
CMake Warning at cmake/CMakeHelpers.cmake:68 (message):
CMake too old to register test_transport_iostream_endpoint as a test
Call Stack (most recent call first):
test/transport/CMakeLists.txt:48 (build_test)

** test_transport_iostream_connection
-- -- Build Type:
-- EXECUTABLE
CMake Warning at cmake/CMakeHelpers.cmake:68 (message):
CMake too old to register test_transport_iostream_connection as a test
Call Stack (most recent call first):
test/transport/CMakeLists.txt:57 (build_test)

** test_transport_asio_base
-- -- Build Type:
-- EXECUTABLE
CMake Warning at cmake/CMakeHelpers.cmake:68 (message):
CMake too old to register test_transport_asio_base as a test
Call Stack (most recent call first):
test/transport/CMakeLists.txt:66 (build_test)

** test_http
-- -- Build Type:
-- EXECUTABLE
CMake Warning at cmake/CMakeHelpers.cmake:68 (message):
CMake too old to register test_http as a test
Call Stack (most recent call first):
test/http/CMakeLists.txt:6 (build_test)

** test_endpoint
-- -- Build Type:
-- EXECUTABLE
CMake Warning at cmake/CMakeHelpers.cmake:68 (message):
CMake too old to register test_endpoint as a test
Call Stack (most recent call first):
test/endpoint/CMakeLists.txt:9 (build_test)

** test_roles_client
-- -- Build Type:
-- EXECUTABLE
CMake Warning at cmake/CMakeHelpers.cmake:68 (message):
CMake too old to register test_roles_client as a test
Call Stack (most recent call first):
test/roles/CMakeLists.txt:5 (build_test)

** test_roles_server
-- -- Build Type:
-- EXECUTABLE
CMake Warning at cmake/CMakeHelpers.cmake:68 (message):
CMake too old to register test_roles_server as a test
Call Stack (most recent call first):
test/roles/CMakeLists.txt:14 (build_test)

** test_connection
-- -- Build Type:
-- EXECUTABLE
CMake Warning at cmake/CMakeHelpers.cmake:68 (message):
CMake too old to register test_connection as a test
Call Stack (most recent call first):
test/connection/CMakeLists.txt:7 (build_test)

** test_random_none
-- -- Build Type:
-- EXECUTABLE
CMake Warning at cmake/CMakeHelpers.cmake:68 (message):
CMake too old to register test_random_none as a test
Call Stack (most recent call first):
test/random/CMakeLists.txt:5 (build_test)

** test_random_random_device
-- -- Build Type:
-- EXECUTABLE
CMake Warning at cmake/CMakeHelpers.cmake:68 (message):
CMake too old to register test_random_random_device as a test
Call Stack (most recent call first):
test/random/CMakeLists.txt:14 (build_test)

** test_close
-- -- Build Type:
-- EXECUTABLE
CMake Warning at cmake/CMakeHelpers.cmake:68 (message):
CMake too old to register test_close as a test
Call Stack (most recent call first):
test/utility/CMakeLists.txt:5 (build_test)

** test_error
-- -- Build Type:
-- EXECUTABLE
CMake Warning at cmake/CMakeHelpers.cmake:68 (message):
CMake too old to register test_error as a test
Call Stack (most recent call first):
test/utility/CMakeLists.txt:14 (build_test)

** test_frame
-- -- Build Type:
-- EXECUTABLE
CMake Warning at cmake/CMakeHelpers.cmake:68 (message):
CMake too old to register test_frame as a test
Call Stack (most recent call first):
test/utility/CMakeLists.txt:23 (build_test)

** test_sha1
-- -- Build Type:
-- EXECUTABLE
CMake Warning at cmake/CMakeHelpers.cmake:68 (message):
CMake too old to register test_sha1 as a test
Call Stack (most recent call first):
test/utility/CMakeLists.txt:32 (build_test)

** test_uri
-- -- Build Type:
-- EXECUTABLE
CMake Warning at cmake/CMakeHelpers.cmake:68 (message):
CMake too old to register test_uri as a test
Call Stack (most recent call first):
test/utility/CMakeLists.txt:41 (build_test)

** test_utilities
-- -- Build Type:
-- EXECUTABLE
CMake Warning at cmake/CMakeHelpers.cmake:68 (message):
CMake too old to register test_utilities as a test
Call Stack (most recent call first):
test/utility/CMakeLists.txt:50 (build_test)

** test_processor
-- -- Build Type:
-- EXECUTABLE
CMake Warning at cmake/CMakeHelpers.cmake:68 (message):
CMake too old to register test_processor as a test
Call Stack (most recent call first):
test/processors/CMakeLists.txt:5 (build_test)

** test_processor_hybi00
-- -- Build Type:
-- EXECUTABLE
CMake Warning at cmake/CMakeHelpers.cmake:68 (message):
CMake too old to register test_processor_hybi00 as a test
Call Stack (most recent call first):
test/processors/CMakeLists.txt:14 (build_test)

** test_processor_hybi07
-- -- Build Type:
-- EXECUTABLE
CMake Warning at cmake/CMakeHelpers.cmake:68 (message):
CMake too old to register test_processor_hybi07 as a test
Call Stack (most recent call first):
test/processors/CMakeLists.txt:23 (build_test)

** test_processor_hybi08
-- -- Build Type:
-- EXECUTABLE
CMake Warning at cmake/CMakeHelpers.cmake:68 (message):
CMake too old to register test_processor_hybi08 as a test
Call Stack (most recent call first):
test/processors/CMakeLists.txt:32 (build_test)

** test_processor_hybi13
-- -- Build Type:
-- EXECUTABLE
CMake Warning at cmake/CMakeHelpers.cmake:68 (message):
CMake too old to register test_processor_hybi13 as a test
Call Stack (most recent call first):
test/processors/CMakeLists.txt:43 (build_test)

** test_processor_extension_permessage_compress
-- -- Build Type:
-- EXECUTABLE
CMake Warning at cmake/CMakeHelpers.cmake:68 (message):
CMake too old to register test_processor_extension_permessage_compress as a
test
Call Stack (most recent call first):
test/processors/CMakeLists.txt:53 (build_test)

** test_extension
-- -- Build Type:
-- EXECUTABLE
** test_permessage_deflate
-- -- Build Type:
-- EXECUTABLE
CMake Warning at cmake/CMakeHelpers.cmake:68 (message):
CMake too old to register test_permessage_deflate as a test
Call Stack (most recent call first):
test/extension/CMakeLists.txt:16 (build_test)

** test_logger
-- -- Build Type:
-- EXECUTABLE
CMake Warning at cmake/CMakeHelpers.cmake:68 (message):
CMake too old to register test_logger as a test
Call Stack (most recent call first):
test/logger/CMakeLists.txt:7 (build_test)

** test_message_alloc
-- -- Build Type:
-- EXECUTABLE
** test_message_buffer
-- -- Build Type:
-- EXECUTABLE
CMake Warning at cmake/CMakeHelpers.cmake:68 (message):
CMake too old to register test_message_buffer as a test
Call Stack (most recent call first):
test/message_buffer/CMakeLists.txt:14 (build_test)

=========== Used Build Configuration =============

-- ENABLE_CPP11 = TRUE
-- BUILD_EXAMPLES = TRUE
-- BUILD_TESTS = TRUE

-- WEBSOCKETPP_ROOT = /home/viswa/Documents/boost/websocketpp
-- WEBSOCKETPP_BIN = /home/viswa/Documents/boost/websocketpp/bin
-- WEBSOCKETPP_LIB = /home/viswa/Documents/boost/websocketpp/lib
-- Install prefix = /usr/local

-- WEBSOCKETPP_BOOST_LIBS = system;thread;random;unit_test_framework
-- WEBSOCKETPP_PLATFORM_LIBS = pthread;rt
-- WEBSOCKETPP_PLATFORM_TLS_LIBS = ssl;crypto

-- OPENSSL_FOUND = TRUE
-- OPENSSL_INCLUDE_DIR = /usr/include
-- OPENSSL_LIBRARIES = /usr/lib/x86_64-linux-gnu/libssl.so;/usr/lib/x86_64-linux-gnu/libcrypto.so
-- OPENSSL_VERSION = 1.0.1f

-- Configuring incomplete, errors occurred!
See also "/home/viswa/Documents/boost/websocketpp/CMakeFiles/CMakeOutput.log".
viswa@viswa-linux:~/Documents/boost/websocketpp$

@viswakonda
Copy link
Author

Please help me in fixing the issue and the error.

@jmjatlanta
Copy link

My suggestion would be to choose a Boost version below 1.70. I work with (a customized, older version of) this library, and Boost 1.70 causes problems. Boost 1.69 works fine for me.

@madanmch
Copy link

madanmch commented Mar 4, 2020

@viswakonda Is your problem has been solved after using 1.69 version?

@engineer1109
Copy link

Change CMakeLists.txt

    find_package (Boost 1.39.0 COMPONENTS "${WEBSOCKETPP_BOOST_LIBS}")

to:

   find_package (Boost)

sbraz added a commit to sbraz/websocketpp that referenced this issue Aug 4, 2021
This fixes "boost_find_component Macro invoked with incorrect arguments
for macro" errors when examples or tests are enabled.
@sbraz
Copy link

sbraz commented Aug 4, 2021

This has been fixed in 36b73da. @zaphoyd, why isn't develop the default branch? What is the purpose of the master branch?

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

5 participants