-
Notifications
You must be signed in to change notification settings - Fork 37
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
Getting gst_message_stringer.go:17:10: undefined: Message while trying to deploy to docker #31
Comments
Hi, |
Thanks for your reply. I think you're right. Whenever I remove CGO_ENABLED following errors start to come up:
I'm using golang:1.16.6 image as the image for development environment, Is it possible to install gstreamer there? |
Hi, Saeed! All these libraries must be installed on the system. It won't work without them. It's not a mistake.
|
In order to install gstreamer from source coude, you can refer the guideline below |
Thanks for your help. Is it possible to link to GStreamer libraries statically? Do I need to recompile it from the source? |
If you built gstreamer, you can see numerous libraries generated in dynamic linking form. It is not only hard to make it but also just time consuming stuff. You can install gstreamer in several ways. The most convenient way is to use package manager like apt-get, yum and somethings like that. Once you properly install gstreamer on your system, your app will look up gstreamer libraries on system path and found. For example, you need a video player to play movie.mp4 file where movie.mp4 is your app and video player is gstreamer. |
Building a project which depends on go-gst with this command:
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -o main .
results in the following errors:
The text was updated successfully, but these errors were encountered: