After much trial and error, I was finally able to compile Blender source code to a 64-bit Python module that can be used for developing Blender Python scripts in Eclipse. Below are the steps that finally worked for me.
- Install the latest Windows version of Cmake from http://www.cmake.org/cmake/resources/software.html
- Install Python version 3.3.x from http://www.python.org/download
- Install the 64-bit SlikSVN subversion client from http://www.sliksvn.com
- Setup MinGW-w64
- Download MinGW-w64 from here. Note that this must include gcc version 4.7.0 to work successfully.
- Extract the mingw64 directory from the downloaded file to the root of the C drive.
- Add C:\mingw64\bin to the system Path variable.
- Retrieve blender source code by running the following commands in a Windows command shell:
svn checkout https://svn.blender.org/svnroot/bf-blender/tags/blender-2.69-release/blender/ blender
svn checkout https://svn.blender.org/svnroot/bf-blender/tags/blender-2.69-release/lib/mingw64/ lib/mingw64
- Configure blender by running the following commands:
cmake -D WITH_CYCLES=OFF -D WITH_PYTHON_INSTALL=OFF -D WITH_PLAYER=OFF -D WITH_PYTHON_MODULE=ON -G "MinGW Makefiles" ..\blender
- Make blender by running the following command:
- Run the following commands to install the Blender python modules:
copy bin\bpy.pyd C:\Python33\Lib\site-packages\
copy bin\*.dll C:\Python33\Lib\site-packages\
xcopy /E bin\2.69 C:\Python33\2.69\
- Test the installation by running the following command:
python -c "import bpy ; bpy.ops.render.render(write_still=True)"