Andrew,

    Unfortunately, CMake currently has an outstanding issue with VS2010 and 
Fortran. I think it there might be a fix in the next version of CMake, 2.8.6. 
However, we will need to wait on Kitware for this fix.

Allen

> I am trying to build (64-bit) HDF 1.8.7 from source using Visual Studio 2010
> and Intel FORTRAN 12.
> 
> Intel FORTRAN is properly installed and I am able to build FORTRAN programs
> from the Studio.
> 
> However, CMAKE stops with 
> 
> CMake Error at E:/Program Files (x86)/CMake
> 2.8/share/cmake-2.8/Modules/CMakeTestFortranCompiler.cmake:40 (MESSAGE):
>   The Fortran compiler "ifort" is not able to compile a simple test program.
> 
>   It fails with the following output:
> 
>    Change Dir: D:/HDF/hdf5-1.8.7-Win64-Static/CMakeFiles/CMakeTmp
> 
>   
> 
>   Run Build
> Command:E:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe
>   cmTryCompileExec.vcxproj /p:Configuration=Debug
> 
>   Microsoft (R) Build Engine Version 4.0.30319.1
> 
>   [Microsoft .NET Framework, Version 4.0.30319.225]
> 
>   Copyright (C) Microsoft Corporation 2007.  All rights reserved.
> 
>   
> 
>   Build started 7/28/2011 1:55:03 PM.
> 
>   Project
>  
> "D:\HDF\hdf5-1.8.7-Win64-Static\CMakeFiles\CMakeTmp\cmTryCompileExec.vcxproj"
>   on node 1 (default targets).
> 
>   InitializeBuildStatus:
> 
>     Creating "cmTryCompileExec.dir\Debug\cmTryCompileExec.unsuccessfulbuild"
> because "AlwaysCreate" was specified.
> 
>   ManifestResourceCompile:
> 
>     E:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\rc.exe /nologo
> /fo"cmTryCompileExec.dir\Debug\cmTryCompileExec.exe.embed.manifest.res"
> cmTryCompileExec.dir\Debug\cmTryCompileExec_manifest.rc 
> 
>   Link:
> 
>     E:\Program Files (x86)\Microsoft Visual Studio
> 10.0\VC\bin\x86_amd64\link.exe /ERRORREPORT:QUEUE
> /OUT:"D:\HDF\hdf5-1.8.7-Win64-Static\CMakeFiles\CMakeTmp\Debug\cmTryCompileExec.exe"
> /VERSION:"0.0" /INCREMENTAL /NOLOGO user32.lib /MANIFEST
> /ManifestFile:"cmTryCompileExec.dir\Debug\cmTryCompileExec.exe.intermediate.manifest"
> /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /DEBUG
> /PDB:"D:\HDF\hdf5-1.8.7-Win64-Static\CMakeFiles\CMakeTmp\Debug\cmTryCompileExec.pdb"
> /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT
> /IMPLIB:"D:/HDF/hdf5-1.8.7-Win64-Static/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec.lib"
> /MACHINE:X64
> cmTryCompileExec.dir\Debug\cmTryCompileExec.exe.embed.manifest.res  /debug 
> 
>   LINK : error LNK2001: unresolved external symbol mainCRTStartup
>  
> [D:\HDF\hdf5-1.8.7-Win64-Static\CMakeFiles\CMakeTmp\cmTryCompileExec.vcxproj]
> 
> 
>   
>  
> D:\HDF\hdf5-1.8.7-Win64-Static\CMakeFiles\CMakeTmp\Debug\cmTryCompileExec.exe
>   : fatal error LNK1120: 1 unresolved externals
>  
> [D:\HDF\hdf5-1.8.7-Win64-Static\CMakeFiles\CMakeTmp\cmTryCompileExec.vcxproj]
> 
> 
>   Done Building Project
>  
> "D:\HDF\hdf5-1.8.7-Win64-Static\CMakeFiles\CMakeTmp\cmTryCompileExec.vcxproj"
>   (default targets) -- FAILED.
> 
>   
> 
>   Build FAILED.
> 
> --
> View this message in context: 
> http://hdf-forum.184993.n3.nabble.com/CMake-2-8-HDF-1-8-7-Visual-Studio-2010-Intel-Fortran-12-tp3207884p3207884.html
> Sent from the hdf-forum mailing list archive at Nabble.com.
> 
> _______________________________________________
> Hdf-forum is for HDF software users discussion.
> [email protected]
> http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org
> 
_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

Reply via email to