[CMake] Visual Studio and Windows Mobile SDKs

Clemens Arth Clemens.Arth at gmx.at
Tue Jul 1 04:04:48 EDT 2008


Hi again,

> I took a look at your files and I think you have done a pretty good job
> and that should work out well. For some reason I had to force the compiler
> setting to be MSVC, because cmake did not set it automatically. 

I also had to force the CXX compiler setting to MSVC.

> However, the linker returns an error for mobile 5 and 6:
> 
> module machine type 'X86' conflicts with target machine type 'THUMB'

Well, the main problem seems to be the fact, that after all the configuration stuff cmake still sticks to the usual x86 compiler for compiling the test program:

  Run Build Command:C:\PROGRA~1\MICROS~1.0\Common7\IDE\devenv.com
  CMAKE_TRY_COMPILE.sln /build Debug /project cmTryCompileExec

  Microsoft (R) Visual Studio Version 9.0.21022.8.

  Copyright (C) Microsoft Corp.  All rights reserved.

  1>------ Build started: Project: cmTryCompileExec, Configuration: Debug
  Win32 ------

  1>Compiling...

  1>Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 15.00.21022.08 for
  80x86

  1>Copyright (C) Microsoft Corporation.  All rights reserved.

  1>cl /Od /D "WIN32" /D "_WINDOWS" /D "_DEBUG" /D "UNICODE" /D "_UNICODE" /D
  "WIN32_PLATFORM_PSPC=0x500" /D "UNDER_CE=0x500" /D "ARM" /D "ARMV4I" /D
  "_ARM_" /D "CMAKE_INTDIR=\"Debug\"" /FD /MDd
   /Fo"cmTryCompileExec.dir\Debug\\" /Fd"D:/Uni/MOBILEDEVS/SVNCHECKOUT/StbMath/testcm/pokorny/CMakeFiles/CMakeTmp/D
ebug/cmTryCompileExec.pdb" /W3 /c /Zi /TC /Zm1000 "-IC:/Program Files/Windows Mobile 5.0 SDK
  R2/PocketPC/Include/Armv4i" -QRarch4

  1> .\testCCompiler.c

  1>cl : Command line warning D9002 : ignoring unknown option '-QRarch4'

  1>testCCompiler.c

  1>Compiling manifest to resources...

  1>Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.0

  1>Copyright (C) Microsoft Corporation.  All rights reserved.

  1>Linking...

  1>.\cmTryCompileExec.dir\Debug\testCCompiler.obj : fatal error LNK1112:  module machine type 'X86' conflicts with target machine type 'THUMB'

First it tells about trying if the compiler is able to compile a simple program, but then it uses the normal compiler for x86.

Clemens


-- 
GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen!
Jetzt dabei sein: http://www.shortview.de/wasistshortview.php?mc=sv_ext_mf@gmx


More information about the CMake mailing list