File tree Expand file tree Collapse file tree 1 file changed +32
-5
lines changed Expand file tree Collapse file tree 1 file changed +32
-5
lines changed Original file line number Diff line number Diff line change @@ -73,12 +73,39 @@ Fetch Sources and Build
73
73
74
74
You can use the following to checkout and build mongo-c-driver::
75
75
76
- $ git clone https://github.com/mongodb/mongo-c-driver.git
77
- $ cd mongo-c-driver
78
- $ ./autogen.sh
79
- $ make
80
- $ sudo make install
76
+ git clone https://github.com/mongodb/mongo-c-driver.git
77
+ cd mongo-c-driver
78
+ ./autogen.sh
79
+ make
80
+ sudo make install
81
81
82
82
In standard automake fasion, ./autogen.sh only needs to be run once.
83
83
You can use ./configure directly going forward.
84
84
Also, see ./configure --help for all configure options.
85
+
86
+
87
+ Building on Windows
88
+ ===================
89
+
90
+ Currently, the cmake build system for mongo-c-driver does not build the libbson
91
+ package as well. This needs to be done manually with cmake.
92
+
93
+ If you are building from git, and not a release tarball, you also need to
94
+ initialize the git submodule for libbson::
95
+
96
+ git submodule init
97
+ git submodule update
98
+
99
+ Then proceed to build and install libbson using cmake and Visual Studio's
100
+ command line tool, msbuild.exe. You can of course open these project files
101
+ from Visual Studio as well::
102
+
103
+ cd src\libbson
104
+ cmake -DCMAKE_INSTALL_PREFIX=C:\usr .
105
+ msbuild.exe ALL_BUILD.vcxproj
106
+ msbuild.exe INSTALL.vcxproj
107
+ cd ..\..
108
+ cmake -DCMAKE_INSTALL_PREFIX=C:\usr -DBSON_ROOT_DIR=C:\usr .
109
+ msbuild.exe ALL_BUILD.vcxproj
110
+ msbuild.exe INSTALL.vcxproj
111
+
You can’t perform that action at this time.
0 commit comments