Open PlumBlossomMaid opened 2 days ago
E:\code\Paddle\paddle/pir/core/ir_context.h 缺少
#include <string>
#include <unordered_map>
啊?那需要我手动把源码改过来吗?这样的话岂不是每次编译我都需要手动改代码了?
@PlumBlossomMaid 这是编译器默认头文件引用不一致问题。官方不太关注windows的各种情况,用户少。只能氪服一下。
如果我针对这个问题提交PR的话你们会接受吗 还有就是好奇你们是怎么编译Windows版本的,也是这么氪服的吗(
首先回答你关于内部的编译问题:内部Windows版本的编译对于GPU使用的VS2019,CPU版本使用的VS2017,因此使用相应版本的VS肯定是没有问题的。 关于PR本身的问题:报错信息是一些基础的STL组件没有正确include。你可以打开VS的UI,创建一个.cpp文件,去包含 string 等头文件,看是否能成功编译,从而排除本地编译环境中库路径的问题。如果简单文件也无法编译成功,需要你自己检查自己的本地环境。如果可以编译成功,应该是VS2022的适配问题,可以向我们报告,后续我们会适配VS2022.
请提出你的问题 Please ask your question
Windows下对paddle进行源码编译报错
安装步骤和官网步骤一致,cmake指令执行的是
cmake成功执行并且生成build.ninja文件
之后执行:
然后, 控制台打印信息: