Has anybody managed to build the hardware-accelerated gstreamer jpeg plugin from source?
There’s a source package available at http://developer.nvidia.com/embedded/dlc/l4t-Jetson-TK1-Gstjpeg-Sources-R21-5, however the instructions in the README.txt file don’t actually work, even though it’s written by NVIDIA and is supposed to work even for cross-compilation.
I suspect that the README.txt is outdated and incomplete.
First of all, I don’t know why the README.txt says NVIDIA has used deb packages from Ubuntu Precise (12.04), as L4T 21.5 is based on Ubuntu Trusty (14.04).
Secondly, the paths mentioned in the README.txt are obviously wrong. For instance,
/usr/lib/libglib-2.0.so should really be
Thirdly, and most importantly, the
autogen.sh script and the resulting
configure script are also wrong.
configure won’t properly test for libnvjpeg; instead, it tests for libjpeg and libjpeg-mmx, and fails (because the compiler can’t even find the libjpeg.so file, with the given flags and environment variables), so
configure thinks it can’t build the jpeg plugin and writes a Makefile that doesn’t do anything. At this point, I don’t even know how NVIDIA ever got it to cross-compile. configure tries to link with -ljpeg instead of -lnvjpeg, and there’s no mention of downloading libnvjpeg.so anywhere in the README.txt.
I don’t have the knowledge and time to fix this mess. Could somebody (preferably from NVIDIA) step forward and fix these issues?