mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-05 18:16:23 +03:00
0023861: Draw can not start if OCCT is installed in a path containing spaces
This commit is contained in:
parent
643cc6aae4
commit
aea58b16dd
@ -1,3 +1,7 @@
|
|||||||
call ../../env.bat %1 %2 %3
|
call "%~dp0..\..\env.bat" %1 %2 %3
|
||||||
if not ["%CASDEB%"] == [""] call ../../msvc.bat %VCVER% win%ARCH% %CASDEB% %~dp0IE\IE.sln
|
|
||||||
if ["%CASDEB%"] == [""] call ../../msvc.bat %VCVER% win%ARCH% "" %~dp0IE\IE.sln
|
if ["%CASDEB%"] == [""] (
|
||||||
|
call "%~dp0..\..\msvc.bat" %VCVER% win%ARCH% "" "%~dp0IE\IE.sln"
|
||||||
|
) else (
|
||||||
|
call "%~dp0..\..\msvc.bat" %VCVER% win%ARCH% %CASDEB% "%~dp0IE\IE.sln"
|
||||||
|
)
|
@ -1,4 +1,9 @@
|
|||||||
call ../../env.bat %1 %2 %3
|
call "%~dp0..\..\env.bat" %1 %2 %3
|
||||||
if not ["%CASDEB%"] == [""] set "BinDir=Debug"
|
|
||||||
if ["%CASDEB%"] == [""] set "BinDir=Release"
|
set "BinDir=Debug"
|
||||||
%~dp0IE\bin\%BinDir%\IE.exe
|
|
||||||
|
if ["%CASDEB%"] == [""] (
|
||||||
|
set "BinDir=Release"
|
||||||
|
)
|
||||||
|
|
||||||
|
"%~dp0IE\bin\%BinDir%\IE.exe"
|
@ -1,9 +1,10 @@
|
|||||||
IF not "%CASDEB%" EQU "" (
|
|
||||||
SET BIN_DIR=win%ARCH%\%VCVER%\bind
|
set "BIN_DIR=win%ARCH%\%VCVER%\bind"
|
||||||
SET LIB_DIR=win%ARCH%\%VCVER%\libd
|
set "LIB_DIR=win%ARCH%\%VCVER%\libd"
|
||||||
) ELSE (
|
|
||||||
SET BIN_DIR=win%ARCH%\%VCVER%\bin
|
if ["%CASDEB%"] == [""] (
|
||||||
SET LIB_DIR=win%ARCH%\%VCVER%\lib
|
set "BIN_DIR=win%ARCH%\%VCVER%\bin"
|
||||||
|
set "LIB_DIR=win%ARCH%\%VCVER%\lib"
|
||||||
)
|
)
|
||||||
|
|
||||||
SET PATH=%~dp0%LIB_DIR%;%~dp0%BIN_DIR%;%PATH%
|
set "PATH=%~dp0%LIB_DIR%;%~dp0%BIN_DIR%;%PATH%"
|
@ -1,4 +1,9 @@
|
|||||||
call ../../../env.bat %1 %2 %3
|
call "%~dp0..\..\..\env.bat" %1 %2 %3
|
||||||
call %~dp0env.bat
|
|
||||||
if not ["%CASDEB%"] == [""] call ../../../msvc.bat %VCVER% win%ARCH% %CASDEB% All-%VCVER%.sln
|
call "%~dp0env.bat"
|
||||||
if ["%CASDEB%"] == [""] call ../../../msvc.bat %VCVER% win%ARCH% "" All-%VCVER%.sln
|
|
||||||
|
if ["%CASDEB%"] == [""] (
|
||||||
|
call "%~dp0..\..\..\msvc.bat" %VCVER% win%ARCH% "" "%~dp0All-%VCVER%.sln"
|
||||||
|
) else (
|
||||||
|
call "%~dp0..\..\..\msvc.bat" %VCVER% win%ARCH% %CASDEB% "%~dp0All-%VCVER%.sln"
|
||||||
|
)
|
@ -1,23 +1,24 @@
|
|||||||
echo %4
|
@echo off
|
||||||
if "%4" EQU "" (
|
|
||||||
|
if ["%4"] == [""] (
|
||||||
echo Launch selected sample as follows:
|
echo Launch selected sample as follows:
|
||||||
echo Run.bat [^vc8^|^vc9^|^vc10^] [^win32^|^win64^] [^Release^|^Debug^] [^SampleName^]
|
echo Run.bat [^vc8^|^vc9^|^vc10^|^vc11^] [^win32^|^win64^] [^Release^|^Debug^] [^SampleName^]
|
||||||
echo Use option -d to run Debug mode
|
echo Use option -d to run Debug mode
|
||||||
EXIT /B
|
exit /B
|
||||||
)
|
)
|
||||||
|
|
||||||
call ../../../env.bat %1 %2 %3
|
call "%~dp0..\..\..\env.bat" %1 %2 %3
|
||||||
call %~dp0env.bat
|
call "%~dp0env.bat"
|
||||||
|
|
||||||
IF NOT EXIST %BIN_DIR%\%4.exe goto ERR_EXE
|
if not exist "%~dp0%BIN_DIR%\%4.exe" goto err_exe
|
||||||
|
|
||||||
start %BIN_DIR%\%4.exe
|
"%~dp0%BIN_DIR%\%4.exe"
|
||||||
|
|
||||||
GOTO END
|
goto eof
|
||||||
|
|
||||||
:ERR_EXE
|
:err_exe
|
||||||
ECHO Executable %BIN_DIR%\%~n1.exe not found."
|
echo Executable %~dp0%BIN_DIR%\%4.exe not found.
|
||||||
ECHO Probably you didn't compile the application.
|
echo Probably you didn't compile the application.
|
||||||
EXIT /B
|
exit /B
|
||||||
|
|
||||||
:END
|
:eof
|
||||||
|
@ -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 second argument specifies architecture) (win32 or win64)
|
||||||
REM third argument specifies Debug or Release mode
|
REM third argument specifies Debug or Release mode
|
||||||
|
|
||||||
call .\..\..\..\env.bat %1 %2 %3
|
call "%~dp0..\..\..\env.bat" %1 %2 %3
|
||||||
call %~dp0env.bat
|
call "%~dp0env.bat"
|
||||||
|
|
||||||
if not "%1" == "" (
|
if not "%1" == "" (
|
||||||
if /I "%1" == "vc8" (
|
if /I "%1" == "vc8" (
|
||||||
@ -23,7 +23,7 @@ if not "%1" == "" (
|
|||||||
set "VCVARS=%VS110COMNTOOLS%..\..\VC\vcvarsall.bat"
|
set "VCVARS=%VS110COMNTOOLS%..\..\VC\vcvarsall.bat"
|
||||||
) else (
|
) else (
|
||||||
echo Error: first argument ^(%1^) should specify supported version of Visual C++,
|
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
|
exit
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
@ -1,4 +1,8 @@
|
|||||||
call ../../../env.bat %1 %2 %3
|
call "%~dp0..\..\..\env.bat" %1 %2 %3
|
||||||
call %~dp0env.bat
|
call "%~dp0env.bat"
|
||||||
if not ["%CASDEB%"] == [""] call ../../../msvc.bat %VCVER% win%ARCH% %CASDEB% IESample-%VCVER%.sln
|
|
||||||
if ["%CASDEB%"] == [""] call ../../../msvc.bat %VCVER% win%ARCH% "" IESample-%VCVER%.sln
|
if ["%CASDEB%"] == [""] (
|
||||||
|
call "%~dp0..\..\..\msvc.bat" %VCVER% win%ARCH% "" "%~dp0IESample-%VCVER%.sln"
|
||||||
|
) else (
|
||||||
|
call "%~dp0..\..\..\msvc.bat" %VCVER% win%ARCH% %CASDEB% "%~dp0IESample-%VCVER%.sln"
|
||||||
|
)
|
@ -1,21 +1,21 @@
|
|||||||
call ../../../env.bat %1 %2 %3
|
call "%~dp0..\..\..\env.bat" %1 %2 %3
|
||||||
call %~dp0env.bat
|
call "%~dp0env.bat"
|
||||||
|
|
||||||
IF not "%CASDEB%" EQU "" (
|
set "BIN_DIR=win%ARCH%\%VCVER%\bind"
|
||||||
SET BIN_DIR=win%ARCH%\%VCVER%\bind
|
|
||||||
) ELSE (
|
IF ["%CASDEB%"] == [""] (
|
||||||
SET BIN_DIR=win%ARCH%\%VCVER%\bin
|
set "BIN_DIR=win%ARCH%\%VCVER%\bin"
|
||||||
)
|
)
|
||||||
|
|
||||||
if not exist "%BIN_DIR%\IESample.exe" goto ERR_EXE
|
if not exist "%~dp0%BIN_DIR%\IESample.exe" goto ERR_EXE
|
||||||
|
|
||||||
echo Starting IESample .....
|
echo Starting IESample .....
|
||||||
start /D "%BIN_DIR%" IESample.exe
|
"%~dp0%BIN_DIR%\IESample.exe"
|
||||||
|
|
||||||
goto END
|
goto END
|
||||||
|
|
||||||
:ERR_EXE
|
:ERR_EXE
|
||||||
echo Executable %BIN_DIR%\IESample.exe not found."
|
echo Executable %~dp0%BIN_DIR%\IESample.exe not found.
|
||||||
echo Probably you didn't compile the application.
|
echo Probably you didn't compile the application.
|
||||||
pause
|
pause
|
||||||
goto END
|
goto END
|
||||||
|
@ -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 second argument specifies architecture) (win32 or win64)
|
||||||
REM third argument specifies Debug or Release mode
|
REM third argument specifies Debug or Release mode
|
||||||
|
|
||||||
call .\..\..\..\env.bat %1 %2 %3
|
call "%~dp0..\..\..\env.bat" %1 %2 %3
|
||||||
call %~dp0env.bat
|
call "%~dp0env.bat"
|
||||||
|
|
||||||
if not "%1" == "" (
|
if not "%1" == "" (
|
||||||
if /I "%1" == "vc8" (
|
if /I "%1" == "vc8" (
|
||||||
@ -23,7 +23,7 @@ if not "%1" == "" (
|
|||||||
set "VCVARS=%VS110COMNTOOLS%..\..\VC\vcvarsall.bat"
|
set "VCVARS=%VS110COMNTOOLS%..\..\VC\vcvarsall.bat"
|
||||||
) else (
|
) else (
|
||||||
echo Error: first argument ^(%1^) should specify supported version of Visual C++,
|
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
|
exit
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
@ -1,4 +1,8 @@
|
|||||||
call ../../../env.bat %1 %2 %3
|
call "%~dp0..\..\..\env.bat" %1 %2 %3
|
||||||
call %~dp0env.bat
|
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
|
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 "%~dp0..\..\..\env.bat" %1 %2 %3
|
||||||
call %~dp0env.bat
|
call "%~dp0env.bat"
|
||||||
|
|
||||||
IF not "%CASDEB%" EQU "" (
|
set "BIN_DIR=win%ARCH%\%VCVER%\bind"
|
||||||
SET BIN_DIR=win%ARCH%\%VCVER%\bind
|
if ["%CASDEB%"] == [""] (
|
||||||
) ELSE (
|
set "BIN_DIR=win%ARCH%\%VCVER%\bin"
|
||||||
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 .....
|
echo Starting Tutorial .....
|
||||||
start /D "%BIN_DIR%" Tutorial.exe
|
"%~dp0%BIN_DIR%\Tutorial.exe"
|
||||||
|
|
||||||
goto END
|
goto END
|
||||||
|
|
||||||
:ERR_EXE
|
: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.
|
echo Probably you didn't compile the application.
|
||||||
pause
|
pause
|
||||||
goto END
|
goto END
|
||||||
|
@ -1,4 +1,7 @@
|
|||||||
call ../../../env.bat %1 %2 %3
|
call "%~dp0..\..\..\env.bat" %1 %2 %3
|
||||||
|
|
||||||
if not ["%CASDEB%"] == [""] call ../../../msvc.bat %VCVER% win%ARCH% %CASDEB% VoxelDemo-%VCVER%.sln
|
if ["%CASDEB%"] == [""] (
|
||||||
if ["%CASDEB%"] == [""] call ../../../msvc.bat %VCVER% win%ARCH% "" VoxelDemo-%VCVER%.sln
|
call "%~dp0..\..\..\msvc.bat" %VCVER% win%ARCH% "" "%~dp0VoxelDemo-%VCVER%.sln"
|
||||||
|
) else (
|
||||||
|
call "%~dp0..\..\..\msvc.bat" %VCVER% win%ARCH% %CASDEB% "%~dp0VoxelDemo-%VCVER%.sln"
|
||||||
|
)
|
@ -1,20 +1,19 @@
|
|||||||
call ../../../env.bat %1 %2 %3
|
call "%~dp0..\..\..\env.bat" %1 %2 %3
|
||||||
|
|
||||||
IF not "%CASDEB%" EQU "" (
|
set "BIN_DIR=Debug"
|
||||||
SET BIN_DIR=Debug
|
if ["%CASDEB%"] == [""] (
|
||||||
) ELSE (
|
set "BIN_DIR=Release"
|
||||||
SET BIN_DIR=Release
|
|
||||||
)
|
)
|
||||||
|
|
||||||
if not exist "%BIN_DIR%\VoxelDemo.exe" goto ERR_EXE
|
if not exist "%~dp0%BIN_DIR%\VoxelDemo.exe" goto ERR_EXE
|
||||||
|
|
||||||
echo Starting VoxelDemo .....
|
echo Starting VoxelDemo .....
|
||||||
start /D "%BIN_DIR%" VoxelDemo.exe
|
"%~dp0%BIN_DIR%\VoxelDemo.exe"
|
||||||
|
|
||||||
goto END
|
goto END
|
||||||
|
|
||||||
:ERR_EXE
|
:ERR_EXE
|
||||||
echo Executable %BIN_DIR%\VoxelDemo.exe not found."
|
echo Executable %~dp0%BIN_DIR%\VoxelDemo.exe not found.
|
||||||
echo Probably you didn't compile the application.
|
echo Probably you didn't compile the application.
|
||||||
pause
|
pause
|
||||||
goto END
|
goto END
|
||||||
|
Loading…
x
Reference in New Issue
Block a user