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

3090 上使用vulkan-sdk 1.3.204.1~rc1-1lunarg18.04-1 cmake 添加-DNCNN_BUILD_TOOLS=ON 后未能编译成功 #5481

Open
cillayue opened this issue May 30, 2024 · 3 comments

Comments

@cillayue
Copy link

下载vulkan-sdk 1.3.204.1~rc1-1lunarg18.04-1
sudo apt install vulkan-sdk
之后

cd ncnn
mkdir build && cd build
执行
cmake -DCMAKE_TOOLCHAIN_FILE=../toolchains/host.gcc.toolchain.cmake -DNCNN_VULKAN=ON -DNCNN_BUILD_EXAMPLES=ON -DNCNN_PYTHON=ON ..
能够编译成功
但是build目录下没有tool

但是添加-DNCNN_BUILD_TOOLS=ON
就不能编译成功

@wzyforgit
Copy link
Contributor

贴一下编译失败的提示

@nihui
Copy link
Member

nihui commented May 30, 2024

删除 build 目录,重新 cmake -DNCNN_VULKAN=ON ..

@cillayue
Copy link
Author

Member

删除 build 目录,重新 cmake -DNCNN_VULKAN=ON ..

[ 35%] Linking CXX static library libMachineIndependent.a
[ 35%] Built target MachineIndependent
Makefile:135: recipe for target 'all' failed
make: *** [all] Error 2
从build目录看,是有tools/onnx的

如果是cmake -DCMAKE_TOOLCHAIN_FILE=../toolchains/host.gcc.toolchain.cmake -DNCNN_VULKAN=ON ..
则编译成功,但是没tools目录,大概率这个DCMAKE_TOOLCHAIN_FILE 有点问题吧

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

3 participants