c++ - 我未能在 Flutter 桌面嵌入项目中创建 obj 文件(在 Visual Studio 上)
问题描述
我正在尝试构建颤振桌面嵌入示例项目(https://github.com/google/flutter-desktop-embedding)
我坚持无法创建一些 obj 文件
我试图包含文件夹(flutter_desktop_embedding\library\include)和其他“包含”文件夹。但仍然失败。
这是日志
1>Run the embedder library's GN build
1>Done. Made 14 targets from 12 files in 16ms
1>ninja: Entering directory `E:\flutter_desktop\flutter_desktop_embedding\example\windows_fde\scripts\..\..\..\out'
1>[1/41] CXX obj/library/common/client_wrapper/src/client_wrapper.engine_method_result.obj
1>FAILED: obj/library/common/client_wrapper/src/client_wrapper.engine_method_result.obj
1>vcvars64.bat 1> nul && cl /nologo /showIncludes /MDd /FC -DUSE_FDE_TREE_PATHS -I../library/include -I.. -I../library/common/client_wrapper/include -I../third_party/jsoncpp/src/include /EHsc /W3 /Od /c ../library/common/client_wrapper/src/engine_method_result.cc /Foobj/library/common/client_wrapper/src/client_wrapper.engine_method_result.obj /Fdobj/library/common/client_wrapper/client_wrapper_c.pdb
1>CreateProcess failed: The system cannot find the file specified.
1>[2/41] CXX obj/library/common/client_wrapper/src/client_wrapper_internal.json_message_codec.obj
1>FAILED: obj/library/common/client_wrapper/src/client_wrapper_internal.json_message_codec.obj
1>vcvars64.bat 1> nul && cl /nologo /showIncludes /MDd /FC -DUSE_FDE_TREE_PATHS -DFLUTTER_DESKTOP_EMBEDDING_IMPL -I../library/include -I.. -I../library/common/client_wrapper/include -I../third_party/jsoncpp/src/include /EHsc /W3 /Od /c ../library/common/client_wrapper/src/json_message_codec.cc /Foobj/library/common/client_wrapper/src/client_wrapper_internal.json_message_codec.obj /Fdobj/library/common/client_wrapper/client_wrapper_internal_c.pdb
1>CreateProcess failed: The system cannot find the file specified.
解决方案
这不是包含路径问题;错误是在system cannot find the file specified
尝试启动该过程时。
要么你没有安装说明中描述vcvars64.bat
的路径,要么你没有安装。cl.exe
要找出您遇到的问题,请运行tools/run_dart_tool doctor
. 它会告诉你是否vcvars64.bat
在你的路径中。
推荐阅读
- java - 在我的外部数据库中使用 google-in-app 计费保存用户订阅的最佳方法?
- java - Java在扩展类中将非抽象方法覆盖为抽象
- django - 在 Django 休息框架中为 MultipleChoiceField 获取 FieldError
- hyperledger-fabric - 无法启动超级账本结构网络
- c# - Windows 7 中的错误:请求被中止:无法创建 SSL/TLS 安全通道
- python - 如何在 Python 中查找包的使用位置?
- stripe-payments - 使用非零 unit_amount_decimal 创建结帐会话会返回不推荐使用金额字段的错误消息
- r - R:使用优化的指数混合的最大似然估计
- jenkins - 将触发器和夜间构建在一起有意义吗?
- botframework - 需要一些关于如何正确使用机器人框架 SDK 的指导