2017-07-14 128 views
0

我試圖從this link編譯關於this link中描述的mongo-c-driver。 我編libbson successfulty,當我嘗試下面的命令,我得到The source directory "/" does not appear to contain CMakeLists.txt.編譯mongo-c-driver

cmake -G "Visual Studio 14 2015 Win64" \ "-DCMAKE_INSTALL_PREFIX=C:\mongo-c-driver" \ "-DBSON_ROOT_DIR=C:\mongo-c-driver" 
+0

你需要對你實際做了什麼有更多描述。通常你會得到錯誤,因爲你沒有真正遵循給出的指示。 –

+0

@NeilLunn我從[此地址](https://github.com/mongodb/mongo-c-driver/releases)下載了「源代碼(tar.gz)」文件。關於[此鏈接](http://mongoc.org/libmongoc/current/installing.html#building-on-windows)中的窗口部分的Builnding並開始運行命令,libbson編譯並安裝成功。然後運行'cd c:\ mongo-c-driver-1.6.3'命令,然後運行此命令時出錯:'cmake -G「Visual Studio 14 2015 Win64」\「-DCMAKE_INSTALL_PREFIX = C:\ mongo-c -driver「\」-DBSON_ROOT_DIR = C:\ mongo-c-driver「 –

回答