GStreamer Daemon - Building GStreamer Daemon: Difference between revisions

From RidgeRun Developer Wiki
No edit summary
No edit summary
Line 79: Line 79:
== Building GStreamer Daemon ==
== Building GStreamer Daemon ==


GStreamer Daemon is an [https://www.gnu.org/software/automake/manual/html_node/Autotools-Introduction.html Autotools] project. This makes it easy to build software packages for a variety of operating systems and platforms, including embedded devices.  
GStreamer Daemon is an [https://www.gnu.org/software/automake/manual/html_node/Autotools-Introduction.html Autotools] a [https://mesonbuild.com/ Meson] project. This makes it easy to build software packages for a variety of operating systems and platforms, including embedded devices.  


=== Building for x86 ===
=== Autotools ===
 
==== Building for x86 ====


Building for a host computer is straightforward. You may run the following commands:
Building for a host computer is straightforward. You may run the following commands:
Line 93: Line 95:
Specify <tt>./configure --prefix $INSTALL_PATH</tt> if you want the build to be configured for installation in a directory other than '''/usr/local'''.
Specify <tt>./configure --prefix $INSTALL_PATH</tt> if you want the build to be configured for installation in a directory other than '''/usr/local'''.


=== Building for Other Platforms ===
==== Building for Other Platforms ====


The process to build for other platforms is similar that the one for x86.  
The process to build for other platforms is similar that the one for x86.  
Line 104: Line 106:
In the previous commands ''<platform-host-name>'' is the prefix that would be added to the cross-compiler as: ''<platform-host-name>-gcc". I.E.: ''arm-none-linux''.  
In the previous commands ''<platform-host-name>'' is the prefix that would be added to the cross-compiler as: ''<platform-host-name>-gcc". I.E.: ''arm-none-linux''.  


=== Advanced Configuration ===
==== Advanced Configuration ====


The following command may be used as a template for more advanced configurations
The following command may be used as a template for more advanced configurations
Line 117: Line 119:
</syntaxhighlight>
</syntaxhighlight>


== Installing the Binaries ==
==== Installing the Binaries ====


Once the <tt>make</tt> command completes, you can install the generated binaries:
Once the <tt>make</tt> command completes, you can install the generated binaries:
Line 129: Line 131:
sudo make install
sudo make install
</syntaxhighlight>
</syntaxhighlight>
=== Meson ===
==== Building for x86 ====
Building for a host computer is straightforward. You may run the following commands:
<syntaxhighlight lang="bash">
mkdir build
meson build
ninja -C build
</syntaxhighlight>
Specify <tt>./configure --prefix $INSTALL_PATH</tt> (we recommend <tt>meson --prefix=/usr buildmeson/ </tt>)if you want the build to be configured for installation in a directory other than '''/usr/local'''.


== Common build problems and how to resolve them ==
== Common build problems and how to resolve them ==

Revision as of 20:28, 26 July 2019