[fix] 文档windows编译ncnn中的小问题:编译命令中文件路径不匹配#4872
Merged
nihui merged 1 commit intoTencent:masterfrom Jul 21, 2023
Merged
Conversation
根据文档在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就可以解决。
Member
Member
|
Thanks for your contribution ! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
根据文档在windows编译ncnn的时候遇到了两个问题:
BUILD的文件,直接创建build目录会报错“子目录或文件build已经存在”综上,将编译protobuf时,目录名称改为protobuf_build可以解决。