Hello
I saw this thread and am in need of cmakeified netCDF for a project, so I tried
downloading and building the tarball on win8/vs2012 - naturally, it failed.
Is it not safe to assume that anyone building netCDF for themselves using cmake
has also already built hdf5 themselves using cmake first. If so, then it is not
necessary to
INCLUDE (${CMAKE_SOURCE_DIR}/cmake/modules/windows/FindHDF5.cmake)
But rather just use
find_package(HDF5 NO_MODULE)
and then all the checks for includes/libs and all the other stuff I had to
remove just go away. Just link to hdf5 or hdf5_hl as the targets are imported
for you.
With a few tweaks and removing all the unnecessary checks, all builds fine. Is
there a repo to which I can submit a patch?
I tried running the tests and got quite a few fails.
Should I try to find what's wrong with them, or are they 'known' to fail on
windows.
JB
Test project C:/cmakebuild/netcdf-4.3
Start 1: ncdump_ctest
1/106 Test #1: ncdump_ctest ..................... Passed 0.02 sec
Start 2: ncdump_ctest64
2/106 Test #2: ncdump_ctest64 ................... Passed 0.02 sec
Start 3: ncdump_tst_utf8
3/106 Test #3: ncdump_tst_utf8 .................. Passed 0.02 sec
Start 4: ncdump_tst_create_files
4/106 Test #4: ncdump_tst_create_files ..........***Failed 0.02 sec
Start 5: ncdump_tst_group_data
5/106 Test #5: ncdump_tst_group_data ............***Failed 0.02 sec
Start 6: ncdump_tst_enum_data
6/106 Test #6: ncdump_tst_enum_data .............***Failed 0.03 sec
Start 7: ncdump_tst_opaque_data
7/106 Test #7: ncdump_tst_opaque_data ...........***Failed 0.02 sec
Start 8: ncdump_tst_string_data
8/106 Test #8: ncdump_tst_string_data ...........***Failed 0.02 sec
Start 9: ncdump_tst_vlen_data
9/106 Test #9: ncdump_tst_vlen_data .............***Failed 0.02 sec
Start 10: ncdump_tst_comp
10/106 Test #10: ncdump_tst_comp ..................***Failed 0.02 sec
Start 11: ncdump_tst_comp2
11/106 Test #11: ncdump_tst_comp2 .................***Failed 0.04 sec
Start 12: ncdump_tst_nans
12/106 Test #12: ncdump_tst_nans .................. Passed 0.02 sec
Start 13: ncdump_tst_unicode
13/106 Test #13: ncdump_tst_unicode ...............***Failed 0.02 sec
Start 14: nctest
14/106 Test #14: nctest ...........................***Failed 0.60 sec
Start 15: tst_rename
15/106 Test #15: tst_rename ....................... Passed 0.01 sec
Start 16: nc_test_t_nc
16/106 Test #16: nc_test_t_nc ..................... Passed 0.01 sec
Start 17: nc_test_tst_small
17/106 Test #17: nc_test_tst_small ................***Failed 0.24 sec
Start 18: nc_test_tst_misc
18/106 Test #18: nc_test_tst_misc ................. Passed 0.03 sec
Start 19: nc_test_tst_norm
19/106 Test #19: nc_test_tst_norm ................. Passed 0.01 sec
Start 20: nc_test_tst_names
20/106 Test #20: nc_test_tst_names ................***Failed 0.03 sec
Start 21: nc_test_tst_nofill
21/106 Test #21: nc_test_tst_nofill ............... Passed 0.31 sec
Start 22: nc_test_tst_nofill2
22/106 Test #22: nc_test_tst_nofill2 .............. Passed 0.08 sec
Start 23: nc_test_tst_nofill3
23/106 Test #23: nc_test_tst_nofill3 .............. Passed 0.03 sec
Start 24: nc_test_tst_atts
24/106 Test #24: nc_test_tst_atts .................***Failed 0.02 sec
Start 25: nc_test
25/106 Test #25: nc_test ..........................***Failed 2.57 sec
Start 26: nc_test4_tst_dims
26/106 Test #26: nc_test4_tst_dims ................***Failed 0.02 sec
Start 27: nc_test4_tst_dims2
27/106 Test #27: nc_test4_tst_dims2 ...............***Failed 0.02 sec
Start 28: nc_test4_tst_dims3
28/106 Test #28: nc_test4_tst_dims3 ...............***Failed 0.02 sec
Start 29: nc_test4_tst_files
29/106 Test #29: nc_test4_tst_files ...............***Failed 0.03 sec
Start 30: nc_test4_tst_files4
30/106 Test #30: nc_test4_tst_files4 ..............***Failed 0.02 sec
Start 31: nc_test4_tst_vars
31/106 Test #31: nc_test4_tst_vars ................***Failed 0.02 sec
Start 32: nc_test4_tst_varms
32/106 Test #32: nc_test4_tst_varms ...............***Failed 0.02 sec
Start 33: nc_test4_tst_unlim_vars
33/106 Test #33: nc_test4_tst_unlim_vars ..........***Failed 0.02 sec
Start 34: nc_test4_tst_converts
34/106 Test #34: nc_test4_tst_converts ............***Failed 0.02 sec
Start 35: nc_test4_tst_converts2
35/106 Test #35: nc_test4_tst_converts2 ...........***Failed 0.02 sec
Start 36: nc_test4_tst_grps
36/106 Test #36: nc_test4_tst_grps ................***Failed 0.05 sec
Start 37: nc_test4_tst_grps2
37/106 Test #37: nc_test4_tst_grps2 ...............***Failed 0.02 sec
Start 38: nc_test4_tst_compounds
38/106 Test #38: nc_test4_tst_compounds ...........***Failed 0.02 sec
Start 39: nc_test4_tst_compounds2
39/106 Test #39: nc_test4_tst_compounds2 .......... Passed 0.03 sec
Start 40: nc_test4_tst_compounds3
40/106 Test #40: nc_test4_tst_compounds3 ..........***Failed 0.02 sec
Start 41: nc_test4_tst_opaques
41/106 Test #41: nc_test4_tst_opaques .............***Failed 0.02 sec
Start 42: nc_test4_tst_strings
42/106 Test #42: nc_test4_tst_strings .............***Failed 0.03 sec
Start 43: nc_test4_tst_strings2
43/106 Test #43: nc_test4_tst_strings2 ............ Passed 0.02 sec
Start 44: nc_test4_tst_interops
44/106 Test #44: nc_test4_tst_interops ............***Failed 0.02 sec
Start 45: nc_test4_tst_interops4
45/106 Test #45: nc_test4_tst_interops4 ...........***Failed 0.02 sec
Start 46: nc_test4_tst_interops6
46/106 Test #46: nc_test4_tst_interops6 ...........***Failed 0.02 sec
Start 47: nc_test4_tst_enums
47/106 Test #47: nc_test4_tst_enums ...............***Failed 0.03 sec
Start 48: nc_test4_tst_coords
48/106 Test #48: nc_test4_tst_coords ..............***Failed 0.02 sec
Start 49: nc_test4_tst_coords2
49/106 Test #49: nc_test4_tst_coords2 .............***Failed 0.02 sec
Start 50: nc_test4_tst_coords3
50/106 Test #50: nc_test4_tst_coords3 .............***Failed 0.02 sec
Start 51: nc_test4_tst_vars3
51/106 Test #51: nc_test4_tst_vars3 ...............***Failed 0.02 sec
Start 52: nc_test4_tst_vars4
52/106 Test #52: nc_test4_tst_vars4 ...............***Failed 0.04 sec
Start 53: nc_test4_tst_chunks
53/106 Test #53: nc_test4_tst_chunks ..............***Failed 0.02 sec
Start 54: nc_test4_tst_chunks2
54/106 Test #54: nc_test4_tst_chunks2 .............***Failed 0.02 sec
Start 55: nc_test4_tst_utf8
55/106 Test #55: nc_test4_tst_utf8 ................***Failed 0.02 sec
Start 56: nc_test4_tst_fills
56/106 Test #56: nc_test4_tst_fills ...............***Failed 0.02 sec
Start 57: nc_test4_tst_fills2
57/106 Test #57: nc_test4_tst_fills2 ..............***Failed 0.02 sec
Start 58: nc_test4_tst_fillbug
58/106 Test #58: nc_test4_tst_fillbug .............***Failed 0.02 sec
Start 59: nc_test4_tst_xplatform
59/106 Test #59: nc_test4_tst_xplatform ...........***Failed 0.02 sec
Start 60: nc_test4_tst_xplatform2
60/106 Test #60: nc_test4_tst_xplatform2 .......... Passed 0.03 sec
Start 61: nc_test4_tst_h_atts2
61/106 Test #61: nc_test4_tst_h_atts2 ............. Passed 0.01 sec
Start 62: nc_test4_tst_endian_fill
62/106 Test #62: nc_test4_tst_endian_fill .........***Failed 0.02 sec
Start 63: nc_test4_tst_atts
63/106 Test #63: nc_test4_tst_atts ................***Failed 0.03 sec
Start 64: nc_test4_t_type
64/106 Test #64: nc_test4_t_type .................. Passed 0.01 sec
Start 65: nc_test4_cdm_sea_soundings
65/106 Test #65: nc_test4_cdm_sea_soundings .......***Failed 0.02 sec
Start 66: nc_test4_tst_vl
66/106 Test #66: nc_test4_tst_vl ..................***Failed 0.02 sec
Start 67: nc_test4_tst_atts1
67/106 Test #67: nc_test4_tst_atts1 ...............***Failed 0.04 sec
Start 68: nc_test4_tst_atts2
68/106 Test #68: nc_test4_tst_atts2 ............... Passed 0.05 sec
Start 69: nc_test4_tst_vars2
69/106 Test #69: nc_test4_tst_vars2 ...............***Failed 0.03 sec
Start 70: nc_test4_tst_files5
70/106 Test #70: nc_test4_tst_files5 .............. Passed 0.02 sec
Start 71: nc_test4_tst_files6
71/106 Test #71: nc_test4_tst_files6 ..............***Failed 0.02 sec
Start 72: nc_test4_tst_sync
72/106 Test #72: nc_test4_tst_sync ................***Failed 0.02 sec
Start 73: nc_test4_tst_h_strbug
73/106 Test #73: nc_test4_tst_h_strbug ............***Failed 0.05 sec
Start 74: nc_test4_tst_h_refs
74/106 Test #74: nc_test4_tst_h_refs ..............***Failed 0.02 sec
Start 75: tst_h_files
75/106 Test #75: tst_h_files ...................... Passed 0.03 sec
Start 76: tst_h_files2
76/106 Test #76: tst_h_files2 ..................... Passed 0.01 sec
Start 77: tst_h_files4
77/106 Test #77: tst_h_files4 ..................... Passed 0.02 sec
Start 78: tst_h_atts
78/106 Test #78: tst_h_atts .......................***Failed 0.05 sec
Start 79: tst_h_atts3
79/106 Test #79: tst_h_atts3 ...................... Passed 0.00 sec
Start 80: tst_h_atts4
80/106 Test #80: tst_h_atts4 ...................... Passed 0.00 sec
Start 81: tst_h_vars
81/106 Test #81: tst_h_vars .......................***Failed 0.03 sec
Start 82: tst_h_vars2
82/106 Test #82: tst_h_vars2 ......................***Failed 0.02 sec
Start 83: tst_h_vars3
83/106 Test #83: tst_h_vars3 ...................... Passed 0.02 sec
Start 84: tst_h_grps
84/106 Test #84: tst_h_grps ....................... Passed 0.03 sec
Start 85: tst_h_compounds
85/106 Test #85: tst_h_compounds .................. Passed 0.09 sec
Start 86: tst_h_compounds2
86/106 Test #86: tst_h_compounds2 ................. Passed 0.02 sec
Start 87: tst_h_wrt_cmp
87/106 Test #87: tst_h_wrt_cmp .................... Passed 0.02 sec
Start 88: tst_h_rd_cmp
88/106 Test #88: tst_h_rd_cmp ..................... Passed 0.01 sec
Start 89: tst_h_vl
89/106 Test #89: tst_h_vl ......................... Passed 0.02 sec
Start 90: tst_h_opaques
90/106 Test #90: tst_h_opaques .................... Passed 0.01 sec
Start 91: tst_h_strings
91/106 Test #91: tst_h_strings .................... Passed 0.03 sec
Start 92: tst_h_strings1
92/106 Test #92: tst_h_strings1 ................... Passed 0.02 sec
Start 93: tst_h_strings2
93/106 Test #93: tst_h_strings2 ................... Passed 0.02 sec
Start 94: tst_h_ints
94/106 Test #94: tst_h_ints ....................... Passed 0.01 sec
Start 95: tst_h_dimscales
95/106 Test #95: tst_h_dimscales ..................***Failed 0.02 sec
Start 96: tst_h_dimscales1
96/106 Test #96: tst_h_dimscales1 .................***Failed 0.02 sec
Start 97: tst_h_dimscales2
97/106 Test #97: tst_h_dimscales2 .................***Failed 0.04 sec
Start 98: tst_h_dimscales3
98/106 Test #98: tst_h_dimscales3 .................***Failed 0.02 sec
Start 99: tst_h_enums
99/106 Test #99: tst_h_enums ...................... Passed 0.02 sec
Start 100: tst_h_dimscales4
100/106 Test #100: tst_h_dimscales4 .................***Failed 0.02 sec
Start 101: C_tests_simple_xy_wr
101/106 Test #101: C_tests_simple_xy_wr ............. Passed 0.01 sec
Start 102: C_tests_simple_xy_rd
102/106 Test #102: C_tests_simple_xy_rd ............. Passed 0.01 sec
Start 103: C_tests_sfc_pres_temp_wr
103/106 Test #103: C_tests_sfc_pres_temp_wr ......... Passed 0.01 sec
Start 104: C_tests_sfc_pres_temp_rd
104/106 Test #104: C_tests_sfc_pres_temp_rd ......... Passed 0.01 sec
Start 105: C_tests_pres_temp_4D_wr
105/106 Test #105: C_tests_pres_temp_4D_wr .......... Passed 0.01 sec
Start 106: C_tests_pres_temp_4D_rd
106/106 Test #106: C_tests_pres_temp_4D_rd .......... Passed 0.01 sec
40% tests passed, 64 tests failed out of 106
Total Test time (real) = 6.96 sec
The following tests FAILED:
4 - ncdump_tst_create_files (Failed)
5 - ncdump_tst_group_data (Failed)
6 - ncdump_tst_enum_data (Failed)
7 - ncdump_tst_opaque_data (Failed)
8 - ncdump_tst_string_data (Failed)
9 - ncdump_tst_vlen_data (Failed)
10 - ncdump_tst_comp (Failed)
11 - ncdump_tst_comp2 (Failed)
13 - ncdump_tst_unicode (Failed)
14 - nctest (Failed)
17 - nc_test_tst_small (Failed)
20 - nc_test_tst_names (Failed)
24 - nc_test_tst_atts (Failed)
25 - nc_test (Failed)
26 - nc_test4_tst_dims (Failed)
27 - nc_test4_tst_dims2 (Failed)
28 - nc_test4_tst_dims3 (Failed)
29 - nc_test4_tst_files (Failed)
30 - nc_test4_tst_files4 (Failed)
31 - nc_test4_tst_vars (Failed)
32 - nc_test4_tst_varms (Failed)
33 - nc_test4_tst_unlim_vars (Failed)
34 - nc_test4_tst_converts (Failed)
35 - nc_test4_tst_converts2 (Failed)
36 - nc_test4_tst_grps (Failed)
37 - nc_test4_tst_grps2 (Failed)
38 - nc_test4_tst_compounds (Failed)
40 - nc_test4_tst_compounds3 (Failed)
41 - nc_test4_tst_opaques (Failed)
42 - nc_test4_tst_strings (Failed)
44 - nc_test4_tst_interops (Failed)
45 - nc_test4_tst_interops4 (Failed)
46 - nc_test4_tst_interops6 (Failed)
47 - nc_test4_tst_enums (Failed)
48 - nc_test4_tst_coords (Failed)
49 - nc_test4_tst_coords2 (Failed)
50 - nc_test4_tst_coords3 (Failed)
51 - nc_test4_tst_vars3 (Failed)
52 - nc_test4_tst_vars4 (Failed)
53 - nc_test4_tst_chunks (Failed)
54 - nc_test4_tst_chunks2 (Failed)
55 - nc_test4_tst_utf8 (Failed)
56 - nc_test4_tst_fills (Failed)
57 - nc_test4_tst_fills2 (Failed)
58 - nc_test4_tst_fillbug (Failed)
59 - nc_test4_tst_xplatform (Failed)
62 - nc_test4_tst_endian_fill (Failed)
63 - nc_test4_tst_atts (Failed)
65 - nc_test4_cdm_sea_soundings (Failed)
66 - nc_test4_tst_vl (Failed)
67 - nc_test4_tst_atts1 (Failed)
69 - nc_test4_tst_vars2 (Failed)
71 - nc_test4_tst_files6 (Failed)
72 - nc_test4_tst_sync (Failed)
73 - nc_test4_tst_h_strbug (Failed)
74 - nc_test4_tst_h_refs (Failed)
78 - tst_h_atts (Failed)
81 - tst_h_vars (Failed)
82 - tst_h_vars2 (Failed)
95 - tst_h_dimscales (Failed)
96 - tst_h_dimscales1 (Failed)
97 - tst_h_dimscales2 (Failed)
98 - tst_h_dimscales3 (Failed)
100 - tst_h_dimscales4 (Failed)
Errors while running CTest