[CMake] cmake 2.5 with windows mobile

Artur Wisz wisz at bury.com
Wed Sep 26 05:53:40 EDT 2007


Hello Alex,

thanks for the help.

Alexander Neundorf wrote:
> Why doesn't it work with vcvarsall.bat ?
>   
I tried today once again and it does work with vcvarsall.bat.
> With -D you are setting cmake variables, so they should have cmake-style 
> paths, i.e. using forward slashes. This should fix your problem below.
> What do you use TARGET_PLATFORM for ?
>   
I have removed the TARGET_PLATFORM for now, it is only used in my cmake 
files and has no significance here.
> ...
> You should use the full path including the drive letter, i.e. 
> c:/Programme/.....
>
>   
I have corrected the slashes, and got a little bit closer, now I get a 
linking error - there is no parameter to the implib: option and the 
compiler chokes on that.

...
-- Checkpoint7
-- Check for working C compiler: c:/Programme/Microsoft Visual Studio 
8/VC/ce/bin/x86_arm/cl.exe
-- Check for working C compiler: c:/Programme/Microsoft Visual Studio 
8/VC/ce/bin/x86_arm/cl.exe --
broken
CMake Error: The C compiler "c:/Programme/Microsoft Visual Studio 
8/VC/ce/bin/x86_arm/cl.exe" is not
 able to compile a simple test program.
It fails with the following output:
        "C:\Programme\Microsoft Visual Studio 8\VC\BIN\nmake.exe" -f 
CMakeFiles\cmTryCompileExec.dir
\build.make /nologo -L                  
CMakeFiles\cmTryCompileExec.dir\build
        C:\Programme\CMake\bin\cmake.exe -E cmake_progress_report 
C:\work\sw-repo\trunk\osal\build-a
rm-wince-nmake\Debug\CMakeFiles\CMakeTmp\CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec.dir/testCCompiler.obj
        c:\PROGRA~1\MICROS~3\VC\ce\bin\x86_arm\cl.exe   /nologo /DWIN32 
/D_WINDOWS /D_WIN32_WCE=0x50
1 /D UNDER_CE /D WIN32_PLATFORM_PSPC /D WINCE /D ARM /D _ARM_ /D 
_UNICODE /D UNICODE /fp:fast  /W3 /
Zm1000   /D_DEBUG /MDd /Zi  /Ob0 /Od 
/FoCMakeFiles\cmTryCompileExec.dir\testCCompiler.obj /FdC:\work
\sw-repo\trunk\osal\build-arm-wince-nmake\Debug\CMakeFiles\CMakeTmp\cmTryCompileExec.pdb  
-c C:\work
\sw-repo\trunk\osal\build-arm-wince-nmake\Debug\CMakeFiles\CMakeTmp\testCCompiler.c
testCCompiler.c
Linking C executable cmTryCompileExec
        C:\Programme\CMake\bin\cmake.exe -P 
CMakeFiles\cmTryCompileExec.dir\cmake_clean_target.cmake

        c:\PROGRA~1\MICROS~3\VC\ce\bin\x86_arm\cl.exe  /nologo    
/DWIN32 /D_WINDOWS /D_WIN32_WCE=0x
501 /D UNDER_CE /D WIN32_PLATFORM_PSPC /D WINCE /D ARM /D _ARM_ /D 
_UNICODE /D UNICODE /fp:fast  /W3
 /Zm1000   /D_DEBUG /MDd /Zi  /Ob0 /Od 
"CMakeFiles\cmTryCompileExec.dir\testCCompiler.obj"  /FecmTry
CompileExec 
/FdC:\work\sw-repo\trunk\osal\build-arm-wince-nmake\Debug\CMakeFiles\CMakeTmp\cmTryCompi
leExec.pdb -link /implib: /version:0.0   /MANIFEST /machine:THUMB /debug 
/INCREMENTAL:YES /subsystem
:console  coredll.lib corelibc.lib ole32.lib oleaut32.lib uuid.lib 
commctrl.lib
LINK : fatal error LNK1146: no argument specified with option '/implib:'
NMAKE : fatal error U1077: 
'c:\PROGRA~1\MICROS~3\VC\ce\bin\x86_arm\cl.exe' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Programme\Microsoft Visual Studio 
8\VC\BIN\nmake.exe"' : return code
 '0x2'
Stop.

Bye,

Artur



More information about the CMake mailing list