带robotgo的桌面自动化,在Windows 10上构建失败,>> [[

问题描述 投票:0回答:1
在运行此命令时,请获取github.com/go-vgo/robotgo我收到此错误:

C:\Users\<removed>\go\src\github.com\shirou\gopsutil\process\process_windows.go:174:13: undefined: windows.EnumProcesses C:\Users\<removed>\go\src\github.com\shirou\gopsutil\process\process_windows.go:212:32: undefined: windows.PROCESS_QUERY_LIMITED_INFORMATION C:\Users\<removed>\go\src\github.com\shirou\gopsutil\process\process_windows.go:216:12: undefined: windows.ERROR_INVALID_PARAMETER C:\Users\<removed>\go\src\github.com\shirou\gopsutil\process\process_windows.go:281:32: undefined: windows.PROCESS_QUERY_LIMITED_INFORMATION C:\Users\<removed>\go\src\github.com\shirou\gopsutil\process\process_windows.go:384:32: undefined: windows.PROCESS_QUERY_LIMITED_INFORMATION C:\Users\<removed>\go\src\github.com\shirou\gopsutil\process\process_windows.go:448:32: undefined: windows.PROCESS_QUERY_LIMITED_INFORMATION C:\Users\<removed>\go\src\github.com\shirou\gopsutil\process\process_windows.go:494:32: undefined: windows.PROCESS_QUERY_LIMITED_INFORMATION C:\Users\<removed>\go\src\github.com\shirou\gopsutil\process\process_windows.go:798:32: undefined: windows.PROCESS_QUERY_LIMITED_INFORMATION C:\Users\<removed>\go\src\github.com\shirou\gopsutil\process\process_windows.go:813:32: undefined: windows.PROCESS_QUERY_LIMITED_INFORMATION C:\Users\<removed>\go\src\github.com\shirou\gopsutil\process\process_windows.go:847:32: undefined: windows.PROCESS_QUERY_LIMITED_INFORMATION C:\Users\<removed>\go\src\github.com\shirou\gopsutil\process\process_windows.go:847:32: too many errors

Go版本为1.9

一旦我更新了sys / windows,就开始出现此异常:

D:\golang\prj4\src>go build main.go # github.com/go-vgo/robotgo In file included from ./bitmap/../base/str_io_c.h:2, from ./bitmap/goBitmap.h:17, from C:\Users\<removed>\go\src\github.com\go-vgo\robotgo\robotgo.go:45: ./bitmap/../base/zlib_util_c.h:2:10: fatal error: zlib.h: No such file or directory 2 | #include <zlib.h> | ^~~~~~~~ compilation terminated.

在运行此命令时,请获取github.com/go-vgo/robotgo,我收到此错误:C:\ Users \ 

\ go \ src \ github.com \ shirou \ gopsutil \ process \ process_windows.go:174 :13:未定义:windows ....

go zlib
1个回答
0
投票
issue #743 Github存储库中有一个封闭的#835(和shirou/gopsutil)。>>

Citation with the fixture

© www.soinside.com 2019 - 2024. All rights reserved.