Keylost / jetson-ffmpeg

ffmpeg support on jetson nano
Other
64 stars 24 forks source link

Cannot found LIB_NVBUF? #16

Open Washington-DC opened 1 year ago

Washington-DC commented 1 year ago

Logs:

` -- Looking for pthread.h -- Looking for pthread.h - found -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed -- Looking for pthread_create in pthreads -- Looking for pthread_create in pthreads - not found -- Looking for pthread_create in pthread -- Looking for pthread_create in pthread - found -- Found Threads: TRUE

CMake Error: The following variables are used in this project, but they are set to NOTFOUND. Please set them or make sure they are set and tested correctly in the CMake files: LIB_NVBUF linked by target "nvmpi" in directory /home/tyiot/jetpack-ffmepg/jetson-ffmpeg `

I am using Agx Orin, Jetpack version 5.1.2,When I was compiling, I encountered this issue。

Washington-DC commented 1 year ago

In Jetpack 5.1, the interface has changed. How should I modify it?

Keylost commented 1 year ago

This library supports the new API. The nvbuf_utils library was present in versions of jetpack before 5.1.2, but was completely removed in this version. This library is no longer needed for the build. Just comment out the find_library(LIB_NVBUF nvbuf_utils PATHS /usr/lib/aarch64-linux-gnu/tegra) line in CMakeLists.txt and it should work :) I'll update the master branch a little later.

pavloshargan commented 12 months ago

This library supports the new API. The nvbuf_utils library was present in versions of jetpack before 5.1.2, but was completely removed in this version. This library is no longer needed for the build. Just comment out the find_library(LIB_NVBUF nvbuf_utils PATHS /usr/lib/aarch64-linux-gnu/tegra) line in CMakeLists.txt and it should work :) I'll update the master branch a little later.

Awesome, thank you. Finally my journey of running hw encoding on jetson orin AGX with ffmpeg has ended on this single comment! Finally

Washington-DC commented 10 months ago

I got it . Thank you image

YCG1 commented 7 months ago

知道了。谢谢 image

你好 很想知道您是怎么编译成功的 使用的ffmpeg的版本是多少呢?

WangFengtu1996 commented 6 months ago

This library supports the new API. The nvbuf_utils library was present in versions of jetpack before 5.1.2, but was completely removed in this version. This library is no longer needed for the build. Just comment out the find_library(LIB_NVBUF nvbuf_utils PATHS /usr/lib/aarch64-linux-gnu/tegra) line in CMakeLists.txt and it should work :) I'll update the master branch a little later.

thkx

fingul commented 2 months ago

in a one line. (jetpack 5.1+)

sed -i '/find_library(LIB_NVBUF nvbuf_utils PATHS \/usr\/lib\/aarch64-linux-gnu\/tegra)/s/^/#/' CMakeLists.txt