【问题标题】:I failed to create obj file in Flutter desktop embedding project (on visual studio)我未能在 Flutter 桌面嵌入项目中创建 obj 文件(在 Visual Studio 上)
【发布时间】:2019-03-31 14:25:16
【问题描述】:

我正在尝试构建 Flutter 桌面嵌入示例项目 (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.

【问题讨论】:

    标签: c++ visual-studio flutter


    【解决方案1】:

    这不是包含路径问题; system cannot find the file specified 错误是在尝试启动进程时。

    您的路径中没有vcvars64.bat as described in the setup instructions,或者您没有安装cl.exe

    要找出您遇到的问题,请运行tools/run_dart_tool doctor。它会告诉您vcvars64.bat 是否在您的路径中。

    【讨论】:

      猜你喜欢
      • 2012-09-21
      • 2010-11-27
      • 2015-08-10
      • 2022-12-29
      • 2014-10-21
      • 1970-01-01
      • 2017-04-14
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多