查看INSTALL,编译步骤如下
$ mkdir build
$ cd build
$ cmake .. \
-DCMAKE_INSTALL_PREFIX=$PREFIX \
-DCMAKE_BUILD_TYPE=RelWithDebInfo
$ make
$ make test
$ make install
我们选用debug模式,并且要求线程安全,进入build目录后,最终使用以下命令
cmake .. -DCMAKE_INSTALL_PREFIX=$PREFIX -DCMAKE_BUILD_TYPE=debug -DTHREADSAFE=true
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Looking for include files CMAKE_HAVE_PTHREAD_H
-- Looking for include files CMAKE_HAVE_PTHREAD_H - 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
-- Found ZLIB: /usr/lib64/libz.so (found version "1.2.3")
Enabled deflate codec
-- Found Snappy: /usr/lib64/libsnappy.so
Enabled snappy codec
-- checking for module 'liblzma'
-- package 'liblzma' not found
Disabled lzma codec. liblzma not found.
-- checking for module 'jansson>=2.3'
-- found jansson, version 2.11
-- Searching for asciidoc...
CMake Warning at docs/CMakeLists.txt:51 (message):
asciidoc not found. HTML documentation will *NOT* be built.
阅读(2547) | 评论(0) | 转发(0) |