MS VS 2013
It has been several years since I worked on mongoDB (Windows 7 64 bit SP1
& mongoDB 2.2.0) and was able to install the c++ driver as part of building
mongodb from source. Apparently that has changed.
I have built R3.3.5 from source. Apparently I need to first build the C
driver and then the C++ driver (
Following this documentation to install on Windows:
Downloaded zip and stored it in C:\mongo-c-driver-1.3.5
Per the README:
cmake -DCMAKE_INSTALL_PREFIX=C:\usr -G "Visual Studio 12 Win64" .
With this error:
CMake Error: The source directory "C:/mongo-c-driver-1.3.5/src/libbson" does not appear to contain CMakeLists.txt.
src/libson is empty. CMakeLists.txt is in C:/mongo-c-driver-1.3.5
So I try running cmake in the mongo-c-driver-1.3.5 directory:
C:\mongo-c-driver-1.3.5>cmake -DCMAKE_INSTALL_PREFIX=C:\usr -G "Visual Studio 12 Win64" .
-- The C compiler identification is MSVC 18.0.40629.0
-- The CXX compiler identification is MSVC 18.0.40629.0
-- Check for working C compiler using: Visual Studio 12 2013 Win64
-- Check for working C compiler using: Visual Studio 12 2013 Win64 -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler using: Visual Studio 12 2013 Win64
-- Check for working CXX compiler using: Visual Studio 12 2013 Win64 -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found BSON: BSON-NOTFOUND;ws2_32
-- Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the system variable OPENSSL_ROOT_DIR (missing: OPENSSL_LIBRARIES OPENSSL_INCLUDE_DIR)
-- Searching for sasl/sasl.h
-- Not found (specify -DCMAKE_INCLUDE_PATH=C:/path/to/sasl/include for SASL support)
-- Searching for libsasl2
-- Not found (specify -DCMAKE_LIBRARY_PATH=C:/path/to/sasl/lib for SASL support)
Current version (from VERSION_CURRENT file): 1.3.5
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
linked by target "mongoc_shared" in directory C:/mongo-c-driver-1.3.5
linked by target "mongoc_static" in directory C:/mongo-c-driver-1.3.5
-- Configuring incomplete, errors occurred!
See also "C:/mongo-c-driver-1.3.5/CMakeFiles/CMakeOutput.log".
So any clues on how to install the C driver so I can get on to installing
the C++ driver