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

[fix] 文档windows编译ncnn中的小问题:编译命令中文件路径不匹配 #4872

Merged
merged 1 commit into from
Jul 21, 2023

Conversation

brcarry
Copy link
Contributor

@brcarry brcarry commented Jul 21, 2023

根据文档在windows编译ncnn的时候遇到了两个问题:

  1. 下载的protobuf解压的文件中本身存在名为BUILD的文件,直接创建build目录会报错“子目录或文件build已经存在”
  2. 在编译ncnn时依赖protobuf。而文档原来的命令中,文件路径并不匹配。会出现“/protobuf_build/install/include/google/protobuf/stubs/common.h" cannot be read.”的问题。

综上,将编译protobuf时,目录名称改为protobuf_build可以解决。

根据文档在windows编译ncnn的时候遇到了两个问题:
1. 下载的protobuf解压的文件中本身存在名为`BUILD`的文件,直接创建build目录会报错“子目录或文件build已经存在”
2. 在编译ncnn时依赖protobuf。而文档原来的命令中,文件路径并不匹配。会出现“<protobuf-root-dir>/protobuf_build/install/include/google/protobuf/stubs/common.h"
  cannot be read.”的问题。
综上,将编译protobuf时,目录名称改为protobuf_build就可以解决。
@tencent-adm
Copy link
Member

tencent-adm commented Jul 21, 2023

CLA assistant check
All committers have signed the CLA.

@nihui nihui merged commit 2303b77 into Tencent:master Jul 21, 2023
@nihui
Copy link
Member

nihui commented Jul 21, 2023

Thanks for your contribution !

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

Successfully merging this pull request may close these issues.

3 participants