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

请问 example中 target_link_library时的 dl 项是什么意思? #60

Open
ANYMS-A opened this issue Feb 22, 2024 · 1 comment
Open

Comments

@ANYMS-A
Copy link

ANYMS-A commented Feb 22, 2024

您好,
我在尝试跑demo的时候,浏览example的CMakeLists.txt文件时,发现链接库的语句如下

target_link_libraries(rknn_batch_inference_demo
	${RKNN_API_LIB}
	dl
)

其中这个dl项,看不到定义,不知道是做什么用的? 请问这个项是一个库吗还是什么链接选项?

@eRaul
Copy link

eRaul commented Mar 7, 2024

dl 库是一个在 Linux 系统上常用的动态链接器库,提供了一些操作动态链接库的函数,比如 dlopen、dlsym 等。在 CMake 中,当需要在程序中使用动态链接库相关的函数时,需要将 dl 库链接到目标中,以确保程序能够正常编译和运行。

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

2 participants