Building bridge from source


I'm trying to build the agent from source and I'm getting an error.
I used mingw64.
This is the error after I built it:

panic: Failed to load C:\Users\Owner\AppData\Roaming\systray\systray.dll: %1 is
not a valid Win32 application.

goroutine 1 [running, locked to thread]:
panic(0x9366a0, 0xc042139650)
        C:/Go/src/runtime/panic.go:500 +0x1af
        C:/Go/src/syscall/dll_windows.go:282 +0x71
syscall.(*LazyProc).Call(0xc042139080, 0xc04211f9b0, 0x2, 0x2, 0x653e6c, 0x471c1
0, 0xc04207deb8, 0xc04207dec0)
        C:/Go/src/syscall/dll_windows.go:303 +0x36
evel/src/ +0xc1
evel/src/ +0xc1
evel/trayicon.go:48 +0xd2
evel/main.go:275 +0x4a

Any idea on what went wrong?

Double check your antivirus is set to exclude the Arduino stuff for now and see if that helps.

Also could you try Run As Administrator

Nah. none of this worked, but I did manage to build it fine.
I was using the wrong gcc toolchain I guess and also needed to use the instead of go build command.
It needs i686-w64-mingw32-gcc instead.
I was able to build and the new compiled exe accepted my connection and convert the HTTP to WS just fine, so everything looks good.
Before I was getting a CORS violation using the Arduino released version, because CORS only allows connections from
I just need to see how to communicate and do the other stuff now.