Multimedia API Sample Build and Run

Hello All,
I following this link
mmapi_build
and make 12_camera_v4l2_cuda sample
According to the following instructions:
cd /usr/lib/aarch64-linux-gnu/
sudo ln -sfn tegra-egl/libEGL_nvidia.so.0 libEGL.so
sudo ln -sfn tegra-egl/libGLESv2_nvidia.so.2 libGLESv2.so
sudo ln -sfn libv4l2.so.0 libv4l2.so
but when make it,face error::
cd ~/tegra_multimedia_api/samples/12_camera_v4l2_cuda
make
Compiling: camera_v4l2_cuda.cpp
make[1]: Entering directory ‘/home/nvidia/tegra_multimedia_api/samples/common/classes’
Compiling: NvElementProfiler.cpp
Compiling: NvElement.cpp
Compiling: NvApplicationProfiler.cpp
Compiling: NvVideoDecoder.cpp
Compiling: NvBuffer.cpp
Compiling: NvJpegEncoder.cpp
Compiling: NvVideoConverter.cpp
Compiling: NvDrmRenderer.cpp
Compiling: NvLogging.cpp
Compiling: NvEglRenderer.cpp
Compiling: NvUtils.cpp
Compiling: NvJpegDecoder.cpp
Compiling: NvVideoEncoder.cpp
Compiling: NvV4l2ElementPlane.cpp
Compiling: NvV4l2Element.cpp
make[1]: Leaving directory ‘/home/nvidia/tegra_multimedia_api/samples/common/classes’
make[1]: Entering directory ‘/home/nvidia/tegra_multimedia_api/samples/common/algorithm/cuda’
Compiling: NvAnalysis.cu
Compiling: NvCudaProc.cpp
make[1]: Leaving directory ‘/home/nvidia/tegra_multimedia_api/samples/common/algorithm/cuda’
Linking: camera_v4l2_cuda
/usr/bin/ld: /home/nvidia/tegra_multimedia_api/samples/common/classes/NvEglRenderer.o: undefined reference to symbol ‘eglDestroySurface’
//usr/lib/aarch64-linux-gnu/libEGL.so.1: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
Makefile:61: recipe for target ‘camera_v4l2_cuda’ failed
make: *** [camera_v4l2_cuda] Error 1

Hi,
Please install through SDKManager and you will see the sample in
/usr/src/jetson_multimedia_api/samples/12_camera_v4l2_cuda
You can build it by executing sudo make

1 Like

There is also an apt package as of JetPack 4.3, if you wish to avoid SDK Manager.

sudo apt install nvidia-l4t-jetson-multimedia-api

(from the Jetson device, or ssh’ed into it)

Hello fellow doggo :)

There are three ways to use jetson_multimedia_api.
https://developer.nvidia.com/embedded/learn/get-started-jetson-nano-devkit#write
② Flashing with SDK Manager
③ sudo apt install nvidia-l4t-jetson-multimedia-api(After flashing as in the quick start guide)

If all three methods have the same version, do they contain the same source code?

Or may the source be different depending on how you install it?
please check.

Thank you.

Hello,

I think it was done yesterday.
this command is not working
Can you cross check?

Thank you.

@neuezeal

  1. I don’t think that package (nvidia-l4t-jetson-multimedia-api) is bundled with JetPack. So just flashing the sd card won’t do it.
  2. Yes, if you install the optional packages afterward.
  3. Yes. If you just want runtime libbraries, the package name is nvidia-l4t-multimedia. I believe that is pre-installed.

Can you cross check?

Woof woof bark. It works for me.

 $ sudo apt install nvidia-l4t-jetson-multimedia-api --reinstall
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not
upgraded.
Need to get 70.4 MB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 https://repo.download.nvidia.com/jetson/t194 r32.4/main arm64
nvidia-l4t-jetson-multimedia-api arm64 32.4.3-20200625213407 [70.4 M
B]
Fetched 70.4 MB in 2s (32.9 MB/s)
debconf: delaying package configuration, since apt-utils is not inst
alled
(Reading database ... 179788 files and directories currently install
ed.)
Preparing to unpack .../nvidia-l4t-jetson-multimedia-api_32.4.3-2020
0625213407_arm64.deb ...
Unpacking nvidia-l4t-jetson-multimedia-api (32.4.3-20200625213407) o
ver (32.4.3-20200625213407) ...
Setting up nvidia-l4t-jetson-multimedia-api (32.4.3-20200625213407)
...
1 Like

Woof woof bark.

Thank you

1 Like