我没能在Flutter桌面嵌入项目中创建obj文件(在visual studio上)

问题描述 投票:0回答:1

我正在尝试构建扑动的桌面嵌入示例项目(https://github.com/google/flutter-desktop-embedding

我坚持无法创建一些obj文件

我试图包含文件夹(flutter_desktop_embedding \ library \ include)和其他“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个回答
0
投票

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

要么你的路径vcvars64.bat没有as described in the setup instructions,要么你没有安装cl.exe

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

© www.soinside.com 2019 - 2024. All rights reserved.