|
From: Patrick H. <pa...@13...> - 2007-08-22 13:24:19
|
Ming Jia wrote: > Sorry for opening a new thread of the same problem, I just subscribe > this email list. >=20 > I have set the path to boost-python in system path. > That is set the C:\Program Files\boost\boost_1_34_0\lib to %PATH%, > and when using scons to build the pygmtl, the scons can find the correc= t > boost_python-vc80-mt-gd-1_34.dll under this path. >=20 > One thing that maybe helpful is that, when I use scons to build pygmtl,= > I get the following warning for all the files. >=20 > C:\Program Files\boost\boost_1_34_0\boost/utility/enable_if.hpp : > warning C4819: > The file contains a character that cannot be represented in the curren= t > code pa > ge (936). Save the file in Unicode format to prevent data loss >=20 >=20 > Is that related to my problem when issue "import gmtl" in python: > Traceback (most recent call last): > File "<pyshell#0>", line 1, in <module> > import gmtl > ImportError: DLL load failed: A dynamic link library (DLL) > initialization routine failed. >=20 > Another thing is that, right before the ImportError happens, there is a= > window pop up, and saying: >=20 > Runtime Error! > Program: C:\Program Files\Python25\pythonw.exe >=20 > R6034 > An application has made an attempt to load the C runtime library > incorrectly. >=20 > Thanks a lot for your help. It sounds as though you are mixing release and debug runtimes. According = to your previous post, you built PyGMTL with optimization enabled, but you a= re now saying that it is linked against boost_python-vc80-mt-gd-1_34.dll, wh= ich is linked against the debug Visual C++ runtime. If you need to use the de= bug runtime, you need to have a version of python25.dll that is also linked against the debug Visual C++ runtime (python25d.dll, IIRC). -Patrick --=20 Patrick L. Hartling VP Engineering, Infiscape Corp. http://www.infiscape.com/ |