Closed amateusz closed 6 years ago
I suspect that you're on an old version of Go. The current version is 1.10.3
and the oldest version that is known to work with TTN is 1.8
.
Could you please comment with the output of go version
and go env
?
Note that you can (and probably should) set up your development environment on a regular machine, and cross-compile for the Raspberry Pi. Running make build
with something like GOOS=linux GOARCH=arm GOARM=7
or GOOS=linux GOARCH=arm64
(not 100% sure) should give you binaries that will run on the RPi.
I was indeed on 1.7.4
installed from apt.
Now as I used this gist I'm on 1.10.1
and it builds with no errors.
I haven't taken the plunge to setup cross-compile env... Oh, is it as simple as adding some flags to make build
on regular machine? By the way, these flags seem to be CGO_ENABLED=0 GOOS=linux GOARCH=arm
as per my build here on RPi 3.
I might be terribly mistaken as it seems to be too severe to be true, but the regular build fails for me.
This is a bug report for the backend.
I want to setup development environment and compile ttn's source (not any fork) as guided in Development section
I followed those instructions. Fulfilled all the deps.
The step
make test
fails, and (I assume) consecutivelymake build
fails as well. Logs:make test
make build
undefined: sort.Slice
?? I'm seeing golang for the first time..I'm compiling for
release/ttnctl-linux-arm
Raspberry Pi model 3.