mongo-cxx 드라이버를 빌드하려고합니다. 첫 번째 단계는 mongo-c-driver (libbson이 필요합니다)를 빌드하는 것입니다.mongo-c-driver가 libbson을 찾을 수 없습니다.
저는 Windows 10을 실행 중이며 Visual Studio 2015를 제 컴파일러로 사용하고 있습니다. 나는 CMake를 실행할 수 있었고 libbson을 빌드 할 수있었습니다. 모든 프로젝트를 잘 만들었습니다. 이제 bson-static-1.0.lib
사본을 mongo-c-driver/src/libbson/build/Debug/
및 mongo-c-driver/src/libbson/build/Release/
으로 작성했습니다. 모든 것이 옳은 것처럼 보입니다.
다음 단계는 mongo-c-driver를 만드는 것입니다. 내가 CMake를 실행하고 비주얼 스튜디오 솔루션을 만들려고하지만 오류를 가지고 :
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:
BSON (ADVANCED)
linked by target "mongoc_shared" in directory C:/Users/sdf/Downloads/mongo-c-driver-1.3.5
linked by target "mongoc_static" in directory C:/Users/sdf/Downloads/mongo-c-driver-1.3.5
Configuring incomplete, errors occurred!
See also "C:/Users/sdf/Downloads/mongo-c-driver-1.3.5/build/CMakeFiles/CMakeOutput.log".
그것은 올바른 값으로 설정되어 있지 않은 변수 BSON
모양을 - 그것은 값이 지금 BSON-NOTFOUND
입니다입니다. 누구든지 BSON
에 대한 올바른 값을 알고 있고, 컴파일 과정에서 자동으로 설정해야한다면 libbson
을 컴파일합니까?
안녕하세요, 내 대답이 문제를 해결합니까, 아니면 더 많은 정보가 필요합니까? –