chris@nuc8i7:~/mongo$ cd mongo-c-driver-1.17.2
chris@nuc8i7:~/mongo/mongo-c-driver-1.17.2$ mkdir cmake-build
chris@nuc8i7:~/mongo/mongo-c-driver-1.17.2$ cd cmake-build
chris@nuc8i7:~/mongo/mongo-c-driver-1.17.2/cmake-build$ cmake -DENABLE_AUTOMATIC_INIT_AND_CLEANUP=OFF …
– The C compiler identification is ;GNU 8.3.0
– 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
– No CMAKE_BUILD_TYPE selected, defaulting to RelWithDebInfo
file VERSION_CURRENT contained BUILD_VERSION 1.17.2
– Build and install static libraries
– Using bundled libbson
libbson version (from VERSION_CURRENT file): 1.17.2
– Check if the system is big endian
– Searching 16 bit integer
– Looking for sys/types.h
– Looking for sys/types.h - found
– Looking for stdint.h
– Looking for stdint.h - found
– Looking for stddef.h
– Looking for stddef.h - found
– Check size of unsigned short
– Check size of unsigned short - done
– Using unsigned short
– Check if the system is big endian - little endian
– Looking for snprintf
– Looking for snprintf - found
– Looking for reallocf
– Looking for reallocf - not found
– Performing Test BSON_HAVE_TIMESPEC
– Performing Test BSON_HAVE_TIMESPEC - Success
– struct timespec found
– Looking for gmtime_r
– Looking for gmtime_r - found
– Looking for rand_r
– Looking for rand_r - found
– Looking for strings.h
CMake Warning (dev) at CMakeLists.txt:10 (_message):
Policy CMP0075 is not set: Include file check macros honor
CMAKE_REQUIRED_LIBRARIES. ;Run “cmake --help-policy CMP0075” for policy
details. ;Use the cmake_policy command to set the policy and suppress this
warning.;
;CMAKE_REQUIRED_LIBRARIES is set to:
; /usr/lib/x86_64-linux-gnu/librt.so
;For compatibility with CMake 3.11 and below this check is ignoring it.
Call Stack (most recent call first):
/usr/share/cmake-3.13/Modules/CheckIncludeFile.cmake:70 (message)
src/libbson/CMakeLists.txt:91 (CHECK_INCLUDE_FILE)
This warning is for project developers. Use -Wno-dev to suppress it.
– Looking for strings.h - found
– Looking for strlcpy
– Looking for strlcpy - not found
– Looking for clock_gettime
– Looking for clock_gettime - found
– Looking for strnlen
– Looking for strnlen - found
– Looking for stdbool.h
– Looking for stdbool.h - found
– Looking for SYS_gettid
– Looking for SYS_gettid - found
– Looking for syscall
– Looking for syscall - found
– Performing Test HAVE_ATOMIC_32_ADD_AND_FETCH
– Performing Test HAVE_ATOMIC_32_ADD_AND_FETCH - Success
– Performing Test HAVE_ATOMIC_64_ADD_AND_FETCH
– Performing Test HAVE_ATOMIC_64_ADD_AND_FETCH - Success
– Looking for pthread.h
– Looking for pthread.h - found
– Looking for pthread_create
– Looking for pthread_create - not found
– Check if compiler accepts -pthread
– Check if compiler accepts -pthread - yes
– Found Threads: TRUE
Adding -fPIC to compilation of bson_static components
libmongoc version (from VERSION_CURRENT file): 1.17.2
– Searching for zlib CMake packages
– Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version “1.2.11”)
– zlib found version “1.2.11”
– zlib include path “/usr/include”
– zlib libraries “/usr/lib/x86_64-linux-gnu/libz.so”
– Looking for include file unistd.h
– Looking for include file unistd.h - found
– Looking for include file stdarg.h
– Looking for include file stdarg.h - found
– Searching for compression library zstd
– Found PkgConfig: /usr/bin/pkg-config (found version “0.29.1”)
– Checking for module ‘libzstd’
– No package ‘libzstd’ found
– Not found
– Found OpenSSL: /usr/lib/x86_64-linux-gnu/libcrypto.so (found version “1.1.1b”)
– Looking for ASN1_STRING_get0_data in /usr/lib/x86_64-linux-gnu/libcrypto.so
– Looking for ASN1_STRING_get0_data in /usr/lib/x86_64-linux-gnu/libcrypto.so - found
– Searching for sasl/sasl.h
– Not found (specify -DCMAKE_INCLUDE_PATH=/path/to/sasl/include for SASL support)
– Searching for libsasl2
– Not found (specify -DCMAKE_LIBRARY_PATH=/path/to/sasl/lib for SASL support)
– Check size of socklen_t
– Check size of socklen_t - done
– Looking for res_nsearch
– Looking for res_nsearch - found
– Looking for res_ndestroy
– Looking for res_ndestroy - not found
– Looking for res_nclose
– Looking for res_nclose - found
– Looking for sched_getcpu
– Looking for sched_getcpu - not found
– Detected parameters: accept (int, struct sockaddr *, socklen_t *)
– Searching for compression library header snappy-c.h
– Not found (specify -DCMAKE_INCLUDE_PATH=/path/to/snappy/include for Snappy compression)
Searching for libmongocrypt
– libmongocrypt not found. Configuring without Client-Side Field Level Encryption support.
– Performing Test MONGOC_HAVE_SS_FAMILY
– Performing Test MONGOC_HAVE_SS_FAMILY - Success
– Compiling against OpenSSL
– SASL disabled
Adding -fPIC to compilation of mongoc_static components
– Building with MONGODB-AWS auth support
– Build files generated for:
– build system: Unix Makefiles
– Configuring done
– Generating done
– Build files have been written to: /home/chris/mongo/mongo-c-driver-1.17.2/cmake-build
cd …/…/mongo-cxx-driver-r3.6.1/build
chris@nuc8i7:~/mongo/mongo-cxx-driver-r3.6.1/build$ cmake … -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=~/mongo/mongo-c-driver-1.17.2/cmake-build -DCMAKE_INSTALL_PREFIX=~/mongo/mongo-c-driver-1.17.2/cmake-build
– The CXX compiler identification is GNU 8.3.0
– 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
– Detecting CXX compile features
– Detecting CXX compile features - done
– The C compiler identification is GNU 8.3.0
– 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
– Auto-configuring bsoncxx to use MNMLSTC for polyfills since C++17 is inactive
bsoncxx version: 3.6.1
CMake Error at src/bsoncxx/CMakeLists.txt:113 (find_package):
By not providing “Findlibbson-1.0.cmake” in CMAKE_MODULE_PATH this project
has asked CMake to find a package configuration file provided by
“libbson-1.0”, but CMake did not find one.
Could not find a package configuration file provided by “libbson-1.0”
(requested version 1.13.0) with any of the following names:
libbson-1.0Config.cmake
libbson-1.0-config.cmake
Add the installation prefix of “libbson-1.0” to CMAKE_PREFIX_PATH or set
“libbson-1.0_DIR” to a directory containing one of the above files. If
“libbson-1.0” provides a separate development package or SDK, be sure it
has been installed.
– Configuring incomplete, errors occurred!
See also “/home/chris/mongo/mongo-cxx-driver-r3.6.1/build/CMakeFiles/CMakeOutput.log”.