Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot found LIB_NVBUF? #134

Open
Washington-DC opened this issue Aug 20, 2023 · 15 comments
Open

Cannot found LIB_NVBUF? #134

Washington-DC opened this issue Aug 20, 2023 · 15 comments

Comments

@Washington-DC
Copy link

Washington-DC commented Aug 20, 2023

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
Copy link
Author

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

@geoncoder
Copy link

Any update on this issue? Ran into the same problem.

@mrvr
Copy link

mrvr commented Nov 9, 2023

encountered same issue on xaviour NX , jetpack 5.1.2-b104.

@FunnyWii
Copy link

same issue

1 similar comment
@gjrtimmer
Copy link

same issue

@WangFengtu1996
Copy link

jetson agx orin dk, same issue.

@fachrinnk4869
Copy link

same issue until now

@FunnyWii
Copy link

same issue until now

I think you can ignore the option "nvmpi" and try "--enable shared --disable static" cmd.

I don't know the influence of missing "nvmpi", but my method can be compiled successfully .

@fancong5201314
Copy link

fancong5201314 commented Jun 19, 2024

-- 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/fancong/jetson-ffmpeg

-- Configuring incomplete, errors occurred!
See also "/home/fancong/jetson-ffmpeg/build/CMakeFiles/CMakeOutput.log".
See also "/home/fancong/jetson-ffmpeg/build/CMakeFiles/CMakeError.log".

JetPack: 5.1.3 in jetson xaiver nx

I have the same issue, but I don't know how to solve it.

@lmw0320
Copy link

lmw0320 commented Jun 20, 2024

Hope any update...I also met such problem on jetson orin nx, but successfully compile on jetson xavier nx。。。
Strange..

@fancong5201314
Copy link

I solved it in another github

@FunnyWii
Copy link

FunnyWii commented Jun 21, 2024 via email

@lmw0320
Copy link

lmw0320 commented Jun 21, 2024

能发个链接吗老哥 fancong5201314 @.>于2024年6月21日 周五10:56写道:

I solved it in another github — Reply to this email directly, view it on GitHub <#134 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJOGKQQNZDNAMFY2UB6ZUY3ZIOI43AVCNFSM6AAAAAA3XGNVCCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBRHEYDAMJTGU . You are receiving this because you commented.Message ID: @.
>

https://blog.csdn.net/cnrgq2010/article/details/135130020 这个博客里面提到了,可以删掉CMakelist.txt中的lib_nvbuf相关的内容,就可以正常编译了。。。这个是因为Jetpack版本高于5.1.1后,好像是删除了libnvbuf_utils.so文件了。

@fancong5201314
Copy link

fancong5201314 commented Jun 21, 2024

https://github.com/Keylost/jetson-ffmpeg.git
这个的issue里面有说明,最好是用完整的一套,如果直接屏蔽掉那句话,会有问题。
由于nvbuf_utils库存在于5.1.2之前的jetpack版本中,
但在此版本中被完全删除。生成不再需要此库如果是Jetpack 5.1.2及其之后的版本,则需要修改CMakeLists.txt,
注释掉 find_library(LIB_NVBUF nvbuf_utils PATHS /usr/lib/aarch64-linux-gnu/tegra

@egbertn
Copy link

egbertn commented Jul 12, 2024

Problem still existing on Jetpack 6.0 and Jetson Nano Orin 8GB dev edition.
Build cuda_12.2.r12.2/

in folder ffmpeg-4.2.2
./configure --enable-nvv4l2dec --enable-libv4l2 --enable-shared --extra-libs="-L/usr/lib/aarch64-linux-gnu/tegra -lnvbufsurface -lnvbufsurftransform" --extra-cflags="-I /usr/src/jetson_multimedia_api/include/"
make -j6

/usr/bin/ld: libavcodec/libavcodec.so: undefined reference to NvBuffer2Raw' /usr/bin/ld: libavcodec/libavcodec.so: undefined reference to NvBufferTransform'
/usr/bin/ld: libavcodec/libavcodec.so: undefined reference to NvBufferGetParams' /usr/bin/ld: libavcodec/libavcodec.so: undefined reference to NvBufferCreateEx'
/usr/bin/ld: libavcodec/libavcodec.so: undefined reference to NvBufferDestroy' collect2: error: ld returned 1 exit status /usr/bin/ld: libavcodec/libavcodec.so: undefined reference to NvBuffer2Raw'
/usr/bin/ld: libavcodec/libavcodec.so: undefined reference to NvBufferTransform' /usr/bin/ld: libavcodec/libavcodec.so: undefined reference to NvBufferGetParams'
/usr/bin/ld: libavcodec/libavcodec.so: undefined reference to NvBufferCreateEx' /usr/bin/ld: libavcodec/libavcodec.so: undefined reference to NvBufferDestroy'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants