[Development] CMake tests with 64 bit windows

Sarajärvi Tony Tony.Sarajarvi at digia.com
Wed Apr 10 15:13:21 CEST 2013


Here's the output of our build machine. Had to wing some of the commands.

-Tony

-----Original Message-----
From: Saether Jan-Arve 
Sent: 10. huhtikuuta 2013 16:01
To: Stephen Kelly; development at qt-project.org
Cc: Sarajärvi Tony; Andreas Holzammer; Patrick Spendrin
Subject: RE: [Development] CMake tests with 64 bit windows

Attached is the essential output, Stephen.

Interestingly, the tool chain I had in this shell was msvc2010 (x64).
(As you can see from the call to 'cl')

However, cmake doesn't seem to pick that up and instead picks up my older 2008 compiler.
Inspecting the qtcmaketest.vcproj file also shows the issue (line 67):

AdditionalOptions=" /STACK:10000000 /machine:X86 /debug"


It seems that the reason is that cmake does not recognize/utilize the msvc2010 x64 toolchain for some reason.

Jan Arve




> -----Original Message-----
> From: development-bounces+jan-arve.saether=digia.com at qt-project.org
> [mailto:development-bounces+jan-arve.saether=digia.com at qt-project.org]
> On Behalf Of Stephen Kelly
> Sent: 10. april 2013 13:09
> To: development at qt-project.org
> Cc: Sarajärvi Tony; Andreas Holzammer; Patrick Spendrin
> Subject: Re: [Development] CMake tests with 64 bit windows On 
> Wednesday, April 10, 2013 07:30:34 you wrote:
>> Hello,
>> 
>> we encountered some trouble when setting up a new CI machine where we 
>> would run Windows 7 64 bit and compile in 64 bit mode. The CMake 
>> tests fail there.
> 
> Andy/Patrick, have you ever seen something like this before?
> 
>  ClCompile:
>    two.cpp
>    two_automoc.cpp
>  Qt5Core.lib(Qt5Core.dll) : fatal error LNK1112: module machine type 
> 'x64'
> conflicts with target machine type 'X86'
> 
> More logging:
> 
>  http://thread.gmane.org/gmane.comp.lib.qt.devel/10746
> 
> Tony, please download the attached files and execute the build with 
> qmake and cmake (both with nmake and visual studio generators) and 
> post all of the terminal output. Something like this:
> 
>  cd qtcmaketest mkdir qmaketest cd qmaketest  
> C:\path\to\Qt5\bin\qmake.exe .. nmake cd .. mkdir cmake_nmake cd  
> cmake_nmake cmake .. -G "NMake Makefiles" -DCMAKE_VERBOSE_MAKEFILE=1 -  
> DCMAKE_PREFIX_PATH=C:\path\to\Qt5\lib\cmake cmake --build . cd .. cd  
> cmake_vs cmake .. -DCMAKE_VERBOSE_MAKEFILE=1 -DCMAKE_PREFIX_PATH=C:
>  \path\to\Qt5\lib\cmake cmake --build . cd ..
> Thanks,
>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: cmake_test.txt
URL: <http://lists.qt-project.org/pipermail/development/attachments/20130410/b9a0c2ba/attachment.txt>


More information about the Development mailing list