# \[SOLVED\] Build packetbeat on windows

**URL:** https://discuss.elastic.co/t/solved-build-packetbeat-on-windows/35161
**Category:** Beats
**Tags:** packetbeat
**Created:** [November 20, 2015, 2:28pm UTC](https://discuss.elastic.co/t/solved-build-packetbeat-on-windows/35161 "2015-11-20T14:28:41Z")
**Posts on this page:** 1
**Showing post:** 7

<div class="post-metadata">

### Author: ![bering](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bering/32/4044_2.png) [@bering](https://discuss.elastic.co/u/bering)
#### Post date: [December 8, 2015, 10:12pm UTC](https://discuss.elastic.co/t/solved-build-packetbeat-on-windows/35161/7 "2015-12-08T22:12:50Z")

</div>

I have just tried to build packetbeat again from my mac, I cloned the new beats with git clone [https://github.com/elastic/beats](https://github.com/elastic/beats)  
From src/github.com/elastic/beats/packetbeat I can run `make` without any errors but running `make crosscompile` for darwin and windows gives me this error:

```
go get github.com/mitchellh/gox
mkdir -p build/bin
gox -output="build/bin/{{.Dir}}-{{.OS}}-{{.Arch}}" -os="darwin windows" 
Number of parallel builds: 7

--> windows/amd64: github.com/elastic/beats/packetbeat
--> darwin/amd64: github.com/elastic/beats/packetbeat
--> windows/386: github.com/elastic/beats/packetbeat
--> darwin/386: github.com/elastic/beats/packetbeat

4 errors occurred:
--> darwin/amd64 error: exit status 2
Stderr: # github.com/elastic/beats/packetbeat/sniffer
sniffer/sniffer.go:26: undefined: pcap.Handle
sniffer/sniffer.go:31: undefined: pcap.Dumper

--> windows/amd64 error: exit status 2
Stderr: # github.com/elastic/beats/packetbeat/sniffer
sniffer/sniffer.go:26: undefined: pcap.Handle
sniffer/sniffer.go:31: undefined: pcap.Dumper

--> darwin/386 error: exit status 2
Stderr: # github.com/elastic/beats/packetbeat/sniffer
sniffer/sniffer.go:26: undefined: pcap.Handle
sniffer/sniffer.go:31: undefined: pcap.Dumper

--> windows/386 error: exit status 2
Stderr: # github.com/elastic/beats/packetbeat/sniffer
sniffer/sniffer.go:26: undefined: pcap.Handle
sniffer/sniffer.go:31: undefined: pcap.Dumper

make: *** [crosscompile] Error 1

```

Can anyone see what I am missing and how the get past this message?

---

_[View the full topic](https://discuss.elastic.co/t/solved-build-packetbeat-on-windows/35161)._
