Commit ae20f5c7 authored by 赵啸非's avatar 赵啸非

修改so加载路径

parent 23184d01
...@@ -44,7 +44,8 @@ public abstract class AbstractHikService { ...@@ -44,7 +44,8 @@ public abstract class AbstractHikService {
strDllPath = System.getProperty("user.dir") + "\\lib\\HCNetSDK.dll"; strDllPath = System.getProperty("user.dir") + "\\lib\\HCNetSDK.dll";
else if (osSelect.isLinux()) else if (osSelect.isLinux())
//Linux系统加载库路径 //Linux系统加载库路径
strDllPath = System.getProperty("user.dir") + "/lib/libhcnetsdk.so"; // strDllPath = System.getProperty("user.dir") + "/lib/libhcnetsdk.so";
strDllPath = "/home/jx/lib/libhcnetsdk.so";
hCNetSDK = (HCNetSDK) Native.loadLibrary(strDllPath, HCNetSDK.class); hCNetSDK = (HCNetSDK) Native.loadLibrary(strDllPath, HCNetSDK.class);
} catch (Exception ex) { } catch (Exception ex) {
log.error("loadLibrary: " + strDllPath + " Error: " + ex.getMessage()); log.error("loadLibrary: " + strDllPath + " Error: " + ex.getMessage());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment