-
Notifications
You must be signed in to change notification settings - Fork 46
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
How to build the "webcam" example for raspi os (32bit) on linux amd64 machine? #37
Comments
@bbasic thank you for checking out the project. |
I also experienced the same problem. (cross compiling from m1 macos to arm64) |
Thanks for the reply.
Or is this a zig issue? |
I followed you instructions. But I get some errors:
I looked for this constants in v4l2 and they are existing there, but the go compiler doesn't find them. I'm using |
Hi @y4roc You only need to use zig if you are cross-compiling the code (from a non-linux machine). If you are building on Linux, please follow the on-device build. If you are cross-compiling (say from MacOS), make sure you have the latest zig language compiler installed on your local machine. Then follow the instructions. Hope that helps. |
If you are vendoring (go mod) in this package, the 'include' directory (with the C headers) will be missing from the vendor directory. To fix, manually copy the include directory from this repo, to vendor/github.com/vladimirvivien/go4vl/. Note, when you checkout this project and compile directly, you will not see this error, since the include folder is present. |
Hi, apologies for the late follow. |
Hi @vladimirvivien , when compiling as standalone, this project works fine. But most of the devs, would want to use this as a package or library. And the errors reported above, happen when devs vendor in the code. |
When I try to build the example in
go4vl/examples/webcam
directory on my machine (linux amd64) for ARM architecture I get following error:What I am doing wrong?
What should I do?
The text was updated successfully, but these errors were encountered: