Open dcolley opened 6 years ago
Derek,
bredis
is header-only library. That means it usually should not build, but just copied the "include" dir right into your project.
The build in the sources exists only for building examples and tests.
Here is working process:
pwd
/home/basiliscos/development/cpp/cpp-bredis
mkdir build && cd build
cmake -DBOOST_ROOT=/home/basiliscos/development/cpp/boost/boost_1_64_0 -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_COMPILER=clang++ ..
-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is Clang 3.9.1
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /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: /usr/bin/clang++
-- Check for working CXX compiler: /usr/bin/clang++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- 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
-- Boost version: 1.64.0
-- Found the following Boost libraries:
-- chrono
-- coroutine
-- context
-- filesystem
-- regex
-- system
-- thread
-- date_time
-- atomic
-- boost inc: /home/basiliscos/development/cpp/boost/boost_1_64_0
-- boost libs: /home/basiliscos/development/cpp/boost/boost_1_64_0/stage/lib/libboost_chrono.so/home/basiliscos/development/cpp/boost/boost_1_64_0/stage/lib/libboost_coroutine.so/home/basiliscos/development/cpp/boost/boost_1_64_0/stage/lib/libboost_context.so/home/basiliscos/development/cpp/boost/boost_1_64_0/stage/lib/libboost_filesystem.so/home/basiliscos/development/cpp/boost/boost_1_64_0/stage/lib/libboost_regex.so/home/basiliscos/development/cpp/boost/boost_1_64_0/stage/lib/libboost_system.so/home/basiliscos/development/cpp/boost/boost_1_64_0/stage/lib/libboost_thread.so/home/basiliscos/development/cpp/boost/boost_1_64_0/stage/lib/libboost_date_time.so/home/basiliscos/development/cpp/boost/boost_1_64_0/stage/lib/libboost_atomic.so
-- Configuring done
-- Generating done
-- Build files have been written to: /home/basiliscos/development/cpp/cpp-bredis/build
make -j8
...
Please note, that tests depends strictly on boost 1.64, while the library itself has no such a strict requirements.
cmake_minimum_required(VERSION 3.5)
It seems there is a problem with your cmake. Which version do you have? Try to patch CMakeFiles.txt
to lower version and may be it will work. Then submit PR :)
if it will not, try to upgrade your cmake.
I'm trying to build the examples, are there any build instructions for linux?
I tried
ccmake .
make
but I get
I can find the include files, but I don't know how to config the make process to see them...