mpolinowski / RTSPtoWebRTC

IP Camera RTSP Stream to WebRTC for your Webpage
MIT License
56 stars 19 forks source link

running on Jetson Xavier NX #4

Open azrin1972 opened 2 years ago

azrin1972 commented 2 years ago

hi,

I'm trying to run this from a Jetson Xavier NX.

I'm installing go using apt-get install golang instead of downloading it from the go website

check the go version I received this go version go1.10.4 linux/arm64

calling go run . i received this unfortunately go run: no go files listed

I've tried go run *.go and I received this:

config.go:12:2: cannot find package "github.com/deepch/vdk/av" in any of:
    /usr/lib/go-1.10/src/github.com/deepch/vdk/av (from $GOROOT)
    /home/ubuntu/go/src/github.com/deepch/vdk/av (from $GOPATH)
stream.go:8:2: cannot find package "github.com/deepch/vdk/format/rtspv2" in any of:
    /usr/lib/go-1.10/src/github.com/deepch/vdk/format/rtspv2 (from $GOROOT)
    /home/ubuntu/go/src/github.com/deepch/vdk/format/rtspv2 (from $GOPATH)
http.go:12:2: cannot find package "github.com/deepch/vdk/format/webrtcv3" in any of:
    /usr/lib/go-1.10/src/github.com/deepch/vdk/format/webrtcv3 (from $GOROOT)
    /home/ubuntu/go/src/github.com/deepch/vdk/format/webrtcv3 (from $GOPATH)
http.go:13:2: cannot find package "github.com/gin-gonic/gin" in any of:
    /usr/lib/go-1.10/src/github.com/gin-gonic/gin (from $GOROOT)
    /home/ubuntu/go/src/github.com/gin-gonic/gin (from $GOPATH)

anything that I missed?

Thank you

mpolinowski commented 2 years ago

Hey,

this version is pretty old - I would consider installing Go from the Go website. There might be some issues with your version - I have not tried it.

But the dependencies you are missing are defined in the go.mod file and should be installed in your GOROOT or GOPATH. You can check your Go environment with:

go env

Are you working outside of your GOPATH directory?

EDIT

You can also manually install the dependencies:

go get -u github.com/deepch/vdk/av
azrin1972 commented 2 years ago

ok got it running

I found the right architecture for my jetson - its the arm64 version not amd64

https://go.dev/dl/go1.17.5.linux-arm64.tar.gz

now testing the rest

Thanks @mpolinowski

azrin1972 commented 2 years ago

I'm getting CODEC not found error

image