braft
braft copied to clipboard
build issue on FedoraOS33 with latest cmake and libc installed well
root@smfast:~/wayne/braft/bld# cmake ..
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
-- The C compiler identification is GNU 10.3.1
-- The CXX compiler identification is GNU 10.3.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Could NOT find Protobuf (missing: Protobuf_LIBRARIES Protobuf_INCLUDE_DIR)
CMake Error at CMakeLists.txt:47 (message):
Fail to find leveldb
-- Configuring incomplete, errors occurred!
See also "/root/wayne/braft/bld/CMakeFiles/CMakeOutput.log".
See also "/root/wayne/braft/bld/CMakeFiles/CMakeError.log".
above build error is solved. I see new example run error. how to run example guide is outdated.
root@smfast:~/wayne/braft/example/atomic/build# ls
atomic_client atomic.pb.h atomic_test CMakeFiles Makefile run_server.sh
atomic.pb.cc atomic_server CMakeCache.txt cmake_install.cmake run_client.sh runtime
root@smfast:~/wayne/braft/example/atomic/build# ./atomic_server -h
ERROR: flag 'v' was defined more than once (in files 'src/vlog_is_on.cc' and '/root/wayne/incubator-brpc/src/butil/logging.cc').
root@smfast:~/wayne/braft/example/atomic/build# ./atomic_server
ERROR: flag 'v' was defined more than once (in files 'src/vlog_is_on.cc' and '/root/wayne/incubator-brpc/src/butil/logging.cc').
root@smfast:~/wayne/braft/example/atomic/build#