我正在尝试构建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.
答案 0 :(得分:0)
这不是包含路径问题; system cannot find the file specified
错误是在尝试启动该过程时。
您的路径as described in the setup instructions中没有vcvars64.bat
,或者您没有安装cl.exe
。
要找出您遇到的问题,请运行tools/run_dart_tool doctor
。它将告诉您vcvars64.bat
是否在您的路径中。