
This file explains the procedure to compile NvGstApps sources for hardfp(armhf)
ARM architecture.


--------------------------------------------------------------------------------
                            Prerequisites for nvgst-0.10 applications
--------------------------------------------------------------------------------
For nvgstcapture-0.10 and nvgstplayer-0.10 applications:

* You must install GStreamer-0.10 on the target board using apt-get, as follows:

  sudo apt-get install gstreamer-tools gstreamer0.10-alsa \
    gstreamer0.10-plugins-good gstreamer0.10-plugins-base \
    gstreamer0.10-plugins-ugly gstreamer0.10-plugins-bad \
    libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev


--------------------------------------------------------------------------------
                            Prerequisites for nvgst-1.0 applications
--------------------------------------------------------------------------------
For nvgstcapture-1.0 and nvgstplayer-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-0.10:
--------------------------------------------------------------------------------

 On the target, execute the following commands:

 cd nvgstapps_src/nvgst_sample_apps/nvgstcapture-0.10
 gcc nvgstcapture.c -o nvgstcapture $(pkg-config --cflags --libs gstreamer-0.10)


--------------------------------------------------------------------------------
                            Procedure to compile nvgstplayer-0.10:
--------------------------------------------------------------------------------

 On the target, execute the following commands:

 cd nvgstapps_src/nvgst_sample_apps/nvgstplayer-0.10
 sudo apt-get install libx11-dev libxext-dev libgstreamer-plugins-bad0.10-dev
 sudo ln -sf /usr/lib/arm-linux-gnueabihf/libgstphotography-0.10.so.0.0.0 \
 /usr/lib/arm-linux-gnueabihf/libgstphotography-0.10.so
 gcc nvgstplayer.c nvgst_x11_common.c  -o nvgstplayer \
   $(pkg-config --cflags --libs gstreamer-interfaces-0.10 \
   gstreamer-plugins-bad-0.10 gstreamer-plugins-base-0.10 \
   gstreamer-0.10 x11 xext )

--------------------------------------------------------------------------------
                            Procedure to compile nvgstcapture-1.0:
--------------------------------------------------------------------------------

 On the target, execute the following commands:

 cd nvgstapps_src/nvgst_sample_apps/nvgstcapture-1.0
 sudo apt-get install libgstreamer-plugins-base1.0-dev
 gcc nvgstcapture.c -o nvgstcapture-1.0 \
   $(pkg-config --cflags --libs gstreamer-1.0 gstreamer-plugins-base-1.0 \
   gstreamer-pbutils-1.0)


--------------------------------------------------------------------------------
                            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 -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)


* For nvgstcapture-0.10 usage, refer to
  nvgstapps_src/nvgst_sample_apps/nvgstcapture-0.10/nvgstcapture-0.10_README.txt

* For nvgstplayer-0.10 usage, refer to
  nvgstapps_src/nvgst_sample_apps/nvgstplayer-0.10/nvgstplayer-0.10_README.txt

* 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
