# Compiling ziti from SDK

**URL:** <https://openziti.discourse.group/t/compiling-ziti-from-sdk/479>\
**Category:** Building/Development\
**Created:** [May 9, 2022, 8:27pm UTC](https://openziti.discourse.group/t/compiling-ziti-from-sdk/479 "2022-05-09T20:27:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![markamind](https://yyz2.discourse-cdn.com/free1/user_avatar/openziti.discourse.group/markamind/32/157_2.png) [@markamind](https://openziti.discourse.group/u/markamind)\
**Post date:** [May 9, 2022, 8:27pm UTC](https://openziti.discourse.group/t/compiling-ziti-from-sdk/479/1 "2022-05-09T20:27:07Z")

</div>

I am still working out how to program in Golang. I find it really interesting and a language that I definitely want to develop more apps in.

One thing that I am stuck on is how to compile the ziti binary.

> **[sdk-golang/ziti at main · openziti/sdk-golang](https://github.com/openziti/sdk-golang/tree/main/ziti)**
>
> Ziti SDK for Golang. Contribute to openziti/sdk-golang development by creating an account on GitHub.

I have done the following steps

1. go mod init
2. I copied the contents of the go mod file from the parent directory.

When I enter go build.. nothing happens

When I enter go build ziti.go.. I get the following

# command-line-arguments

./ziti.go:154:21: undefined: Options  
./ziti.go:205:54: undefined: Options  
./ziti.go:207:13: undefined: DefaultOptions  
./ziti.go:245:37: undefined: ServiceRemoved  
./ziti.go:261:37: undefined: ServiceAdded  
./ziti.go:265:38: undefined: ServiceChanged

I really don't know what I am doing..

> any tips?

---

<div class="post-metadata">

**Author:** ![TheLumberjack](https://yyz2.discourse-cdn.com/free1/user_avatar/openziti.discourse.group/thelumberjack/32/113_2.png) [@TheLumberjack](https://openziti.discourse.group/u/TheLumberjack)\
**Post date:** [May 10, 2022, 9:56am UTC](https://openziti.discourse.group/t/compiling-ziti-from-sdk/479/2 "2022-05-10T09:56:44Z")

</div>

You probably need go 1.18 now. You should just be able to run

```auto
go build ./... -o outputfolder

```

There’s tons of really good resources online for learning go. Usually for me it comes down to my go version when the above command doesn’t just work
