"DLL load failed: the specified module cannot be found."
В обсуждении на форуме официального сайта Панды пишут примерно тоже самое:
Цитата
The demo won't work because importing jsbsimerrors out with "DLL load failed: the specified module cannot be found." The JSBSim DLL isn't on the SF.net page anymore but i found another one. Copied it half a dozen places and it still fails. So I tried to compile the source to make my own pyd but (after numerous code alterations to get the bits to point to the right places) that fails too due to numerous inheritance issues. (E.G: "error C2039: XXX is not a member of YY") I tried just removing the various bits it was complaining about in hopes that it would compile anyway but after 3 files of this I gave up when it started failing on critical seeming bits like "set initial altitude." Can anyone help?
Работает ли этот демо-пример у вас? И как можно исправить эту ошибку?
Какую версию панды используете? Биндинг под питон 2.4, 2.5 - скорее всего проблема в этом. Надо перекомпилировать под актуальную версию, но, судя по форуму, у народа это не очень получилось. Ну либо как вариант ставить старую версию панды.
Нашел инструкцию, как решить проблему, но не понимаю, где нужно выполнить 4 и 5 пункты:
Цитата
(4) Build and install JSBSim libraries. ./configure --enable-libraries --prefix=<jsbsim-path> make make install (5) Build and install the Python bindings. export JSBSIM_ROOT=<jsbsim-path> cmake . make If everything goes right and no errors happen either - JSBSim-Python/src/_JSBSim.pyd will be created.
Это выполняется из командной строки, после установки cmake. Хотя я никогда не использовал cmake под вин. Помимо самого cmake потребуется компилятор, но в этом ридми ничего не сказано по поводу того чем оно компилируется, надо посмотреть остальную документацию.