I can't figure out what I'm doing wrong when using the scripts.
I want to build OpenViBE 0.9.0 on Windows XP with msvc9 (VC 2008).
Following the INSTALL recommendations:
- I launched win32-install_dependencies.exe.
- I Saved win32-init_env_command.cmd-skeleton as win32-init_env_command.cmd
- I opened win32-init_env_command.cmd and then the wierd stuff started ...
First I had to change the following lines:
Code: Select all
if exist "!VS90COMNTOOLS!\vsvars32.bat" (
SET VSTOOLS=!VS90COMNTOOLS!\vsvars32.bat
SET VSCMake=Visual Studio 9 2008
)
Code: Select all
if exist "%VS90COMNTOOLS%vsvars32.bat" (
SET VSTOOLS=%VS90COMNTOOLS%vsvars32.bat
SET VSCMake=Visual Studio 9 2008
)
I'm not that familiar with the type of scripts you are using but I see a lots of those "!" char and as it was the source of the initial error message, I woudl like to be sure that the following part of the script is right:
Code: Select all
for /D %%s in (%OpenViBE_modules%/*) do (
set OpenViBE_project_name=%%~ns
REM echo OpenViBE_project_name %OpenViBE_project_name%
set OpenViBE_project_name=!OpenViBE_project_name:-=_!
REM echo OpenViBE_project_name %OpenViBE_project_name%
echo if "%%OpenViBE_module_!OpenViBE_project_name!_branch%%" == "" SET OpenViBE_module_!OpenViBE_project_name!_branch=%OpenViBE_default_branch% >> tmp_branch.cmd
echo set OpenViBE_module_!OpenViBE_project_name!=%OpenViBE_modules%\%%~ns\%OpenViBE_percent%OpenViBE_module_!OpenViBE_project_name!_branch%OpenViBE_percent% >> tmp_branch.cmd
REM echo OpenViBE_project_name %OpenViBE_project_name%
call tmp_branch.cmd
del tmp_branch.cmd
)
My console outputs (with the echo commented):
Code: Select all
Setting environment for using Microsoft Visual Studio 2008 x86 tools.
The input line is too long.
The syntax of the command is incorrect.