Hello,

Your problem seem to be a corner case in the cmake build system that is
difficult to track down. Here are a few question to try to help us go
further in the analysis.

-----------------------------------------------------------------------
Summary of Jayas' config:
* Visual Studio 2005,Qt4.1.2 on Windows
* WindowsXP - Service Pack 2, Intel Core2 CPU T7400 @ 2.16GHz (32bit)

Code source: wengophone-2.1

Cmake build system corner case (the build has not even started):
> > CMakeFiles\cmTryCompileExec.dir\testCCompiler.obj : fatal 
> error LNK1112:
> > module machine type 'X86' conflicts with target machine type 'x64' 
> > NMAKE
> > : fatal error U1077: 'C:\PROGRA~1\MICROS~4\VC\bin\cl.exe' : return 
> > code '0x2' Stop. NMAKE : fatal error U1077: '"C:\Program 
> > Files\Microsoft Visual Studio 8\VC\BIN\nmake.exe"' : return 
> code '0x2' Stop.
-----------------------------------------------------------------------

-1/ can you confirm the description given above ?

0/ (open question): has anyone entered into the same problem with VS2005 ?

1/ What version of cmake do you have ?

2/ How did you install cmake ? (the best would be a link to the installer
you used)

3/ can you test on another machine ?
For information, I had a problem with cmake that was coming from the
"Logitech process monitor" that has nothing to do with cmake.

4/ can you test with Visual 2003 which is the preferred compiler as of now
for WengoPhone (VS2005 is still a work in progress)

5/ could you paste on pastebin your environment settings. Maybe someone can
spot something in this ?

7/ do you confirm that you erase you cmake build directory and all
associated cmake cache files before launching the cmake ?

6/ When your linker says :

CMakeFiles\cmTryCompileExec.dir\testCCompiler.obj : fatal
module machine type 'X86' conflicts with target machine type 'x64', 

do you have any lead on what has chosen the module machine type and what has
chosen the target machine type ?

maybe looking at what is testCCompiler.(c/cpp) in cmake could help

more precisely, what would lead cmake to tacget 'x64' if you have a 32 bit
machine ?

Hoping this will help,
Jerome


-----Message d'origine-----
De : [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] De la part de Jaya
Meghani
Envoyé : mardi 2 janvier 2007 16:56
À : Andreas Schneider
Cc : [email protected]
Objet : RE: [Wengophone-devel] Building using Cmake - Error

 
> Jaya Meghani wrote:
> > Hi,
> Hi Jaya,
> 
> > 
> > I am using Visual Studio 2005,Qt4.1.2 on Windows.
> 
> Windows version, arch? Please be more precise next time. I 
> try to guess...
I am using WindowsXP - Service Pack 2, Intel Core2 CPU T7400 @ 2.16GHz.
So its 32 bit.
> 
> > 
> > I get this error:
> > 
> 
> ...
> 
> > CMakeFiles\cmTryCompileExec.dir\testCCompiler.obj : fatal 
> error LNK1112:
> > module machine type 'X86' conflicts with target machine type 'x64' 
> > NMAKE
> > : fatal error U1077: 'C:\PROGRA~1\MICROS~4\VC\bin\cl.exe' : return 
> > code '0x2' Stop. NMAKE : fatal error U1077: '"C:\Program 
> > Files\Microsoft Visual Studio 8\VC\BIN\nmake.exe"' : return 
> code '0x2' Stop.
> > 
> 
> Looks like you have a 64bit processor and nmake has a problem 
> with the machine type. Did your VS come with a
> 
>    "Visual Studio 2005 x64 Win64 Command Prompt"
> 
> If not install the x64 tools.
> 
> I googled this ;)
I got this on google too (before posting query) but since I have 32bit
machine..I needed help.
I also read somewhere that this error comes when libraries are compiled
for different configurations (32 and 64) and linker is trying to link
them.
> 
> 
> 
>       -- andreas
> 
> --
> http://www.cynapses.org/ - cybernetic synapses
> 
> 
> 
_______________________________________________
Wengophone-devel mailing list
[email protected]
http://dev.openwengo.com/mailman/listinfo/wengophone-devel

_______________________________________________
Wengophone-devel mailing list
[email protected]
http://dev.openwengo.com/mailman/listinfo/wengophone-devel

Reply via email to