[CDRIVER-2781] Windows install doesn't work as documented? Created: 01/Aug/18 Updated: 27/Oct/23 Resolved: 01/Aug/18 |
|
| Status: | Closed |
| Project: | C Driver |
| Component/s: | Build |
| Affects Version/s: | 1.12.0 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Bernie Volz | Assignee: | Unassigned |
| Resolution: | Works as Designed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Windows 10 |
||
| Attachments: |
|
| Description |
|
When trying to following Windows Visual Studio build instructions (on http://mongoc.org/libmongoc/current/installing.html) after download the 1.12.0 kit, I get: f:\Downloads\temp\mongo-c-driver-1.12.0\cmake-build>cmake -G "Visual Studio 14 2015 Win64" "-DCMAKE_INSTALL_PREFIX=f:\mongo-c-driver" "-DCMAKE_BUILD_TYPE=Release" And also the following fails: f:\Downloads\temp\mongo-c-driver-1.12.0\cmake-build>cmake -LH If I copy the ..\CMakeLists.txt into this directory, I get a bit further: f:\Downloads\temp\mongo-c-driver-1.12.0\cmake-build>cmake -G "Visual Studio 14 2015 Win64" "-DCMAKE_INSTALL_PREFIX=f:\mongo-c-driver" "-DCMAKE_BUILD_TYPE=Release" LoadVersion CMake Error at CMakeLists.txt:66 (LoadVersion): – Configuring incomplete, errors occurred!
I am successful if I don't "cd cmake-build".
I am using cmake-3.12.0-win64-x64.msi.
Thus, I think the steps: cd mongo-c-driver-1.12.0 Are incorrect or are missing something. Instead it should be: cd mongo-c-driver-1.12.0
|
| Comments |
| Comment by Kevin Albertson [ 01/Aug/18 ] | ||
|
No worries, glad it worked out! | ||
| Comment by Bernie Volz [ 01/Aug/18 ] | ||
|
Ah .. thanks .. sorry ... I had thought that was "..." to indicate other options! Sorry I missed that. I assume you'd junk the bug. (I did what I needed by just doing it at the top level).
| ||
| Comment by Kevin Albertson [ 01/Aug/18 ] | ||
|
Hi Bernie, The first command you pasted
Is missing the trailing "..". It should be:
The cmake command has the syntax: cmake [options] <path-to-source>, so the trailing ".." is for the directory containing the root CMakeLists.txt. |