1. 删除动态链接库的错误路径
2. purego 升级到 0.8.1
This commit is contained in:
parent
429a9ed8ec
commit
743a4223f2
@ -54,12 +54,12 @@ func getSystemLibrary() string {
|
|||||||
switch runtime.GOOS {
|
switch runtime.GOOS {
|
||||||
case "linux":
|
case "linux":
|
||||||
if runtime.GOARCH == "amd64" || runtime.GOARCH == "386" {
|
if runtime.GOARCH == "amd64" || runtime.GOARCH == "386" {
|
||||||
return "./libHikNetSDKPkg_linux_amd64.so"
|
return "libHikNetSDKPkg_linux_amd64.so"
|
||||||
} else {
|
} else {
|
||||||
return "./libHikNetSDKPkg_linux_arm64.so"
|
return "libHikNetSDKPkg_linux_arm64.so"
|
||||||
}
|
}
|
||||||
case "windows":
|
case "windows":
|
||||||
return "./HikNetSDKPkg_win_amd64.dll"
|
return "HikNetSDKPkg_win_amd64.dll"
|
||||||
default:
|
default:
|
||||||
panic(fmt.Errorf("GOOS=%s is not supported", runtime.GOOS))
|
panic(fmt.Errorf("GOOS=%s is not supported", runtime.GOOS))
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user