我想在Cygwin上构建MongoDB客户端库。在Cygwin中构建MongoDB C++驱动程序:generate_error_codes.py找不到
[email protected] /cygdrive/e/warez/dev-tools/cpp/mongodb-src-r2.4.8
$ scons mongoclient
scons: Reading SConscript files ...
scons version: 2.3.0
python version: 2 7 5 'final' 0
No special config for [cygwin] which probably means it won't work
Checking whether the C++ compiler works(cached) yes
Checking for C header file unistd.h... (cached) yes
Checking whether clock_gettime is declared... (cached) yes
Checking for C library rt... (cached) yes
Checking for C++ header file execinfo.h... (cached) no
Checking for C library pcap... (cached) no
Checking for C library wpcap... (cached) no
scons: done reading SConscript files.
scons: Building targets ...
scons: *** [build/cygwin/normal/mongo/base/error_codes.h] Source `src/mongo/base/generate_error_codes.py' not found, needed by target `build/cygwin/normal/mongo/base/error_codes.h'.
scons: building terminated because of errors.
[email protected] /cygdrive/e/warez/dev-tools/cpp/mongodb-src-r2.4.8
$ ls -l src/mongo/base/generate_error_codes.py
-rwx------+ 1 Administrators None 8736 Oct 31 22:15 src/mongo/base/generate_error_codes.py
有两个与建立的MongoDB驱动程序的问题:
- https://stackoverflow.com/questions/16060068/c-mongodb-driver-in-cygwin
- Compiling MongoDB C++ driver on Cygwin
他们没有得到错误:
No special config for [cygwin] which probably means it won't work
我试过mongodb-src-r2.4.8和github的最新代码(https://github.com/mongodb/mongo),没有运气。
我该如何解决这个问题?提前致谢。
我不确定如果我们支持cygwin作为构建平台,我会进行调查。 – Derick
目前,我建议构建整个项目并将其作为其中的一部分构建。 –
@Derick我很期待那个...亲自 – figroc