mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-04 13:13:25 +03:00
0023861: Draw can not start if OCCT is installed in a path containing spaces
This commit is contained in:
@@ -5,8 +5,8 @@ REM Use first argument to specify version of Visual Studio (vc8, vc9, or vc10),
|
||||
REM second argument specifies architecture) (win32 or win64)
|
||||
REM third argument specifies Debug or Release mode
|
||||
|
||||
call .\..\..\..\env.bat %1 %2 %3
|
||||
call %~dp0env.bat
|
||||
call "%~dp0..\..\..\env.bat" %1 %2 %3
|
||||
call "%~dp0env.bat"
|
||||
|
||||
if not "%1" == "" (
|
||||
if /I "%1" == "vc8" (
|
||||
@@ -23,7 +23,7 @@ if not "%1" == "" (
|
||||
set "VCVARS=%VS110COMNTOOLS%..\..\VC\vcvarsall.bat"
|
||||
) else (
|
||||
echo Error: first argument ^(%1^) should specify supported version of Visual C++,
|
||||
echo one of: vc8 ^(VS 2005 SP1^), vc9 ^(VS 2008 SP1^), vc10 ^(VS 2010^) or vc10 ^(VS 2012^)
|
||||
echo one of: vc8 ^(VS 2005 SP1^), vc9 ^(VS 2008 SP1^), vc10 ^(VS 2010^) or vc11 ^(VS 2012^)
|
||||
exit
|
||||
)
|
||||
)
|
||||
|
@@ -1,4 +1,8 @@
|
||||
call ../../../env.bat %1 %2 %3
|
||||
call %~dp0env.bat
|
||||
if not ["%CASDEB%"] == [""] call ../../../msvc.bat %VCVER% win%ARCH% %CASDEB% Tutorial-%VCVER%.sln
|
||||
if ["%CASDEB%"] == [""] call ../../../msvc.bat %VCVER% win%ARCH% "" Tutorial-%VCVER%.sln
|
||||
call "%~dp0..\..\..\env.bat" %1 %2 %3
|
||||
call "%~dp0env.bat"
|
||||
|
||||
if ["%CASDEB%"] == [""] (
|
||||
call "%~dp0..\..\..\msvc.bat" %VCVER% win%ARCH% "" "%~dp0Tutorial-%VCVER%.sln"
|
||||
) else (
|
||||
call "%~dp0..\..\..\msvc.bat" %VCVER% win%ARCH% %CASDEB% "%~dp0Tutorial-%VCVER%.sln"
|
||||
)
|
@@ -1,21 +1,20 @@
|
||||
call ../../../env.bat %1 %2 %3
|
||||
call %~dp0env.bat
|
||||
call "%~dp0..\..\..\env.bat" %1 %2 %3
|
||||
call "%~dp0env.bat"
|
||||
|
||||
IF not "%CASDEB%" EQU "" (
|
||||
SET BIN_DIR=win%ARCH%\%VCVER%\bind
|
||||
) ELSE (
|
||||
SET BIN_DIR=win%ARCH%\%VCVER%\bin
|
||||
set "BIN_DIR=win%ARCH%\%VCVER%\bind"
|
||||
if ["%CASDEB%"] == [""] (
|
||||
set "BIN_DIR=win%ARCH%\%VCVER%\bin"
|
||||
)
|
||||
|
||||
if not exist "%BIN_DIR%\Tutorial.exe" goto ERR_EXE
|
||||
if not exist "%~dp0%BIN_DIR%\Tutorial.exe" goto ERR_EXE
|
||||
|
||||
echo Starting Tutorial .....
|
||||
start /D "%BIN_DIR%" Tutorial.exe
|
||||
"%~dp0%BIN_DIR%\Tutorial.exe"
|
||||
|
||||
goto END
|
||||
|
||||
:ERR_EXE
|
||||
echo Executable %BIN_DIR%\Tutorial.exe not found."
|
||||
echo Executable %~dp0%BIN_DIR%\Tutorial.exe not found.
|
||||
echo Probably you didn't compile the application.
|
||||
pause
|
||||
goto END
|
||||
|
Reference in New Issue
Block a user