[PKG_CONFIG_PATH=CDRIVER_INSTALL_PATH/lib/pkgconfig] cmake -DCMAKE_BUILD_TYPE=Release [-DCMAKE_INSTALL_PREFIX=/usr/local] ..
-bash: [PKG_CONFIG_PATH=CDRIVER_INSTALL_PATH/lib/pkgconfig]: No such file or directory
So instead I used
-bash: [PKG_CONFIG_PATH=/usr/local/lib/pkgconfig]: No such file or directory
Smritis-MacBook-Pro:build smritivaidya$ cmake -DCMAKE_BUILD_TYPE=Release [-DCMAKE_INSTALL_PREFIX=/usr/local] ..
-- The CXX compiler identification is AppleClang 7.3.0.7030031
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/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 AppleClang 7.3.0.7030031
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Checking for module 'libbson-1.0>=1.3.1'
-- Found libbson-1.0, version 1.3.5
-- Found LIBBSON: TRUE
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY - Success
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY - Success
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Success
-- Checking for module 'libmongoc-1.0>=1.3.1'
-- Found libmongoc-1.0, version 1.3.5
-- Found LIBMONGOC: TRUE
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/smritivaidya/Desktop/KhanAcademy/mongo-cxx-driver/build
Smritis-MacBook-Pro:build smritivaidya$ ls
CMakeCache.txt CTestTestfile.cmake cmake_install.cmake examples
But when I try to run the test code given in the Quick Starter guide I get the error:
g++ -c --std=c++11 -Wall -I/usr/local/include/mongocxx/v0.3 -I/usr/local/include/libmongoc-1.0 -I/usr/local/include/bsoncxx/v0.3 -I/usr/local/include/libbson-1.0 -c hellomongo.cpp
hellomongo.cpp:3:10: fatal error: 'bsoncxx/builder/stream/document.hpp' file not found
#include <bsoncxx/builder/stream/document.hpp>
^
1 error generated.
make: *** [hellomongo.o] Error 1
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/bd6484b1-861d-4274-97c1-85aaa6f50e58%40googlegroups.com.--
You received this message because you are subscribed to the Google Groups "mongodb-user"
group.
For other MongoDB technical support options, see: https://docs.mongodb.com/manual/support/
---
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user+unsubscribe@googlegroups.com.
To post to this group, send email to mongod...@googlegroups.com.
Visit this group at https://groups.google.com/group/mongodb-user.
Hi, Kartik.