Skip to content

cmake编译报错 "absl::abseil_dll" was not found. #6051

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

Open
IamMI opened this issue May 13, 2025 · 1 comment
Open

cmake编译报错 "absl::abseil_dll" was not found. #6051

IamMI opened this issue May 13, 2025 · 1 comment

Comments

@IamMI
Copy link

IamMI commented May 13, 2025

error log | 日志或报错信息 | ログ

我执行
(MMVP) (base) xm@MI:~/ncnn/build$ cmake -DNCNN_DISABLE_RTTI=OFF -DNCNN_DISABLE_EXCEPTION=OFF -DNCNN_RUNTIME_CPU=OFF -DNCNN_MSA=ON -DNCNN_MMI=ON -DNCNN_SIMPLEOCV=ON ..
执行时报错:
`CMake Error at tools/caffe/CMakeLists.txt:28 (add_executable):
Target "caffe2ncnn" links to target "absl::abseil_dll" but the target was
not found. Perhaps a find_package() call is missing for an IMPORTED
target, or an ALIAS target is missing?

CMake Error at tools/onnx/CMakeLists.txt:28 (add_executable):
Target "onnx2ncnn" links to target "absl::abseil_dll" but the target was
not found. Perhaps a find_package() call is missing for an IMPORTED
target, or an ALIAS target is missing?

-- Generating done
CMake Generate step failed. Build files cannot be regenerated correctly.`
可是我查看tools/caffe/CMakeLists.txt里并没有提及absl。请问这是为什么?

context | 编译/运行环境 | バックグラウンド

我的编译环境中并未安装Abseil,同时GCC版本:
(MMVP) (base) xm@MI:~/ncnn/build$ gcc --version gcc (Ubuntu 13.1.0-8ubuntu1~20.04.2) 13.1.0 Copyright (C) 2023 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

@nihui
Copy link
Member

nihui commented May 13, 2025

cmake -DNCNN_BUILD_TOOLS=OFF 禁用工具编译即可
模型转换工具可以直接 pip install pnnx 安装,支持 pytorch / onnx 转换

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