Open hehu56 opened 3 years ago
使用release模式,当前不支持debug模式
1> 已为配置“x64-Release”启动 CMake 生成。 1> 命令行: "cmd.exe" /c "%SYSTEMROOT%\System32\chcp.com 65001 >NUL && "c:\program files (x86)\microsoft visual studio\2019\community\common7\ide\commonextensions\microsoft\cmake\CMake\bin\cmake.exe" -G "Ninja" -DCMAKE_BUILD_TYPE:STRING="RelWithDebInfo" -DCMAKE_INSTALL_PREFIX:PATH="E:\paddlex_test\PaddleX-develop\deploy\cpp\out\install\x64-Release" -DCMAKE_C_COMPILER:FILEPATH="C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.28.29910/bin/Hostx64/x64/cl.exe" -DCMAKE_CXX_COMPILER:FILEPATH="C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.28.29910/bin/Hostx64/x64/cl.exe" -DCMAKE_MAKE_PROGRAM="c:\program files (x86)\microsoft visual studio\2019\community\common7\ide\commonextensions\microsoft\cmake\Ninja\ninja.exe" "E:\paddlex_test\PaddleX-develop\deploy\cpp" 2>&1" 1> 工作目录: E:\paddlex_test\PaddleX-develop\deploy\cpp\out\build\x64-Release 1> [CMake] RelWithDebInfo 1> [CMake] CMake Error at E:\paddlex_test\PaddleX-develop\deploy\cpp\CMakeLists.txt:62 (if): 1> [CMake] if given arguments: 1> [CMake] 1> [CMake] "NOT" "DEFINED" "PADDLE_DIR" "OR" "STREQUAL" "" 1> [CMake] 1> [CMake] Unknown arguments specified 1> [CMake] 1> [CMake] 1> [CMake] -- Configuring incomplete, errors occurred! 1> [CMake] See also "E:/paddlex_test/PaddleX-develop/deploy/cpp/out/build/x64-Release/CMakeFiles/CMakeOutput.log". 1> “cmd.exe”“/c "%SYSTEMROOT%\System32\chcp.com 65001 >NUL && "c:\program files (x86)\microsoft visual studio\2019\community\common7\ide\commonextensions\microsoft\cmake\CMake\bin\cmake.exe" -G "Ninja" -DCMAKE_BUILD_TYPE:STRING="RelWithDebInfo" -DCMAKE_INSTALL_PREFIX:PATH="E:\paddlex_test\PaddleX-develop\deploy\cpp\out\install\x64-Release" -DCMAKE_C_COMPILER:FILEPATH="C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.28.29910/bin/Hostx64/x64/cl.exe" -DCMAKE_CXX_COMPILER:FILEPATH="C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.28.29910/bin/Hostx64/x64/cl.exe" -DCMAKE_MAKE_PROGRAM="c:\program files (x86)\microsoft visual studio\2019\community\common7\ide\commonextensions\microsoft\cmake\Ninja\ninja.exe" "E:\paddlex_test\PaddleX-develop\deploy\cpp" 2>&1"”执行失败,出现错误:““cmd.exe”“/c "%SYSTEMROOT%\System32\chcp.com 65001 >NUL && "c:\program files (x86)\microsoft visual studio\2019\community\common7\ide\commonextensions\microsoft\cmake\CMake\bin\cmake.exe" -G "Ninja" -DCMAKE_BUILD_TYPE:STRING="RelWithDebInfo" -DCMAKE_INSTALL_PREFIX:PATH="E:\paddlex_test\PaddleX-develop\deploy\cpp\out\install\x64-Release" -DCMAKE_C_COMPILER:FILEPATH="C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.28.29910/bin/Hostx64/x64/cl.exe" -DCMAKE_CXX_COMPILER:FILEPATH="C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.28.29910/bin/Hostx64/x64/cl.exe" -DCMAKE_MAKE_PROGRAM="c:\program files (x86)\microsoft visual studio\2019\community\common7\ide\commonextensions\microsoft\cmake\Ninja\ninja.exe" "E:\paddlex_test\PaddleX-develop\deploy\cpp" 2>&1"”已返回,并带有退出代码: 1”。 你好还是有这个错误
是完全按照这个文档编译的,用的是vs2019
就到了打开cmakelists那一步编译报上面的错
打开cmakelist报错不用管,进行下一步cmake的设置,设置完之后执行一下就会cmake通过了。 打开时报错,是因为默认参数跟你本地路径不一致导致的,你进行cmake设置修改参数后,就可以了。
1> 已为配置“x64-Debug”启动 CMake 生成。 1> 命令行: "cmd.exe" /c "%SYSTEMROOT%\System32\chcp.com 65001 >NUL && "c:\program files (x86)\microsoft visual studio\2019\community\common7\ide\commonextensions\microsoft\cmake\CMake\bin\cmake.exe" -G "Ninja" -DCMAKE_BUILD_TYPE:STRING="Debug" -DCMAKE_INSTALL_PREFIX:PATH="E:\paddlex_test\PaddleX-develop\deploy\cpp\out\install\x64-Debug" -DCMAKE_C_COMPILER:FILEPATH="C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.28.29910/bin/Hostx64/x64/cl.exe" -DCMAKE_CXX_COMPILER:FILEPATH="C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.28.29910/bin/Hostx64/x64/cl.exe" -DCMAKE_MAKE_PROGRAM="c:\program files (x86)\microsoft visual studio\2019\community\common7\ide\commonextensions\microsoft\cmake\Ninja\ninja.exe" "E:\paddlex_test\PaddleX-develop\deploy\cpp" 2>&1" 1> 工作目录: E:\paddlex_test\PaddleX-develop\deploy\cpp\out\build\x64-Debug 1> [CMake] Debug 1> [CMake] CMake Error at E:\paddlex_test\PaddleX-develop\deploy\cpp\CMakeLists.txt:62 (if): 1> [CMake] if given arguments: 1> [CMake] 1> [CMake] "NOT" "DEFINED" "PADDLE_DIR" "OR" "STREQUAL" "" 1> [CMake] 1> [CMake] Unknown arguments specified 1> [CMake] 1> [CMake] 1> [CMake] -- Configuring incomplete, errors occurred! 1> [CMake] See also "E:/paddlex_test/PaddleX-develop/deploy/cpp/out/build/x64-Debug/CMakeFiles/CMakeOutput.log". 1> “cmd.exe”“/c "%SYSTEMROOT%\System32\chcp.com 65001 >NUL && "c:\program files (x86)\microsoft visual studio\2019\community\common7\ide\commonextensions\microsoft\cmake\CMake\bin\cmake.exe" -G "Ninja" -DCMAKE_BUILD_TYPE:STRING="Debug" -DCMAKE_INSTALL_PREFIX:PATH="E:\paddlex_test\PaddleX-develop\deploy\cpp\out\install\x64-Debug" -DCMAKE_C_COMPILER:FILEPATH="C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.28.29910/bin/Hostx64/x64/cl.exe" -DCMAKE_CXX_COMPILER:FILEPATH="C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.28.29910/bin/Hostx64/x64/cl.exe" -DCMAKE_MAKE_PROGRAM="c:\program files (x86)\microsoft visual studio\2019\community\common7\ide\commonextensions\microsoft\cmake\Ninja\ninja.exe" "E:\paddlex_test\PaddleX-develop\deploy\cpp" 2>&1"”执行失败,出现错误:““cmd.exe”“/c "%SYSTEMROOT%\System32\chcp.com 65001 >NUL && "c:\program files (x86)\microsoft visual studio\2019\community\common7\ide\commonextensions\microsoft\cmake\CMake\bin\cmake.exe" -G "Ninja" -DCMAKE_BUILD_TYPE:STRING="Debug" -DCMAKE_INSTALL_PREFIX:PATH="E:\paddlex_test\PaddleX-develop\deploy\cpp\out\install\x64-Debug" -DCMAKE_C_COMPILER:FILEPATH="C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.28.29910/bin/Hostx64/x64/cl.exe" -DCMAKE_CXX_COMPILER:FILEPATH="C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.28.29910/bin/Hostx64/x64/cl.exe" -DCMAKE_MAKE_PROGRAM="c:\program files (x86)\microsoft visual studio\2019\community\common7\ide\commonextensions\microsoft\cmake\Ninja\ninja.exe" "E:\paddlex_test\PaddleX-develop\deploy\cpp" 2>&1"”已返回,并带有退出代码: 1”。