Hi,
It was my first time trying to build the MongoDB development environment on VS2013 update 5. By following the instructions on the MongoDB documentation website, I installed ActivePython 2.7 and Scons 2.5.0 on my Windows 7 Ultimate sp1 (64bits) PC. When installing the Scons, I downloaded the zip file and used the "python setup.py -install" command after unzipping. Then I downloaded the mongodb 3.2.10 source folder, and unzipped it under C:\. By running the following command, I created VS projects for mongod and mongo:
cd C:\<source folder>
scons --clean
scons mongod.exe > build_mongod_x64.log
scons buildscripts/make_vcxproj.py mongod <build_mongod_x64.log> mongod.vcxproj
scons mongo.exe > build_mongo_x64.log
scons buildscripts/make_vcxproj.py mongo <build_mongo_x64.log> mongo.vcxproj
(By the way, I was unable to use the "--64bits" or "--64" option on Scons, it told me that invalid option. )
For the next, I opened the "mongo" project in VS2013, it automatically created the "mongo.sln" solution file. The I added the "mongod" project to the solution. When I switched to the mongo project and started to build it using "Build mongo" item in the "BUILD" menu of VS2013, it told me that "src\mongo\base\error_code.h" and "src\mongo\base\error_code.cpp" are missing. Anyway, I found these two files in "build\opt\mongo\base" and copied them to the destination folder to eliminate this error.
However, it comes the next problem, seemingly the "v8" folder is missing. The information is as follows:
1> python: can't open file 'src\third_party\v8\tools\js2c.py': [Errno 2] No such file or directory
1>C:\mongodb-src-r3.2.10\mongo.vcxproj(205,5): error MSB3073: The command "python src\third_party\v8\tools\js2c.py src\third_party\v8\src\experimental-libraries.cc EXPERIMENTAL off src\third_party\v8\src\proxy.js src\third_party\v8\src\collection.js src\third_party\v8\src\macros.py" exited with code 2.
I checked the "vcxproj.header" file in the buildscripts folder, and found the following scripts:
<Target Name="V8ExperimentalLibraries"
BeforeTargets="ClCompile"
Outputs="$(MongoV8)\src\experimental-libraries.cc"
Inputs="$(MongoV8)\tools\js2c.py;$(MongoV8)\src\proxy.js;$(MongoV8)\src\collection.js;$(MongoV8)\src\macros.py" >
<Exec Command="python $(MongoV8)\tools\js2c.py $(MongoV8)\src\experimental-libraries.cc EXPERIMENTAL off $(MongoV8)\src\proxy.js $(MongoV8)\src\collection.js $(MongoV8)\src\macros.py" />
</Target>
...
Unfortunately there is no "v8" directory in the source files, also the scons command does not generate "v8" either. I'm not sure what to do for this, perhaps I've done something wrong in the previos steps. Would you please give some help ?
Sincerely Regards
Yefeng