zaphoyd / websocketpp

C++ websocket client/server library
http://www.zaphoyd.com/websocketpp
Other
7.08k stars 1.98k forks source link

how to build in centos7.9? #1117

Open xyq-c-cpp opened 1 year ago

xyq-c-cpp commented 1 year ago

Download the source code and unzip it, switch the directory to the unzipped code directory,The details are as follows:

tar -zxvf websocketpp-0.8.2.tar.gz
cd websocketpp-0.8.2
mkdir build
cd build
cmake -G "Unix Makefiles" -DCMAKE_C_COMPILER=/usr/local/gcc-5.3.0/bin/gcc -DCMAKE_CXX_COMPILER=/usr/local/gcc-5.3.0/bin/g++ -DCMAKE_INSTALL_PREFIX=/root/websocketpp_install .. -DCMAKE_BUILD_TYPE=Release -DWEBSOCKETPP_BOOST_LIBS=/root/boost_1.72.0_install/lib 

** websocketpp

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

-- ENABLE_CPP11        = ON
-- BUILD_EXAMPLES      = OFF
-- BUILD_TESTS         = OFF

-- WEBSOCKETPP_ROOT    = /root/websocketpp-0.8.2
-- WEBSOCKETPP_BIN     = /root/websocketpp-0.8.2/build/bin
-- WEBSOCKETPP_LIB     = /root/websocketpp-0.8.2/build/lib
-- Install prefix      = /root/websocketpp_install

-- WEBSOCKETPP_BOOST_LIBS        = /root/boost_1.72.0_install/lib
-- WEBSOCKETPP_PLATFORM_LIBS     = 
-- WEBSOCKETPP_PLATFORM_TLS_LIBS = 

-- OPENSSL_FOUND        = 
-- OPENSSL_INCLUDE_DIR     = 
-- OPENSSL_LIBRARIES = 
-- OPENSSL_VERSION = 

-- Configuring done
-- Generating done
-- Build files have been written to: /root/websocketpp-0.8.2/build

make

After the make command, nothing happened. Should there be some prompts for what happened and what to do when calling cmake? I haven't seen in the documentation how to compile in Centos7.9

fortunerains commented 10 months ago

me too