I'm trying to run a file called configure.bat which contains the following:
echo off
mkdir Platforms
mkdir Platforms\bb2010wm
FOR /F "tokens=2* " %%A IN ('REG QUERY "HKLM\SOFTWARE\CodeGear\BDS\7.0" /v RootDir') DO SET BCB2010_ENV_ROOT=%%B
cd Platforms\bb2010wm
..\..\build\cmake\bin\cmake.exe -G "Borland Makefiles" -D CMAKE_C_FLAGS:STRING="-g0 -tWM -WU -x -xd -w-8012 -w-8027 -w-8026 -w-8066 -w-8022 -w-8004 -w-8057 -w-8088 -w-8030 -w-8072 -w-8060 -w-8008 -DWIN32 -D_UNICODE -DUNICODE" -D CMAKE_CXX_FLAGS:STRING="-g0 -tWM -WU -x -xd -w-8012 -w-8027 -w-8026 -w-8066 -w-8022 -w-8004 -w-8057 -w-8088 -w-8030 -w-8072 -w-8060 -w-8008 -DWIN32 -D_UNICODE -DUNICODE" -D CMAKE_C_COMPILER:PATH="%BCB2010_ENV_ROOT%Bin\\bcc32.exe" -D CMAKE_CXX_COMPILER:PATH="%BCB2010_ENV_ROOT%Bin\\bcc32.exe" -D ODA_HAS_OPENGL=1 -D ODA_OPENGL_LIBS="Opengl32.lib" -D CMAKE_BUILD_TYPE=Release -D CMAKE_CONFIGURATION_TYPES=Release ../../
cd ..\..\
set TAB=
echo all: > Makefile
echo %TAB%cd Platforms\bb2010wm>>Makefile
echo %TAB%make all>> Makefile
echo clean: >> Makefile
echo %TAB%cd Platforms\bb2010wm>> Makefile
echo %TAB%make clean>> Makefile
My Borland C++ compiler is in "c:\Borland\BCC55\Bin\bcc32.exe"
I've set CMAKE_C_COMPILER="c:\Borland\BCC55\Bin\bcc32.exe"
But when I run the configure.bat I get the following error message:
C:\Documents and Settings\dave\My Documents\Borland>configure.bat
C:\Documents and Settings\dave\My Documents\Borland>echo off
Error: The system was unable to find the specified registry key or value
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
-- Check for working C compiler: Bin//bcc32.exe
CMake Error: your C compiler: "Bin//bcc32.exe" was not found. Please set CMAKE
_C_COMPILER to a valid compiler path or name.
CMake Error: Internal CMake error, TryCompile configure of cmake failed
-- Check for working C compiler: Bin//bcc32.exe -- broken
CMake Error at build/cmake/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:56 (
MESSAGE):
The C compiler "Bin//bcc32.exe" is not able to compile a simple test
program.It fails with the following output:
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:3 (project)CMake Error: your C compiler: "Bin//bcc32.exe" was not found. Please set CMAKE
_C_COMPILER to a valid compiler path or name.
CMake Error: your CXX compiler: "Bin//bcc32.exe" was not found. Please set CMA
KE_CXX_COMPILER to a valid compiler path or name.
-- Configuring incomplete, errors occurred!
I sustpect it has something to do with the double forward slashes.
How can I rectify this?