CMakeのコンパイルVSプロジェクト、インストール中にエラーが発生しました:エラーMSB3073:コマンド「SETLOCAL

 

エラーメッセージ

70>のsrc /ベース/ cmake_install.cmakeでCMakeのエラー:63(ファイル):
70>のファイルを見つけることができませんINSTALL 
70>を"E:/Projs/algs/colmap/colmap_build/src/base/Release/camera_rig_test.exe"。
70>コールスタック(最初に最新の呼び出し):
70>のsrc / cmake_install.cmake:61(含める)
70> cmake_install.cmake:65(含める)
70> 
70> 
70> C:\プログラム\ Devの\のMicrosoft Visual Studioの\ 2017 \エンタープライズ\ Common7 \ IDE \ VC \ VCTargets \ Microsoft.CppCommon.targets(138,5):エラーMSB3073:命令「SETLOCAL 
70> C:\プログラム\ Devの\のMicrosoft Visual Studioの\ 2017 \エンタープライズ\ Common7 \ IDE \ VC \ VCTargets \ Microsoft.CppCommon.targets(138,5):エラーMSB3073: "D:\専門家\ IDE \ IDEツール\ cmakeの-3.15.0-RC1-Win64の-x64の\ binに\ cmake.exe" -DBUILD_TYPE =リリース-P cmake_install.cmake
70> C:\プログラム\ Devの\のMicrosoft Visual Studioの\ 2017 \エンタープライズ\ Common7 \ IDE \ VC \ VCTargets \ Microsoft.CppCommon.targets(138,5):エラーMSB3073:%ERRORLEVEL%NEQ 0後藤場合:cmEnd 
70> C:\プログラム\ Devの\ MicrosoftはVisual Studioの\ 2017 \エンタープライズ\ Common7 \ IDE \ VC \ VCTargets \ Microsoft.CppCommon.targets(138,5):エラーMSB3073:cmEnd 
70> C:\プログラム\ Devの\のMicrosoft Visualメーカー\ 2017 \エンタープライズ\ Common7 \ IDE \ VC \ VCTargets \ Microsoft.CppCommon.targets(138,5):エラーMSB3073:ENDLOCAL&コール:cmErrorLevel%ERRORLEVEL%&後藤:cmDone 
70> C:\プログラム\ Devの\マイクロソフトVisual Studioの\ 2017 \エンタープライズ\ Common7 \ IDE \ VC \ VCTargets \ Microsoft.CppCommon.targets(138,5):エラーMSB3073:cmErrorLevel 
70> C:\プログラム\ Devの\のMicrosoft Visual Studioの\ 2017 \エンタープライズ\ Common7 \ IDE \ VC \ VCTargets \ Microsoft.CppCommon.targets(138,5):エラーMSB3073:出口/ B%1 
70> C:\プログラム\ Devの\のMicrosoft Visual Studioの\ 2017 \エンタープライズ\ Common7 \ IDE \ VC \ VCTargets \ Microsoft.CppCommon.targets(138,5):エラーMSB3073::cmDone
70> C:\プログラム\ Devの\のMicrosoft Visual Studioの\ 2017 \エンタープライズ\ Common7 \ IDE \ VC \ VCTargets \ Microsoft.CppCommon.targets(138,5):エラーMSB3073:もし%ERRORLEVEL%NEQ 0後藤:VCEnd 
70> C:\プログラム\ Devの\のMicrosoft Visual Studioの\ 2017 \エンタープライズ\ Common7 \ IDE \ VC \ VCTargets \ Microsoft.CppCommon.targets(138,5):エラーMSB3073:VCEnd」已退出、代码为1。

 

解きます

問題が解決したときに、その理由に応じて2つの方法があります発生します。

それは、(1)により、CMAKE_INSTALL_PREFIXディレクトリCMakeのGUIとして指定されたCドライブに必要な権限は、コンパイルされたインストールします。この時点で、管理者の対として実行する必要があります

(2)ときcmakeのは、ビルドディレクトリの原因は間違った設定されています。外部ソース(CMakelist.txtディレクトリ)ホームディレクトリとして、新しいディレクトリを構築します。代わりに、正しいビルド自分のホームディレクトリにこの新しいディレクトリの。

 

 無し

 

 

 

 

参照

エラーMSB3073:コマンド"SETLOCAL ...." VS2015 + CMakeのインストールには、ライブラリが経験したOpenPose、  tingzhushaohua、2018から08に。

 

おすすめ

転載: www.cnblogs.com/arxive/p/11863643.html