zoukankan      html  css  js  c++  java
  • 我的项目配置问题及解决

    过程:

    1.装系统:老毛桃UEFI版

      win7,64位

    2.VS2013

    3.配置opencv2.4.9+VS2013

      http://www.cnblogs.com/haoyul/p/6438608.html

    错误:安装完cmake,出现错误

    error in configuration process project files may be invalid

    解决:delete cache之后,选择正确路径后,选择VS12(即VS2013)

    1.错误1:

    错误 2 error MSB3073: 命令“setlocal
    "C:Program Files (x86)CMakeincmake.exe" -E copy D:/DIP/Depth-Image-Processing-master/data/haarcascade_frontalface_default.xml D:/DIP/Depth-Image-Processing-master/build/applications/face_detection/Debug
    if %errorlevel% neq 0 goto :cmEnd
    :cmEnd
    endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone
    :cmErrorLevel
    exit /b %1
    :cmDone
    if %errorlevel% neq 0 goto :VCEnd
    setlocal
    "C:Program Files (x86)CMakeincmake.exe" -E copy file_location-NOTFOUND D:/DIP/Depth-Image-Processing-master/build/applications/face_detection/Debug
    if %errorlevel% neq 0 goto :cmEnd
    :cmEnd
    endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone
    :cmErrorLevel
    exit /b %1
    :cmDone
    if %errorlevel% neq 0 goto :VCEnd
    setlocal
    "C:Program Files (x86)CMakeincmake.exe" -E copy file_location-NOTFOUND D:/DIP/Depth-Image-Processing-master/build/applications/face_detection/Debug
    if %errorlevel% neq 0 goto :cmEnd
    :cmEnd
    endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone
    :cmErrorLevel
    exit /b %1
    :cmDone
    if %errorlevel% neq 0 goto :VCEnd
    setlocal
    "C:Program Files (x86)CMakeincmake.exe" -E copy file_location-NOTFOUND D:/DIP/Depth-Image-Processing-master/build/applications/face_detection/Debug
    if %errorlevel% neq 0 goto :cmEnd
    :cmEnd
    endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone
    :cmErrorLevel
    exit /b %1
    :cmDone
    if %errorlevel% neq 0 goto :VCEnd
    setlocal
    "C:Program Files (x86)CMakeincmake.exe" -E copy file_location-NOTFOUND D:/DIP/Depth-Image-Processing-master/build/applications/face_detection/Debug
    if %errorlevel% neq 0 goto :cmEnd
    :cmEnd
    endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone
    :cmErrorLevel
    exit /b %1
    :cmDone
    if %errorlevel% neq 0 goto :VCEnd
    setlocal
    "C:Program Files (x86)CMakeincmake.exe" -E copy file_location-NOTFOUND D:/DIP/Depth-Image-Processing-master/build/applications/face_detection/Debug
    if %errorlevel% neq 0 goto :cmEnd
    :cmEnd
    endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone
    :cmErrorLevel
    exit /b %1
    :cmDone
    if %errorlevel% neq 0 goto :VCEnd
    setlocal
    "C:Program Files (x86)CMakeincmake.exe" -E copy "C:/Program Files (x86)/OpenNI2/Redist/OpenNI2.dll" D:/DIP/Depth-Image-Processing-master/build/applications/face_detection/Debug
    if %errorlevel% neq 0 goto :cmEnd
    :cmEnd
    endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone
    :cmErrorLevel
    exit /b %1
    :cmDone
    if %errorlevel% neq 0 goto :VCEnd
    setlocal
    "C:Program Files (x86)CMakeincmake.exe" -E copy_directory "C:/Program Files (x86)/OpenNI2/Include/../Redist/OpenNI2" D:/DIP/Depth-Image-Processing-master/build/applications/face_detection/Debug/OpenNI2
    if %errorlevel% neq 0 goto :cmEnd
    :cmEnd
    endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone
    :cmErrorLevel
    exit /b %1
    :cmDone
    if %errorlevel% neq 0 goto :VCEnd
    setlocal
    "C:Program Files (x86)CMakeincmake.exe" -E copy file_location-NOTFOUND D:/DIP/Depth-Image-Processing-master/build/applications/face_detection/Debug
    if %errorlevel% neq 0 goto :cmEnd
    :cmEnd
    endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone
    :cmErrorLevel
    exit /b %1
    :cmDone
    if %errorlevel% neq 0 goto :VCEnd
    setlocal
    "C:Program Files (x86)CMakeincmake.exe" -E copy file_location-NOTFOUND D:/DIP/Depth-Image-Processing-master/build/applications/face_detection/Debug
    if %errorlevel% neq 0 goto :cmEnd
    :cmEnd
    endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone
    :cmErrorLevel
    exit /b %1
    :cmDone
    if %errorlevel% neq 0 goto :VCEnd
    setlocal
    "C:Program Files (x86)CMakeincmake.exe" -E copy file_location-NOTFOUND D:/DIP/Depth-Image-Processing-master/build/applications/face_detection/Debug
    if %errorlevel% neq 0 goto :cmEnd
    :cmEnd
    endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone
    :cmErrorLevel
    exit /b %1
    :cmDone
    if %errorlevel% neq 0 goto :VCEnd
    setlocal
    "C:Program Files (x86)CMakeincmake.exe" -E copy file_location-NOTFOUND D:/DIP/Depth-Image-Processing-master/build/applications/face_detection/Debug
    if %errorlevel% neq 0 goto :cmEnd
    :cmEnd
    endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone
    :cmErrorLevel
    exit /b %1
    :cmDone
    if %errorlevel% neq 0 goto :VCEnd
    setlocal
    "C:Program Files (x86)CMakeincmake.exe" -E copy file_location-NOTFOUND D:/DIP/Depth-Image-Processing-master/build/applications/face_detection/Debug
    if %errorlevel% neq 0 goto :cmEnd
    :cmEnd
    endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone
    :cmErrorLevel
    exit /b %1
    :cmDone
    if %errorlevel% neq 0 goto :VCEnd
    setlocal
    "C:Program Files (x86)CMakeincmake.exe" -E copy file_location-NOTFOUND D:/DIP/Depth-Image-Processing-master/build/applications/face_detection/Debug
    if %errorlevel% neq 0 goto :cmEnd
    :cmEnd
    endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone
    :cmErrorLevel
    exit /b %1
    :cmDone
    if %errorlevel% neq 0 goto :VCEnd
    setlocal
    "C:Program Files (x86)CMakeincmake.exe" -E copy file_location-NOTFOUND D:/DIP/Depth-Image-Processing-master/build/applications/face_detection/Debug
    if %errorlevel% neq 0 goto :cmEnd
    :cmEnd
    endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone
    :cmErrorLevel
    exit /b %1
    :cmDone
    if %errorlevel% neq 0 goto :VCEnd
    setlocal
    "C:Program Files (x86)CMakeincmake.exe" -E copy file_location-NOTFOUND D:/DIP/Depth-Image-Processing-master/build/applications/face_detection/Debug
    if %errorlevel% neq 0 goto :cmEnd
    :cmEnd
    endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone
    :cmErrorLevel
    exit /b %1
    :cmDone
    if %errorlevel% neq 0 goto :VCEnd
    :VCEnd”已退出,代码为 1。 C:Program Files (x86)MSBuildMicrosoft.Cppv4.0V120Microsoft.CppCommon.targets 132 5 face_detection

    解决方案:"配置" ---》“配置属性” ---》”生成事件”--》“后期生成事件”---》在“生成中使用”修改为“否”。

    2.错误

  • 相关阅读:
    BZOJ 1911: [Apio2010]特别行动队
    BZOJ 1096: [ZJOI2007]仓库建设(动态规划+斜率优化)
    BZOJ 2243: [SDOI2011]染色(树链剖分)
    BZOJ 1834: [ZJOI2010]network 网络扩容(网络流+费用流)
    BZOJ 1036: [ZJOI2008]树的统计Count(树链剖分)
    BZOJ 1875: [SDOI2009]HH去散步(矩阵乘法)
    BZOJ 1898: [Zjoi2004]Swamp 沼泽鳄鱼(矩阵乘法)
    BZOJ 2463: [中山市选2009]谁能赢呢?(博弈论)
    BZOJ 2879: [Noi2012]美食节
    BZOJ 1070: [SCOI2007]修车(费用流)
  • 原文地址:https://www.cnblogs.com/haoyul/p/6434414.html
Copyright © 2011-2022 走看看