GStreamer pre-record element - Getting Started - Building GStreamer pre-record element

From RidgeRun Developer Connection
Jump to: navigation, search



Previous: Getting Started/Getting the code Index Next: Examples





Building the plugin

Select the appropriate libdir according to your system.

Platform Libdir
x86 (Debian) --libdir /usr/lib/x86_64-linux-gnu/
Aarch64 (i.e: NVIDIA Jetson) --libdir /usr/lib/aarch64-linux-gnu/

In order to build the project run the following commands. Note that the libdir may vary according to your system.

# Change according to the table above
./autogen.sh --libdir /usr/lib/x86_64-linux-gnu/ 
make

The autogen.sh script will automatically run the configure script. In case a more complex configuration is needed, the configure step may be executed manually:

./autogen.sh --noconfigure
./configure --libdir /usr/lib/x86_64-linux-gnu/ $ADVANCED_OPTIONS
make

The plugin is installed to the GStreamer's default plug-in location in the file system by running:

sudo make install

If you don't want to install the plugin in the default location, it may also be found by setting GST_PLUGIN_PATH to the library location. For example:

export GST_PLUGIN_PATH=$HOME/gst-prerecord/gst/.libs
gst-inspect-1.0 prerecordsink

Troubleshooting

Can't locate gtkdoc-common.pl

If you see the following error when building:

Can't locate gtkdoc-common.pl in @INC (@INC contains: /usr/share/gtk-doc/data /etc/perl /usr/local/lib/aarch64-linux-gnu/perl/5.26.1 /usr/local/share/perl/5.26.1 /usr/lib/aarch64-linux-gnu/perl5/5.26 /usr/share/perl5 /usr/lib/aarch64-linux-gnu/perl/5.26 /usr/share/perl/5.26 /usr/local/lib/site_perl /usr/lib/aarch64-linux-gnu/perl-base) at ../../common/gstdoc-scangobj line 38.

Run the following instructions:

cd common
git checkout master
git pull origin master


Previous: Getting Started/Getting the code Index Next: Examples