Hi,
pretty much towards the end of the build process (with makepanda --everything --no-fftw) I get this error:
Importing code library: libpandaexpress
Traceback (most recent call last):
File "<string>", line 1, in ?
File "<LocalPandaRoot>\panda3d\built\direct\..\..\direct\src\ffi\jGenPyCode.py", line 94, in ?
DoGenPyCode.run()
File "<LocalPandaRoot>\panda3d\built\direct\..\..\direct\src\ffi\DoGenPyCode.py", line 290, in run
generateNativeWrappers()
File "<LocalPandaRoot>\panda3d\built\direct\..\..\direct\src\ffi\DoGenPyCode.py", line 253, in generateNativeWrappers
exec('import %s as module' % moduleName)
File "<string>", line 1, in ?
ImportError: DLL load failed: Eine DLL-Initialisierungsroutine ist fehlgeschlagen. {dll-initialization failed}
Looking at the traceback as well as the python source, it seems it crashes while trying to load libpandaexpress.dll. But this library has successfully been build and is lying in build/bin.
The unsettling thing is, pview.exe crashes, too. As per my debugger, inside
WindowFramework::setup_trackball()
when trying to
_trackball = new Trackball("trackball");
it somehow jumps via trackball’s constructor into
ModifierButtons::set_button_list
(more details are not available with the optimized build) and crashes because inside that method this==NULL.
I had a hunch that these problems might have something to do with dependencies on different versions of the MS runtime dll. So i checked and all binaries generated by the build process depend on the 80 versions (as expected after building with MS Visual Studio 2005). Only ppython.exe and ppythonw.exe depend on 71 instead - so I’d guess these two don’t get built by makepanda, but are rather copied from the 3rd-parties directory.
In any case, I am clueless now. I had the same problem before with a build where I disabled more modules, so I thought maybe the problem lies there and did a new build with the settings as noted above.
It’s kinda frustrating because I’ve spent quite some time now all in all to get panda to build and it seems I’m just that close. But now I am hitting a brickwall…
Any ideas/suggestions will be greatly appreciated,
many thanks,
Max Hajek