[slicer-devel] Slicer 4 build on Win7

Jean-Christophe Fillion-Robin jchris.fillionr at kitware.com
Mon Dec 19 12:31:01 EST 2011


Configuring project using the appropriate "Visual Studio prompt" should
avoid CMake to get confused.

1) Start Menu -> All programs -> VS2008 pro 64bit command prompt
2) C:\path\to\cmake-gui.exe

Google-ing for "VS 2008 console prompt" could also be helpful.

Hth
Jc

2011/12/19 Julien Finet <julien.finet at kitware.com>

> Hi Luping,
>
> Indeed,
> CMake 2.8.4. (and higher ?) doesn't supports 64bits builds with Visual
> Studio 2008 Express .
> Only Visual Studio 2008 (and higher) Professional support 64bits.
> When you configure a CMake project with Visual Studio Pro on a machine
> that has Express and Pro installed, you have to make sure it uses the right
> compiler (pro (devenv.exe and not express(vcexpress.ece)). It's usually not
> a good idea to have both Express and Pro installed at the same time. CMake
> might be confused.
> Julien.
>
> On Fri, Dec 16, 2011 at 9:17 PM, Luping Fang <lpfang at bwh.harvard.edu>wrote:
>
>> Hi Julien,****
>>
>> ** **
>>
>> First, I installed Visual Studio 2008 EXPRESS on Win7 of 64bits. In CMAKE
>> 2.8.6 GUI, when I click the ¡®configure¡¯ button and specify ¡°Visual Studio 9
>> 2008 Win64¡± as the generator for this project, CMAKE failed.****
>>
>> Some of the error messages are  ¡°****
>>
>> CMake Error at C:/Program Files/CMake
>> 2.8/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:52 (MESSAGE):****
>>
>> The C compiler "cl" is not able to compile a simple test program.****
>>
>> It fails with the following output:****
>>
>> Change Dir: C:/myproject/slicer4-SuperBuild-Debug/CMakeFiles/CMakeTmp****
>>
>> Run Build Command:c:\PROGRA~1\MICROS~1.0\Common7\IDE\VCExpress.exe****
>>
>> CMAKE_TRY_COMPILE.sln /build Debug /project cmTryCompileExec****
>>
>> Microsoft (R) Visual C++ Express Edition Version 9.0.30729.1.****
>>
>> Copyright (C) Microsoft Corp 2007. All rights reserved.****
>>
>> The project consists entirely of configurations that require support for*
>> ***
>>
>> platforms which are not installed on this machine. The project cannot be*
>> ***
>>
>> loaded.¡± ****
>>
>> I doubted if Visual Studio 2008 Express can support the 64bits
>> building.  Then  I installed Visual Studio 2008 Professional instead,
>> however got the same error results. It seems Visual Studio 2008
>> Professional cannot support the 64bits building either. My conclusion is
>> none of 2008 EXPRESS and PROFESSIONAL versions can build projects in
>> 64bits. Any mistakes I have made? Attached pls find the screenshot of the
>> CMake-Gui.****
>>
>> ** **
>>
>> Best regards,****
>>
>> ** **
>>
>> Luping****
>>
>> ** **
>>
>> *·¢¼þÈË:* Julien Finet [mailto:julien.finet at kitware.com]
>> *·¢ËÍʱ¼ä:* 2011Äê12ÔÂ17ÈÕ 0:31
>> *ÊÕ¼þÈË:* Luping Fang
>> *Ö÷Ìâ:* Re: Slicer 4 build on Win7****
>>
>> ** **
>>
>> Hi luping,****
>>
>> It should be possible to build slicer in 64bits.****
>>
>> What's the error you have?****
>>
>> Are you compiling against a 64b Qt library?
>>
>> Julien.****
>>
>>
>> On Dec 16, 2011, at 9:42 AM, "Luping Fang" <lpfang at bwh.harvard.edu>
>> wrote:****
>>
>> Hi Julien,****
>>
>>  ****
>>
>> I have a new Dell-laptop of Latitude E6520 ( I remember you have a Dell
>> laptop also.).  It has CPU of Core i7 (quad-core), running on Win 7 of
>> 64bit version. I hope to have a 64bit version of Slicer 4. However the
>> CMAKE complains and fails if  ¡°Visual Studio 9 2008 Win64¡± is selected as
>> the compiler.  If I choose  ¡°Visual Studio 9 2008¡±, everything goes ok and
>> of course the built Slicer is 32bit version.  Is it possible to build a
>> 64bit version of Slicer on Win7?  I appreciate your tips.****
>>
>>  ****
>>
>> Best regards,****
>>
>>  ****
>>
>> Luping****
>>
>>
>
> _______________________________________________
> slicer-devel mailing list
> slicer-devel at bwh.harvard.edu
> http://massmail.spl.harvard.edu/mailman/listinfo/slicer-devel
> To unsubscribe: send email to
> slicer-devel-request at massmail.spl.harvard.edu with unsubscribe as the
> subject
>



-- 
+1 919 869 8849
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://massmail.spl.harvard.edu/public-archives/slicer-devel/attachments/20111219/1cf4b3af/attachment-0001.html 


More information about the slicer-devel mailing list