mirror of
git://nv-tegra.nvidia.com/tegra/gst-src/nvgstapps.git
synced 2025-12-22 09:22:36 +03:00
6bafa48f47ad43d33ee446cf86f2b1da134f7868 - nvgstapps_src/nvgst_sample_apps/nvgstplayer-1.0/nvgst_asound_common.h c028fa403772288daf002520356e8e18cce5cb06 - nvgstapps_src/nvgst_sample_apps/nvgstplayer-1.0/nvgstplayer.h 33a285339d714d5546cddb92a710e418853470aa - nvgstapps_src/nvgst_sample_apps/nvgstplayer-1.0/nvgst_asound_common.c 582a142d1a3098aed3bb4c8f7329e8cdac7b0ed8 - nvgstapps_src/nvgst_sample_apps/nvgstplayer-1.0/nvgst_x11_common.c d3dee823127d19bcf050cb35c5e0962e9130d789 - nvgstapps_src/nvgst_sample_apps/nvgstplayer-1.0/nvgstplayer.c aaafd7fd4c0214a52bf73dd2a0ba0af08c675b85 - nvgstapps_src/nvgst_sample_apps/nvgstplayer-1.0/nvgst_x11_common.h 7152d9928416f55c6879ec0170a495f71eabf80d - nvgstapps_src/nvgst_sample_apps/nvgstipctestapp-1.0/Makefile.public 6913ed4a984b2247d1373f0e1b395c582fefb2bd - nvgstapps_src/nvgst_sample_apps/nvgstipctestapp-1.0/LICENSE 820c394e9e2e204fd1e289e3b0aa58c91339172b - nvgstapps_src/nvgst_sample_apps/nvgstipctestapp-1.0/nvgstipctestapp.c bd149086ce2fd243a4f2ef669945ed673aa459b9 - nvgstapps_src/nvgst_sample_apps/nvgstcapture-1.0/nvgstcapture.h ec4e84387d8e0e16529f7c8bcd7fee48c16c769c - nvgstapps_src/nvgst_sample_apps/nvgstcapture-1.0/nvgstcapture.c a5bdf6935960973677a005d9d28a04c023f5ec6f - nvgstapps_src/nvgst_sample_apps/nvgstcapture-1.0/nvgst_x11_common.c 87556b6e7da0ec3865546f10b7a58959cd8c6bfc - nvgstapps_src/nvgst_sample_apps/nvgstcapture-1.0/nvgst_x11_common.h Change-Id: I92e05f724736891e2f4b0cb29640ad9617b00ba3
This file explains the procedure to compile NvGstApps sources for hardfp(armhf)
ARM architecture.
--------------------------------------------------------------------------------
Prerequisites for nvgst-1.0 applications
--------------------------------------------------------------------------------
For nvgstcapture-1.0, nvgstplayer-1.0 and nvgstipctestapp-1.0 applications:
* You must install GStreamer-1.0 on the target board using apt-get, as follows:
sudo apt-get install gstreamer1.0-tools gstreamer1.0-alsa \
gstreamer1.0-plugins-base gstreamer1.0-plugins-good \
gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly \
gstreamer1.0-libav libgstreamer1.0-dev
* Download or copy the nvgstapps_src.tbz2 file on device and untar it.
tar -xpf nvgstapps_src.tbz2
* Compile nvgstapps with following procedures.
--------------------------------------------------------------------------------
Procedure to compile nvgstcapture-1.0:
--------------------------------------------------------------------------------
On the target, execute the following commands:
sudo apt-get install libgstreamer-plugins-base1.0-dev
sudo apt-get install libegl1-mesa-dev
sudo apt-get install libx11-dev libxext-dev
As the above steps will overwrite the sym-links to the hardware accelerated libegl
binary, to point back to the tegra version, execute the following commands:
Export ARM application binary interface based on the Linux and ARM platform:
Linux 64bit userspace support:
export TEGRA_ARMABI=aarch64-linux-gnu
Linux 32bit userspace and ARM hardfp support:
export TEGRA_ARMABI=arm-linux-gnueabihf
cd nvgstapps_src/nvgst_sample_apps/nvgstcapture-1.0
gcc nvgstcapture.c nvgst_x11_common.c -o nvgstcapture-1.0 \
$(pkg-config --cflags --libs gstreamer-1.0 gstreamer-plugins-base-1.0 \
gstreamer-pbutils-1.0 x11 xext gstreamer-video-1.0) -ldl
--------------------------------------------------------------------------------
Procedure to compile nvgstplayer-1.0:
--------------------------------------------------------------------------------
On the target, execute the following commands:
cd nvgstapps_src/nvgst_sample_apps/nvgstplayer-1.0
gcc nvgstplayer.c nvgst_x11_common.c nvgst_asound_common.c -o nvgstplayer-1.0 \
$(pkg-config --cflags --libs gstreamer-1.0 gstreamer-plugins-base-1.0 \
gstreamer-pbutils-1.0 gstreamer-video-1.0 x11 xext alsa)
--------------------------------------------------------------------------------
Procedure to compile nvgstipctestapp-1.0:
--------------------------------------------------------------------------------
On the target, execute the following commands:
cd nvgstapps_src/nvgst_sample_apps/nvgstipctestapp-1.0
gcc nvgstipctestapp.c -o nvgstipctestapp-1.0 \
$(pkg-config --cflags --libs gstreamer-1.0 gstreamer-plugins-base-1.0 \
gstreamer-pbutils-1.0 gstreamer-video-1.0 x11 gstreamer-video-1.0 gstreamer-app-1.0) -lm
* For nvgstcapture-1.0 usage, refer to
nvgstapps_src/nvgst_sample_apps/nvgstcapture-1.0/nvgstcapture-1.0_README.txt
* For nvgstplayer-1.0 usage, refer to
nvgstapps_src/nvgst_sample_apps/nvgstplayer-1.0/nvgstplayer-1.0_README.txt
* For nvgstipctestapp-1.0 usage, refer to
nvgstapps_src/nvgst_sample_apps/nvgstipctestapp-1.0/nvgstipctestapp-1.0_README.txt