Sikulix运行win2012报错:[error] RunTi
2019-12-24 本文已影响0人
佑岷
Sikulix运行在win7上面是好好的,想要移植到win server 2012报错:
[error] RunTime:loadLib: opencv_java342.dll (failed) probably dependent libs missing:
C:\Users\Administrator\AppData\Roaming\Sikulix\SikulixLibs\opencv_java342.dll: Can't find dependent libraries
[error] Save your work, correct the problem and restart the IDE!
[error] see: https://github.com/RaiMan/SikuliX1/wiki/macOS-Linux:-Support-Libraries-for-OpenCV-4
TERMINATING: problem with native library: opencv_java342.dll
[error] script [ test ] stopped with error in line 3
[error] java.lang.ExceptionInInitializerError ( java.lang.ExceptionInInitializerError )
[error] --- Traceback --- error source first
line: module ( function ) statement
3: main ( <module> ) click("1577151188884.png")
[error] --- Traceback --- end --------------
进入弹出的:https://github.com/RaiMan/SikuliX1/wiki/macOS-Linux:-Support-Libraries-for-OpenCV-4页面,
按照Raiman说的安装了VisualC++,然并卵没用。
翻了不少的资料后,隐隐约约觉得问题出在windows/system32中的dll缺失导致的,因此找到3.4.2版本opencv依赖的dll列表:
MSVFW32.dll
AVIFIL32.dll
AVICAP32.dll
ole32.dll
KERNEL32.dll
USER32.dll
OLEAUT32.dll
MFPlat.DLL
MF.dll
MFReadWrite.dll
d3d11.dll
api-ms-win-downlevel-shlwapi-l1-1-0.dll
将缺失的一个个从win7复制到win2012,然后重启Sikuli IDE,运行OK~