robotgo icon indicating copy to clipboard operation
robotgo copied to clipboard

fatal error: event/goEvent.h: No such file or directory

Open shardyr opened this issue 2 years ago • 1 comments

  • Robotgo version (or commit ref): v0.100.10
  • Go version: go1.18.3
  • Gcc version: 11.1.0
  • Operating system and bit: Windows 10 64 bit
  • Resolution: 1920x1080
  • Can you reproduce the bug at Examples:
    • [x] Yes (provide example code)
    • [ ] No
    • [ ] Not relevant
  • Provide example code:
package main

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

func main() {
	robotgo.Click("right")
}
  • Log gist:
$ go run .
# 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.

Description

After running go mod vendor I get this error. I tried fixing it by using this https://github.com/go-vgo/robotgo/issues/174#issuecomment-686369737 but it didn't work.

shardyr avatar Jul 31 '22 15:07 shardyr

@shardyr hello! In my case (I am using xubuntu), the problem was with installing/updating dependencies command - sudo apt install libx11-dev xorg-dev libxtst-dev libpng++-dev Software updater was set to fetch OS packages from local country server but there were missing or outdated packages. After I set it to Main server , all required packages were downloaded and installed properly and the error gone

svirmi avatar Aug 03 '22 06:08 svirmi

@shardyr Hello, have you resolved it. I used the modvendor method on the Windows system and still couldn't solve my problem??????????????????????????????????

huizhang001 avatar Apr 22 '23 12:04 huizhang001

Closed because of duplicates. #174

vcaesar avatar May 09 '23 18:05 vcaesar