編譯Release版本報錯如下:
1>------ 已啟動生成: 專案: com_osvr_test_myplugin, 配置: Release x64 ------
1> Building Custom Rule C:/Program Files (x86)/Microsoft Visual Studio 12.0/osvr/myplugin/CMakeLists.txt
1> CMake does not need to re-run because C:\Program Files (x86)\Microsoft Visual Studio 12.0\osvr\myplugin-build\CMakeFiles\generate.stamp is up-to-date.
1> [osvr_convert_json] Generating string literal header from com_osvr_test_myplugin.json
1> 系統找不到指定的路徑。
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(170,5): error MSB6006: “cmd.exe”已退出,代碼為 3。
已試過以下方法無效:
a.將build檔案放在E盤,減少路徑
b.屬性->聯結器->清單檔案將生成清單選項設為否
c.清理編譯專案,重新編譯
編譯環境VC 2013/Cmake 3.7
是使用CMake編譯得sln檔案,因此在cmake中也曾試過將CMAKE_BUILD_TYPE設為Release; CMAKE_CONFIGURATION_TYPES 只設為Release;CMakeList設定命令:
SET(CMAKE_CXX_FLAGS_RELEASE "$ENV{CXXFLAGS} -O3 -Wall")
Debug版本編譯一切正常,所以想問下還有其他方法可以用嗎?
轉載請註明出處,本文鏈接:https://www.uj5u.com/gongcheng/115447.html
標籤:基礎類
