I have followed [this page](<a href="http://wiki.blender.org/index.php/User:Ideasman42/BlenderAsPyModule">http://wiki.blender.org/index.php/User:Ideasman42/BlenderAsPyModule</a>) to build blender 2.63 as standalone python module on windows, using MSVC9.<div>
<br></div><div>It failed for not found header file `utfconv.h`. So I add following code to `blender/intern/ghost/CMakeLists.txt`:</div><div><br></div><div>```</div><div><div>if(WIN32)</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>list(APPEND INC</div>
<div><span class="Apple-tab-span" style="white-space:pre">              </span>../utfconv</div><div><span class="Apple-tab-span" style="white-space:pre">   </span>)</div><div>endif()</div></div><div>```</div><div><br></div><div>Now I get `bpy.pyd` and it works well in interactive python command line. But when I run my scripts using:</div>
<div><br></div><div>```</div><div>python xxx.py</div><div>```</div><div><br></div><div>I faied and said:</div><div><br></div><div><div>> read blend xxx.py</div><div>> Failed to read blend file: "xxx.py", not a blend file</div>
<div>> ...</div></div><div><br></div><div>I found there is</div><div><br></div><div>```</div><div>BLI_argsParse(ba, 4, load_file, C)</div><div>```</div><div><br></div><div>in main function of `source/creator/creator.c`. So I used a `ifndef` to disable it.</div>
<div><br></div><div>I read the guideline of the bug tracker. It seems that it's proper to post it here. Maybe it will help someone who want use it as standalone python module on windows.</div>