Something wrong still happens... I compile the source using cmake and MinGW and everything seems to work in the right way. I get the bpy.pyd file and successfully copy it together with the other folders in the python32 directory (as explained in the wiki page). However when I run the python 32 interpreter and try to import the bpy module I get the same error message as before (ImportError: DLL load failed: %1 is not a Win32 valid application).
I tried to compile the source also with visual studio 10 but, among the others, I got the following error message: C:\temp_blender\bin\Debug\bpy.pyd : fatal error LNK1169: one or more symbols defined more then once Am I doing something wrong?? Cheers, P 2011/3/24 Campbell Barton <[email protected]> > 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 > _______________________________________________ Bf-committers mailing list [email protected] http://lists.blender.org/mailman/listinfo/bf-committers
