[Bf-committers] bpy.dll

Campbell Barton ideasman42 at gmail.com
Thu Mar 24 01:30:49 CET 2011


Added support for windows r35735

Updated wiki.
http://wiki.blender.org/index.php/User:Ideasman42/BlenderAsPyModule

On windows the function needed exporting, defining Py_ENABLE_SHARED does this.

On Wed, Mar 23, 2011 at 6:45 PM, Paolo Basso <pa.basso at gmail.com> wrote:
> I tried also this way but I get the following error message (translated from
> italian):
>
> ImportError: DLL load failed: %1 is not a Win32 valid application.
>
> It is possible that the dll has to be compiled with the same compiler as
> python (visual studio)?
> I compiled using mgwin.
>
> http://docs.python.org/py3k/extending/windows.html
> 4.3. Using DLLs in Practice
>
> Thanks,
>
> P
>
> 2011/3/23 Mitchell Stokes <mogurijin at gmail.com>
>
>> On Windows, C Extension modules for Python have the extension .pyd
>> instead. So, try renaming the module from bpy.dll to bpy.pyd.
>>
>> Cheers,
>> Mitchell
>> _______________________________________________
>> Bf-committers mailing list
>> Bf-committers at blender.org
>> http://lists.blender.org/mailman/listinfo/bf-committers
>>
> _______________________________________________
> Bf-committers mailing list
> Bf-committers at blender.org
> http://lists.blender.org/mailman/listinfo/bf-committers
>



-- 
- Campbell


More information about the Bf-committers mailing list