Closed azsde closed 1 year ago
For some reason, following the steps:
cd internal/rpicamera/exe
make
cd ../../../
go run -tags rpicamera .
And then
make binaries
result in a binary that doesn't work on a RPi 3b+.
However, skipping the rpi exe part and running make binaries
works. Maybe I misunderstood the readme ?
Anyway it works now :)
Hello, instructions in the README are meant for compiling, not for cross-compiling.
You're trying to cross-compile, i.e. you're trying to build a binary for the Raspberry Pi on a amd64 machine.
In order to compile the server, you have to perform the operation on a Raspberry Pi.
If you want to cross compile, you can use Docker (make binaries
) or you have to manually setup a gcc instance for cross-compiling.
This issue is being locked automatically because it has been closed for more than 6 months. Please open a new issue in case you encounter a similar problem.
Which version are you using?
master (from git)
Which operating system are you using?
Describe the issue
After following the steps to compile rtsp-simple-server and uploading the binary to my raspberry pi, i get the following error:
2023/02/07 19:05:58 INF [path cam] [rpicamera source] ERR: fork/exec /dev/shm/rtspss-embeddedexe-1675793158294883745: exec format error
Describe how to replicate the issue
Did you attach the server logs?
yes
Did you attach a network dump?
no