私がこれまでにしたこと
私はthe installation guideを読んでいます。WindowsでMongoDB Cドライバを構築する
a setup fileをダウンロードした後、Windows用OpenSSLライブラリをインストールしました。
GitHubからMongo Cドライバディレクトリをダウンロードして抽出しました。
CMake web siteからダウンロード後にCMake for Windowsをインストールしました。
mongo-c-driver/src/libbson
に行き、cmake -G "Visual Studio 14 2015 Win64"
を実行して、(多分)成功を表示します。
D:\works\test\mongo-c-driver\src\libbson>cmake -G "Visual Studio 14 2015 Win64" Current version (from VERSION_CURRENT file): 1.4.0-dev Previous release (from VERSION_RELEASED file): 1.3.5 -- 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 _set_output_format -- Looking for _set_output_format - not found -- Performing Test BSON_HAVE_TIMESPEC -- Performing Test BSON_HAVE_TIMESPEC - Success -- struct timespec found -- Configuring done -- Generating done -- Build files have been written to: D:/works/test/mongo-c-driver/src/libbson
msbuild ALL_BUILD.vcxproj
を実行し、成功を印刷します。
問題
mongo-c-driver
に行き、 `cmakeのの-G "Visual Studioの14 2015のWin64" を実行して、このようなエラーを出力します。
-- Found BSON: BSON-NOTFOUND;ws2_32
-- Found OpenSSL: optimized;D:/apps/OpenSSL-Win64/lib/VC/ssleay32MD.lib;debug;D:/apps/OpenSSL-Win64/lib/VC/ssleay32MDd.lib;optimized;D:/apps/OpenSSL-Win64/lib/VC/libeay32MD.lib;debug;D:/apps/OpenSSL-Win64/lib/VC/libeay32MDd.lib (found version "1.0.2h") -- 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) -- Configuring incomplete, errors occurred! See also "D:/works/test/mongo-c-driver/CMakeFiles/CMakeOutput.log".
私は自分のディスクからsasl.h
を探したが、どれもありません。私もOpenSSL GitHubからそれを探しましたが、sasl.hを持っていません
私はhereからcyrus-saslをダウンロードして開きましたが、私はそれに固執しています。私はそれをどうするか分からない。
MongoDB Cドライバのビルドを成功させるにはどうすればよいですか?
を、これは動作しますが(ありがとう!)、デバッグ構成がデフォルトに...利用可能である(他のconfigsを構築するにことに注意してください: ' Debug、Release、MinSizeRel、RelWithDebInfo)は、対応する引数をmsbuildコマンドに追加します。 'msbuild.exe ALL_BUILD.vcxproj/p:設定=リリース'、 'msbuild.exe INSTALL.vcxproj/p:設定=解放' –