when import the mh,error with "ImportError: DLL load failed"

MakeHuman python API, python plugins, etc

Moderator: joepal

Re: when import the mh,error with "ImportError: DLL load failed"

Postby gsnake » Wed Feb 17, 2010 9:22 am

How to define the makehuman_as_module ?
does use the command :
gcc -g -Wall -shared -D MAKEHUMAN_AS_MODULE -o mh.pyd ./src/main.c ./src/glmodule.c ./src/core.c ./include/core.h ./include/glmodule.h -IF:/Python26/include -IF:/MinGW/include/SDL -I./include -LF:/Python26/libs -lpython26 -lmingw32 -lSDLmain -lSDL -mconsole -lglu32 -lopengl32 -lgdi32 -lmsvcrt -lwinmm?
gsnake
 
Posts: 27
Joined: Sat Feb 06, 2010 6:17 am

Re: when import the mh,error with "ImportError: DLL load failed"

Postby gsnake » Fri Feb 19, 2010 4:22 pm

What is the file format in the command "lpython26 -lmingw32 -lSDLmain -lSDL -mconsole -lglu32 -lopengl32 -lgdi32 -lmsvcrt -lwinmm"?
Does the .dll meet the requirement?
Thanks.
gsnake
 
Posts: 27
Joined: Sat Feb 06, 2010 6:17 am

Re: when import the mh,error with "ImportError: DLL load failed"

Postby mflerackers » Sat Feb 20, 2010 2:10 am

-o mh.pyd : means the output file needs to be called mh.pyd
-shared : means dll
-D MAKEHUMAN_AS_MODULE : should define MAKEHUMAN_AS_MODULE

Did you modify any of the C or H files?
MakeHuman project Developer
mflerackers
 
Posts: 636
Joined: Thu Feb 05, 2009 11:53 am
Location: Kyoto

Re: when import the mh,error with "ImportError: DLL load failed"

Postby gsnake » Sat Feb 20, 2010 1:44 pm

No,I didn't modify any files of the c and H,all stay the same as they are in the svn

mflerackers wrote:-o mh.pyd : means the output file needs to be called mh.pyd
-shared : means dll
-D MAKEHUMAN_AS_MODULE : should define MAKEHUMAN_AS_MODULE

Did you modify any of the C or H files?
gsnake
 
Posts: 27
Joined: Sat Feb 06, 2010 6:17 am

Previous

Return to Python scripts

Who is online

Users browsing this forum: No registered users and 1 guest

cron