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 <[email protected]> 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 <[email protected]> > >> 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 >> [email protected] >> http://lists.blender.org/mailman/listinfo/bf-committers >> > _______________________________________________ > Bf-committers mailing list > [email protected] > http://lists.blender.org/mailman/listinfo/bf-committers > -- - Campbell _______________________________________________ Bf-committers mailing list [email protected] http://lists.blender.org/mailman/listinfo/bf-committers
