basler / gst-plugin-pylon

The official GStreamer plug-in for Basler cameras
BSD 3-Clause "New" or "Revised" License
40 stars 10 forks source link

How to compile? #64

Open March911 opened 1 year ago

March911 commented 1 year ago

1.Can I use an x86 architecture system to complete the compilation according to your prompts?

2.What is the final compiled product? Is it an. so file

Thank you very much!

michaelgruner commented 1 year ago

Hi @March911:

1.Can I use an x86 architecture system to complete the compilation according to your prompts?

Yes, you can build the project in a x86 architecture.

2.What is the final compiled product? Is it an. so file

The project builds a GStreamer plug-in. This is a specially formatted .so file that is loaded at runtime by the GStreamer core.

Are you using GStreamer?

If not, you might be more interested in using Pylon directly. Pylon is the SDK provided by Basler to interact with their cameras programmatically.

If yes, you're in the right place ;)

March911 commented 1 year ago

yes,i'm using GStreamer.

  1. I would like to know if it is possible to use cross compilation tools on x86 to compile. so files for the arm64 architecture. Currently, I have been prompted that some dependent library formats are not compatible (x86) (including libgstreamer 1.0. so, libgstvideo 1.0. so, and others)

  2. I have compiled libgstpylon.so based on your prompts on x86. Is this the final product? But I want to compile a version of arm64 because I ultimately want to use it in the gstreamer framework under the arm64 architecture machine. I hope you will not hesitate to give me your advice! thanks!

thiesmoeller commented 1 year ago

See this reference to the yocto cross build process https://github.com/basler/meta-basler-tools/tree/kirkstone/recipes-multimedia/gstreamer

For cross builds with meson you have to setup a meson cross file that describes your toolchain