GstCUDA - Evaluating GstCUDA: Difference between revisions

From RidgeRun Developer Wiki
No edit summary
No edit summary
Line 112: Line 112:
To use the binary provided by RidgeRun, export the location of the evaluation binary libraries in your environment.
To use the binary provided by RidgeRun, export the location of the evaluation binary libraries in your environment.
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
export GST_PLUGIN_PATH=${GST_PLUGIN_PATH}:/path/to/evaluation/binary/usr/lib/aarch64-linux-gnu/gstreamer-1.0/
export GST_PLUGIN_PATH=${GST_PLUGIN_PATH}:${EVAL_DIR}/usr/lib/aarch64-linux-gnu/gstreamer-1.0/
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/path/to/evaluation/binary/usr/lib/aarch64-linux-gnu/
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${EVAL_DIR}/usr/lib/aarch64-linux-gnu/
</syntaxhighlight>
</syntaxhighlight>
where ''/path/to/evaluation/binary'' is the location in your file system where you have the binary provided by RidgeRun.
where ''$EVAL_DIR=/path/to/evaluation/binary'' is the location in your file system where you have the binary provided by RidgeRun.


Alternatively, you may just copy the binaries into the standard GStreamer plug-in search path as the follow instructions:
Alternatively, you may just copy the binaries into the standard GStreamer plug-in search path as the follow instructions:
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
sudo cp /path/to/evaluation/binary/usr/lib/aarch64-linux-gnu/gstreamer-1.0/{libgstcudaexamplefilter.so, libgstcuda.so} /usr/lib/aarch64-linux-gnu/gstreamer-1.0
sudo cp $EVAL_DIR/usr/lib/aarch64-linux-gnu/gstreamer-1.0/{libgstcudaexamplefilter.so,libgstcuda.so} /usr/lib/aarch64-linux-gnu/gstreamer-1.0


sudo cp /path/to/evaluation/binary/usr/lib/aarch64-linux-gnu/{libgstcuda-1.0.so, libgstcuda-1.0.so.0, libgstcuda-1.0.so.0.100.0} /usr/lib/aarch64-linux-gnu
sudo cp $EVAL_DIR/usr/lib/aarch64-linux-gnu/{libgstcuda-1.0.so, libgstcuda-1.0.so.0,libgstcuda-1.0.so.0.100.0} /usr/lib/aarch64-linux-gnu


sudo cp /path/to/evaluation/binary/usr/include/gstreamer-1.0/sys/cuda/{gstcudaalgorithm.hpp, gstcudabasefilter.h, gstcuda.h} /usr/include/gstreamer-1.0/sys/cuda
sudo cp $EVAL_DIR/usr/include/gstreamer-1.0/sys/cuda/{gstcudaalgorithm.hpp,gstcudabasefilter.h,gstcuda.h} /usr/include/gstreamer-1.0/sys/cuda
</syntaxhighlight>
</syntaxhighlight>



Revision as of 23:38, 27 November 2017