在Windows下编译mongo-c-driver 1.3.x

在Windows下编译mongo-c-driver 1.3.x

在Windows下编译mongo-c-driver 1.3.x

1.安装 MSYS2
https://sourceforge.net/projects/msys2/
2.如果是32位系统或编译32位程序,运行
mingw32_shell.bat
64位运行
mingw64_shell.bat

2.1编译64位,安装 MinGW64
pacman -S mingw64/mingw-w64-x86_64-gcc
pacman -S mingw64/mingw-w64-x86_64-libtool

2.2编译32位,安装MinGW32
pacman -S mingw32/mingw-w64-i686-gcc
pacman -S mingw32/mingw-w64-i686-libtool

3.
查找最新版automake
pacman -Ss automake
安装最新版automake
pacman -S msys/automake1.15
安装autoconf
pacman -S msys/autoconf
安装automake-wrapper
pacman -S msys/automake-wrapper
msys/make

4.下载mongo-c-driver
mongo-c-driver最新版
https://github.com/mongodb/mongo-c-driver/releases

3.下载libson
libson最新版
https://github.com/mongodb/libbson/releases
解压缩到mongo-c-driver/src/libbson目录下


6.挂载mongo-c-driver目录
umount -U /tmp
mount "mongo-c-driver展开目录" /tmp
7.编译mongo-c-driver
cd /tmp
./autogen.sh --with-libbson=bundled
make

搜索dll文件

这里是我编译好的 mongo-c-driver 1.3.5的windows 32位,64位DLL程序

https://files.cnblogs.com/files/hezihang/mongo-c-driver-1.3.5.dll.7z

posted @ 2016-04-04 10:51  子航  阅读(1504)  评论(0编辑  收藏  举报