Re: [netcdfgroup] [Hdf-forum] Cmake Windows build with errors -- missing Fortran

  • To: <hdf-forum@xxxxxxxxxxxx>
  • Subject: Re: [netcdfgroup] [Hdf-forum] Cmake Windows build with errors -- missing Fortran
  • From: "Pedro Vicente" <pvicente@xxxxxxx>
  • Date: Sat, 30 Mar 2013 09:05:17 -0700
Hi Allen

when doing

T:\hdf5-1.8.10-patch1\build>cmake -C ../config/cmake/cacheinit.cmake
add " ." ({space}{dot}) at end of command


ah, I missed that dot
I guess you actually mean 2 dots (folder beneath), since when I did one dot I get an error

my build path is

T:\hdf5-1.8.10-patch1\build

anyway , I did

T:\hdf5-1.8.10-patch1\build>cmake -C ../config/cmake/cacheinit.cmake .. -D"SZIP_INCLUDE_DIR:PATH=T:\szip\src" -D"SZIP_LIBRARY:FILEPATH=T:\szip\all\lib\Debug\szlib.lib" -D"ZLIB_INCL UDE_DIR:PATH=T:\zlib-1.2.3" -D"ZLIB_LIBRARY:FILEPATH=T:\zlib-1.2.3\projects\visualc6\Win32_LIB_Debug\zlibd.lib" > out.txt

where the zlib and szip are my own szip and zlib locations

I get errors and warnings
It seems that

1) my zlib and szip locations are not detected
2) it complains that I don't have the Fortran compiler (I don't) and gives an error because of this

this seems like a bug in the Cmake build maybe?


the relevant messages are:



loading initial cache file ../config/cmake/cacheinit.cmake
CMake Warning at CMakeLists.txt:562 (FIND_PACKAGE):
 Could not find a package configuration file provided by "ZLIB" with any of
 the following names:

   zlibConfig.cmake
   zlib-config.cmake

 Add the installation prefix of "ZLIB" to CMAKE_PREFIX_PATH or set
 "ZLIB_DIR" to a directory containing one of the above files.  If "ZLIB"
 provides a separate development package or SDK, be sure it has been
 installed.


CMake Warning at CMakeLists.txt:606 (FIND_PACKAGE):
 Could not find a package configuration file provided by "SZIP" with any of
 the following names:

   szipConfig.cmake
   szip-config.cmake

 Add the installation prefix of "SZIP" to CMAKE_PREFIX_PATH or set
 "SZIP_DIR" to a directory containing one of the above files.  If "SZIP"
 provides a separate development package or SDK, be sure it has been
 installed.


CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeTestFortranCompiler.cmake:54 (message):
 The Fortran compiler "ifort" is not able to compile a simple test program.

 It fails with the following output:

  Change Dir: T:/hdf5-1.8.10-patch1/build/CMakeFiles/CMakeTmp

T:\hdf5-1.8.10-patch1\build\CMakeFiles\CMakeTmp\cmTryCompileExec4230441850.vfproj'
 cannot be opened because its project type (.vfproj) is not supported by
 this version of the application.


 CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
 config/cmake/HDF5UseFortran.cmake:5 (ENABLE_LANGUAGE)
 CMakeLists.txt:752 (INCLUDE)



-- Checking IF alignment restrictions are strictly enforced... yes
-- Found ZLIB: T:/zlib-1.2.3/projects/visualc6/Win32_LIB_Debug/zlibd.lib (found version "1.2.3")
-- Filter ZLIB is ON
-- Looking for SZIP_BUILT_AS_DYNAMIC_LIB
-- Looking for SZIP_BUILT_AS_DYNAMIC_LIB - not found
-- Filter SZIP is ON
-- Check for working Fortran compiler using: Visual Studio 10
-- Check for working Fortran compiler using: Visual Studio 10  -- broken
-- Configuring incomplete, errors occurred!




------
Pedro Vicente, Earth System Science
University of California, Irvine
http://www.ess.uci.edu/


----- Original Message ----- From: "Allen D Byrne" <byrn@xxxxxxxxxxxx>
To: <hdf-forum@xxxxxxxxxxxx>
Cc: <help@xxxxxxxxxxxx>
Sent: Friday, March 29, 2013 11:40 AM
Subject: Re: [Hdf-forum] Cmake build witk zlib errors


On Friday, March 29, 2013 09:48:19 AM Pedro Vicente wrote:
Hi HDF Group

I am having some trouble using the Cmake build to build the latest HDF5 in
Windows

What I did:
...

I followed the instructions on the file /release_docs/Cmake.txt

that says

 cmake -C <sourcepath>/config/cmake/cacheinit.cmake -G "<generator>"
[-D<options>]  <sourcepath>
        <options> is:
            * SZIP_INCLUDE_DIR:PATH=<path to szip includes directory>
            * SZIP_LIBRARY:FILEPATH=<path to szip/library file>
            * ZLIB_INCLUDE_DIR:PATH=<path to zlib includes directory>
            * ZLIB_LIBRARY:FILEPATH=<path to zlib/library file>
            * <HDF5OPTION>:BOOL=[ON | OFF]


when doing

T:\hdf5-1.8.10-patch1\build>cmake -C ../config/cmake/cacheinit.cmake
add " ." ({space}{dot}) at end of command

loading initial cache file ../config/cmake/cacheinit.cmake

there was this error message

CMake Error: The source directory
"T:/hdf5-1.8.10-patch1/config/cmake/cacheinit.cmake" is a file, not a
directory.
Specify --help for usage, or press the help button on the CMake GUI.



Thank you in advance for any help on this



------
Pedro Vicente, Earth System Science
University of California, Irvine
http://www.ess.uci.edu/


_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@xxxxxxxxxxxx
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@xxxxxxxxxxxx
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org





  • 2013 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdfgroup archives: