go-vgo / robotgo

RobotGo, Go Native cross-platform RPA and GUI automation @vcaesar
Apache License 2.0
9.47k stars 862 forks source link

event/goEvent.h: No such file or directory #581

Closed huizhang001 closed 1 year ago

huizhang001 commented 1 year ago
  1. Please speak English (English only), this is the language everybody of us can speak and write.
  2. Please take a moment to search that an issue doesn't already exist.
  3. Please make sure Golang, GCC is installed correctly before installing RobotGo.
  4. Please give all relevant information below for bug reports, incomplete details will be handled as an invalid report.

You MUST delete the content above including this line before posting, otherwise your issue will be invalid.

package main

import (
    "github.com/go-vgo/robotgo"
)

func main() {
    robotgo.TypeStr("Hello World")
}

Description

PS D:\study\projects\src\test> go install github.com/goware/modvendor@v0.5.0 PS D:\study\projects\src\test> go mod vendor PS D:\study\projects\src\test> modvendor -copy="/*.c */.h /*.proto" -v PS D:\study\projects\src\test> go run .\test.go

github.com/robotn/gohook

vendor\github.com\robotn\gohook\hook.go:22:10: fatal error: event/goEvent.h: No such file or directory 22 | #include "event/goEvent.h" | ^~~~~ compilation terminated. ...

caihy05 commented 1 year ago

The copy directory was overwritten 直接拷贝目录进行覆盖

huizhang001 commented 1 year ago

@caihy05 留个v or +我 huizhang_001

vcaesar commented 1 year ago

Closed because of duplicates. #174

caihy05 commented 1 year ago

不好意思才看到,问题还没解决吗,主要是go mod vendor 缺了东西动态链接库文件没有拷贝,建议不执行go mod vendor ,不需要vendor目录