使用Xcode命令行工具构建NCNN

发布于 2025-01-26 07:43:32 字数 789 浏览 3 评论 0 原文

这是我第一次使用Xcode命令行工具(13.2.1)。我正在按照有关如何在此处构建ncnn的说明: https://github.com/tencent/ncnn/wiki/how-to-build#build-for-macos

我需要进入Xcode还是可以在终端中运行命令?

Xcode命令行工具的功能是什么?在这种情况下应该如何应用?

对于进一步的上下文,我使用以下说明转换了yolox.onnx模型:

我在构建NCNN时会遇到错误调用)制作[2]:*** [工具/onnx/onnx2ncnn]错误1 make [1]:*** [工具/onnx/onnx/cmakefiles/onnx2ncnn.dir/all]错误2

转换转换的方向onnx to ncnn告诉我:

cd <path of ncnn>
cd build/tools/ncnn```

However I do not have a ncnn folder inside of my tools folder...

This is my first time using Xcode Command Line Tools (13.2.1). I am following the instructions on how to build ncnn here: https://github.com/Tencent/ncnn/wiki/how-to-build#build-for-macos

Do I need to go into Xcode or can I just run the commands in the Terminal?

What is the function of Xcode Command Line Tools and how should it be applied in this case?

For further context I am converting a YOLOX.onnx model using these instructions: https://yolox.readthedocs.io/en/latest/demo/ncnn_cpp_readme.html

and I am getting the error when building ncnn: clang: error: linker command failed with exit code 1 (use -v to see invocation) make[2]: *** [tools/onnx/onnx2ncnn] Error 1 make[1]: *** [tools/onnx/CMakeFiles/onnx2ncnn.dir/all] Error 2

The directions to convert onnx to ncnn tell me to:

cd <path of ncnn>
cd build/tools/ncnn```

However I do not have a ncnn folder inside of my tools folder...

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文