Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add macos build support (tested on M2) #18

Open
Schoonmoeder opened this issue May 29, 2024 · 0 comments
Open

Add macos build support (tested on M2) #18

Schoonmoeder opened this issue May 29, 2024 · 0 comments

Comments

@Schoonmoeder
Copy link

I managed to build it on macos (M2) but I needed to change the Build command slightly.
please add / test following code in the make file

build-macos:
	@echo "Compiling source"
	@mkdir -p build
	env GOOS=darwin GOARCH=amd64 go build $(GO_EXTRA_BUILD_ARGS) -ldflags "-s -w -X main.version=$(VERSION)" -o build/chirpstack-simulator cmd/chirpstack-simulator/main.go

run
docker-compose run --rm chirpstack-simulator make clean build-macos

now you are able to start it on mac and also create configs like in the readme.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant