Go to cross compilation programming for the revel framework
I am using Revel framework to build a web application. I am cross-compiling it for ARM using the command
GOOS=linux GOARCH=arm revel package mitm
This works great, however I just included the library github.com/google/gopacket
and now the compiled assembly is compromised (it works fine on OSX which I am developing).
I get:
ERROR 2015/07/27 09:01:30 build.go: 101: # mitm / app / controller go / src / webserver / app / controller / ArpScan.go: 88: undefined: pcap.OpenLive go / src / webserver / app / controller / ArpScan.go: 88: undefined: pcap.BlockForever go / src / webserver / app / controller / ArpScan.go: 114: undefined: pcap.Handle go / src / webserver / app / controller / ArpScan.go: 145: undefined: pcap.Handle
pcap is a library imported from gopacket:
import "github.com/google/gopacket/pcap
"
My question is, how do I get it to cross-compile this library?
I ran Dave Cheney go-crosscompile-build-all
( link ) but this just builds the standard library.
source to share