第一个批处理文件执行是让提供三个路径,后面三个路径都是提供的对应路径,但是老是出现这样的提示
,求各位大神帮帮忙看看,批处理文件的代码在这
@echo off
call "C:\Program Files\Microsoft Visual Studio 10.0\Common7\Tools\vsvars32.bat"
set /A ARGS_COUNT=0
for %%A in (%*) do set /A ARGS_COUNT+=1
if %ARGS_COUNT% NEQ 3 (goto :Usage)
if NOT DEFINED OSGEO4W_ROOT (goto :NoOSGEO4W)
set src_dir=%1
set build_dir=%2
set otb_install_dir=%3
set cmake_dir=D:\CMake\bin
set current_dir=%CD%
set LANG=C
set ITK_AUTOLOAD_PATH=
set PYTHONPATH=
set PATH=%OSGEO4W_ROOT%\apps\swigwin\;%PATH%
cd %build_dir%
%cmake_dir%\cmake %src_dir%
-G "Visual Studio 10"
-DBUILD_EXAMPLES:BOOL=ON
-DOTB_WRAP_QT:BOOL=ON
-DOTB_WRAP_PYTHON:BOOL=ON
-DPYTHON_LIBRARY:FILEPATH="%OSGEO4W_ROOT%/apps/Python27/libs/python27.lib"
-DPYTHON_INCLUDE_DIR:PATH="%OSGEO4W_ROOT%/apps/Python27/include"
-DPYTHON_EXECUTABLE:FILEPATH="%OSGEO4W_ROOT%/bin/python.exe"
-DOTB_USE_OPENCV:BOOL=ON
-DCMAKE_INSTALL_PREFIX:PATH=%otb_install_dir%
-DCMAKE_CONFIGURATION_TYPES:STRING=Release;RelWithDebInfo
%cmake_dir%\cmake --build . --target INSTALL --config RelWithDebInfo
cd %current_dir%
goto :END
:Usage
echo You need to provide 3 arguments to the script:
echo 1. path to the source directory (OTB_SOURCE_DIR)
echo 2. path to the build directory (OTB_BINARY_DIR)
echo 3. path to the installation directory (an empty directory)
GOTO :END
:NoOSGEO4W
echo You need to run this script from an OSGeo4W shell
GOTO :END
:END