Skip to content

LINK : fatal error LNK1181: cannot open input file 'Debug.lib' #2469

@dzenanz

Description

@dzenanz

I am trying to build the library, after having configured it using CMake. This is an incremental build log:

Build started...
1>------ Build started: Project: h5noop, Configuration: Debug x64 ------
2>------ Build started: Project: h5bzip2, Configuration: Debug x64 ------
3>------ Build started: Project: h5deflate, Configuration: Debug x64 ------
4>------ Build started: Project: h5fletcher32, Configuration: Debug x64 ------
5>------ Build started: Project: h5misc, Configuration: Debug x64 ------
6>------ Build started: Project: h5noop1, Configuration: Debug x64 ------
7>------ Build started: Project: h5shuffle, Configuration: Debug x64 ------
8>------ Build started: Project: h5unknown, Configuration: Debug x64 ------
9>------ Build started: Project: nczmisc, Configuration: Debug x64 ------
10>------ Skipped Build: Project: .distcheck, Configuration: Debug x64 ------
10>Project not selected to build for this solution configuration 
11>------ Skipped Build: Project: .distdir, Configuration: Debug x64 ------
11>Project not selected to build for this solution configuration 
12>------ Build started: Project: netcdf, Configuration: Debug x64 ------
13>------ Skipped Build: Project: Continuous, Configuration: Debug x64 ------
13>Project not selected to build for this solution configuration 
14>------ Skipped Build: Project: Experimental, Configuration: Debug x64 ------
14>Project not selected to build for this solution configuration 
15>------ Skipped Build: Project: NightlyMemoryCheck, Configuration: Debug x64 ------
15>Project not selected to build for this solution configuration 
16>------ Skipped Build: Project: RUN_TESTS, Configuration: Debug x64 ------
16>Project not selected to build for this solution configuration 
17>------ Skipped Build: Project: dist, Configuration: Debug x64 ------
17>Project not selected to build for this solution configuration 
18>------ Skipped Build: Project: makeparser, Configuration: Debug x64 ------
18>Project not selected to build for this solution configuration 
19>------ Skipped Build: Project: uninstall, Configuration: Debug x64 ------
19>Project not selected to build for this solution configuration 
20>------ Skipped Build: Project: Nightly, Configuration: Debug x64 ------
20>Project not selected to build for this solution configuration 
21>------ Skipped Build: Project: distcheck, Configuration: Debug x64 ------
21>Project not selected to build for this solution configuration 
4>LINK : fatal error LNK1181: cannot open input file 'Debug.lib'
5>LINK : fatal error LNK1181: cannot open input file 'Debug.lib'
3>LINK : fatal error LNK1181: cannot open input file 'Debug.lib'
3>Done building project "h5deflate.vcxproj" -- FAILED.
1>LINK : fatal error LNK1181: cannot open input file 'Debug.lib'
1>Done building project "h5noop.vcxproj" -- FAILED.
8>LINK : fatal error LNK1181: cannot open input file 'Debug.lib'
8>Done building project "h5unknown.vcxproj" -- FAILED.
4>Done building project "h5fletcher32.vcxproj" -- FAILED.
5>Done building project "h5misc.vcxproj" -- FAILED.
2>LINK : fatal error LNK1181: cannot open input file 'Debug.lib'
2>Done building project "h5bzip2.vcxproj" -- FAILED.
9>LINK : fatal error LNK1181: cannot open input file 'Debug.lib'
9>Done building project "nczmisc.vcxproj" -- FAILED.
7>LINK : fatal error LNK1181: cannot open input file 'Debug.lib'
7>Done building project "h5shuffle.vcxproj" -- FAILED.
6>LINK : fatal error LNK1181: cannot open input file 'Debug.lib'
6>Done building project "h5noop1.vcxproj" -- FAILED.
12>LINK : fatal error LNK1104: cannot open file 'Debug.lib'
12>Done building project "netcdf.vcxproj" -- FAILED.
22>------ Build started: Project: ut_json, Configuration: Debug x64 ------
23>------ Build started: Project: ut_map, Configuration: Debug x64 ------
24>------ Build started: Project: C_tests_format, Configuration: Debug x64 ------
25>------ Build started: Project: C_tests_pres_temp_4D_rd, Configuration: Debug x64 ------
26>------ Build started: Project: C_tests_pres_temp_4D_wr, Configuration: Debug x64 ------
27>------ Build started: Project: C_tests_sfc_pres_temp_rd, Configuration: Debug x64 ------
28>------ Build started: Project: C_tests_sfc_pres_temp_wr, Configuration: Debug x64 ------
29>------ Build started: Project: C_tests_simple_xy_rd, Configuration: Debug x64 ------
30>------ Build started: Project: C_tests_simple_xy_wr, Configuration: Debug x64 ------
31>------ Build started: Project: ut_mapapi, Configuration: Debug x64 ------
32>------ Build started: Project: ut_projections, Configuration: Debug x64 ------
33>------ Build started: Project: zhex, Configuration: Debug x64 ------
34>------ Build started: Project: nc_test_tst_inq_type, Configuration: Debug x64 ------
35>------ Build started: Project: zisjson, Configuration: Debug x64 ------
36>------ Build started: Project: zmapio, Configuration: Debug x64 ------
37>------ Build started: Project: zs3parse, Configuration: Debug x64 ------
27>LINK : fatal error LNK1104: cannot open file 'Debug.lib'
27>Done building project "C_tests_sfc_pres_temp_rd.vcxproj" -- FAILED.
30>LINK : fatal error LNK1104: cannot open file 'Debug.lib'
30>Done building project "C_tests_simple_xy_wr.vcxproj" -- FAILED.
24>LINK : fatal error LNK1104: cannot open file 'Debug.lib'
24>Done building project "C_tests_format.vcxproj" -- FAILED.
25>LINK : fatal error LNK1104: cannot open file 'Debug.lib'
25>Done building project "C_tests_pres_temp_4D_rd.vcxproj" -- FAILED.
26>LINK : fatal error LNK1104: cannot open file 'Debug.lib'
26>Done building project "C_tests_pres_temp_4D_wr.vcxproj" -- FAILED.
22>LINK : fatal error LNK1104: cannot open file '..\liblib\Debug\netcdf.lib'
22>Done building project "ut_json.vcxproj" -- FAILED.
38>------ Build started: Project: bom, Configuration: Debug x64 ------
39>------ Build started: Project: nc_test, Configuration: Debug x64 ------
40>------ Build started: Project: nc_test_t_nc, Configuration: Debug x64 ------
41>------ Build started: Project: nc_test_tst_atts3, Configuration: Debug x64 ------
42>------ Build started: Project: nc_test_tst_def_var_fill, Configuration: Debug x64 ------
31>LINK : fatal error LNK1104: cannot open file '..\liblib\Debug\netcdf.lib'
31>Done building project "ut_mapapi.vcxproj" -- FAILED.
32>LINK : fatal error LNK1104: cannot open file '..\liblib\Debug\netcdf.lib'
32>Done building project "ut_projections.vcxproj" -- FAILED.
34>LINK : fatal error LNK1104: cannot open file 'Debug.lib'
34>Done building project "nc_test_tst_inq_type.vcxproj" -- FAILED.
33>LINK : fatal error LNK1104: cannot open file '..\liblib\Debug\netcdf.lib'
33>Done building project "zhex.vcxproj" -- FAILED.
28>LINK : fatal error LNK1104: cannot open file 'Debug.lib'
28>Done building project "C_tests_sfc_pres_temp_wr.vcxproj" -- FAILED.
23>LINK : fatal error LNK1104: cannot open file '..\liblib\Debug\netcdf.lib'
23>Done building project "ut_map.vcxproj" -- FAILED.
36>LINK : fatal error LNK1104: cannot open file '..\liblib\Debug\netcdf.lib'
36>Done building project "zmapio.vcxproj" -- FAILED.
43>------ Build started: Project: nc_test_tst_default_format, Configuration: Debug x64 ------
44>------ Build started: Project: nc_test_tst_err_enddef, Configuration: Debug x64 ------
45>------ Build started: Project: nc_test_tst_formats, Configuration: Debug x64 ------
46>------ Build started: Project: nc_test_tst_global_fillval, Configuration: Debug x64 ------
47>------ Build started: Project: nc_test_tst_max_var_dims, Configuration: Debug x64 ------
48>------ Build started: Project: nc_test_tst_meta, Configuration: Debug x64 ------
49>------ Build started: Project: nc_test_tst_misc, Configuration: Debug x64 ------
29>LINK : fatal error LNK1104: cannot open file 'Debug.lib'
29>Done building project "C_tests_simple_xy_rd.vcxproj" -- FAILED.
50>------ Build started: Project: nc_test_tst_names, Configuration: Debug x64 ------
51>------ Build started: Project: nc_test_tst_nofill, Configuration: Debug x64 ------
38>LINK : fatal error LNK1104: cannot open file '..\liblib\Debug\netcdf.lib'
38>Done building project "bom.vcxproj" -- FAILED.
35>LINK : fatal error LNK1104: cannot open file '..\liblib\Debug\netcdf.lib'
42>LINK : fatal error LNK1104: cannot open file 'Debug.lib'
42>Done building project "nc_test_tst_def_var_fill.vcxproj" -- FAILED.
52>------ Build started: Project: nc_test_tst_nofill2, Configuration: Debug x64 ------
35>Done building project "zisjson.vcxproj" -- FAILED.
53>------ Build started: Project: nc_test_tst_nofill3, Configuration: Debug x64 ------
40>LINK : fatal error LNK1104: cannot open file 'Debug.lib'
40>Done building project "nc_test_t_nc.vcxproj" -- FAILED.
39>LINK : fatal error LNK1104: cannot open file '..\liblib\Debug\netcdf.lib'
39>Done building project "nc_test.vcxproj" -- FAILED.
41>LINK : fatal error LNK1104: cannot open file 'Debug.lib'
41>Done building project "nc_test_tst_atts3.vcxproj" -- FAILED.
54>------ Build started: Project: nc_test_tst_norm, Configuration: Debug x64 ------
55>------ Build started: Project: nc_test_tst_small, Configuration: Debug x64 ------
56>------ Build started: Project: nc_test_tst_utf8_phrases, Configuration: Debug x64 ------
37>LINK : fatal error LNK1104: cannot open file '..\liblib\Debug\netcdf.lib'
37>Done building project "zs3parse.vcxproj" -- FAILED.
57>------ Build started: Project: nccopy, Configuration: Debug x64 ------
44>LINK : fatal error LNK1104: cannot open file 'Debug.lib'
44>Done building project "nc_test_tst_err_enddef.vcxproj" -- FAILED.
46>LINK : fatal error LNK1104: cannot open file 'Debug.lib'
46>Done building project "nc_test_tst_global_fillval.vcxproj" -- FAILED.
58>------ Build started: Project: ncdump, Configuration: Debug x64 ------
50>LINK : fatal error LNK1104: cannot open file 'Debug.lib'
50>Done building project "nc_test_tst_names.vcxproj" -- FAILED.
49>LINK : fatal error LNK1104: cannot open file 'Debug.lib'
49>Done building project "nc_test_tst_misc.vcxproj" -- FAILED.
59>------ Build started: Project: tst_zchunks, Configuration: Debug x64 ------
60>------ Build started: Project: ncfilteravail, Configuration: Debug x64 ------
48>LINK : fatal error LNK1104: cannot open file 'Debug.lib'
48>Done building project "nc_test_tst_meta.vcxproj" -- FAILED.
47>LINK : fatal error LNK1104: cannot open file 'Debug.lib'
47>Done building project "nc_test_tst_max_var_dims.vcxproj" -- FAILED.
43>LINK : fatal error LNK1104: cannot open file 'Debug.lib'
43>Done building project "nc_test_tst_default_format.vcxproj" -- FAILED.
45>LINK : fatal error LNK1104: cannot open file 'Debug.lib'
45>Done building project "nc_test_tst_formats.vcxproj" -- FAILED.
61>------ Build started: Project: ncgen, Configuration: Debug x64 ------
62>------ Build started: Project: ncgen3, Configuration: Debug x64 ------
63>------ Build started: Project: ncpathcvt, Configuration: Debug x64 ------
52>LINK : fatal error LNK1104: cannot open file 'Debug.lib'
52>Done building project "nc_test_tst_nofill2.vcxproj" -- FAILED.
64>------ Build started: Project: nctest, Configuration: Debug x64 ------
65>------ Build started: Project: nctrunc, Configuration: Debug x64 ------
66>------ Build started: Project: ncvalidator, Configuration: Debug x64 ------
67>------ Build started: Project: nczhdf5filters, Configuration: Debug x64 ------
53>LINK : fatal error LNK1104: cannot open file 'Debug.lib'
54>LINK : fatal error LNK1104: cannot open file 'Debug.lib'
53>Done building project "nc_test_tst_nofill3.vcxproj" -- FAILED.
54>Done building project "nc_test_tst_norm.vcxproj" -- FAILED.
68>------ Build started: Project: nczstdfilters, Configuration: Debug x64 ------
69>------ Build started: Project: ncdumpchunks, Configuration: Debug x64 ------
57>LINK : fatal error LNK1104: cannot open file '..\liblib\Debug\netcdf.lib'
57>Done building project "nccopy.vcxproj" -- FAILED.
58>LINK : fatal error LNK1104: cannot open file '..\liblib\Debug\netcdf.lib'
58>Done building project "ncdump.vcxproj" -- FAILED.
55>LINK : fatal error LNK1104: cannot open file 'Debug.lib'
55>Done building project "nc_test_tst_small.vcxproj" -- FAILED.
60>LINK : fatal error LNK1104: cannot open file '..\liblib\Debug\netcdf.lib'
60>Done building project "ncfilteravail.vcxproj" -- FAILED.
63>LINK : fatal error LNK1104: cannot open file '..\liblib\Debug\netcdf.lib'
63>Done building project "ncpathcvt.vcxproj" -- FAILED.
70>------ Build started: Project: ocprint, Configuration: Debug x64 ------
71>------ Build started: Project: rewrite-scalar, Configuration: Debug x64 ------
72>------ Build started: Project: s3util, Configuration: Debug x64 ------
73>------ Build started: Project: test_filter_avail, Configuration: Debug x64 ------
74>------ Build started: Project: test_quantize, Configuration: Debug x64 ------
75>------ Build started: Project: testfilter, Configuration: Debug x64 ------
65>LINK : fatal error LNK1104: cannot open file '..\liblib\Debug\netcdf.lib'
65>Done building project "nctrunc.vcxproj" -- FAILED.
66>LINK : fatal error LNK1104: cannot open file '..\liblib\Debug\netcdf.lib'
66>Done building project "ncvalidator.vcxproj" -- FAILED.
67>LINK : fatal error LNK1181: cannot open input file 'Debug.lib'
67>Done building project "nczhdf5filters.vcxproj" -- FAILED.
62>LINK : fatal error LNK1104: cannot open file '..\liblib\Debug\netcdf.lib'
62>Done building project "ncgen3.vcxproj" -- FAILED.
64>LINK : fatal error LNK1104: cannot open file '..\liblib\Debug\netcdf.lib'
64>Done building project "nctest.vcxproj" -- FAILED.
61>LINK : fatal error LNK1104: cannot open file '..\liblib\Debug\netcdf.lib'
61>Done building project "ncgen.vcxproj" -- FAILED.
76>------ Build started: Project: testfilter_misc, Configuration: Debug x64 ------
77>------ Build started: Project: testfilter_multi, Configuration: Debug x64 ------
78>------ Build started: Project: testfilter_order, Configuration: Debug x64 ------
79>------ Build started: Project: testfilter_repeat, Configuration: Debug x64 ------
80>------ Build started: Project: tst_chunkcases, Configuration: Debug x64 ------
81>------ Build started: Project: tst_dimsizes, Configuration: Debug x64 ------
51>LINK : fatal error LNK1104: cannot open file 'Debug.lib'
51>Done building project "nc_test_tst_nofill.vcxproj" -- FAILED.
68>LINK : fatal error LNK1181: cannot open input file 'Debug.lib'
68>Done building project "nczstdfilters.vcxproj" -- FAILED.
82>------ Build started: Project: tst_diskless, Configuration: Debug x64 ------
83>------ Build started: Project: tst_diskless3, Configuration: Debug x64 ------
69>LINK : fatal error LNK1104: cannot open file '..\liblib\Debug\netcdf.lib'
69>Done building project "ncdumpchunks.vcxproj" -- FAILED.
84>------ Build started: Project: tst_diskless4, Configuration: Debug x64 ------
85>------ Build started: Project: tst_diskless5, Configuration: Debug x64 ------
70>LINK : fatal error LNK1104: cannot open file '..\liblib\Debug\netcdf.lib'
70>Done building project "ocprint.vcxproj" -- FAILED.
75>LINK : fatal error LNK1104: cannot open file '..\liblib\Debug\netcdf.lib'
75>Done building project "testfilter.vcxproj" -- FAILED.
71>LINK : fatal error LNK1104: cannot open file '..\liblib\Debug\netcdf.lib'
71>Done building project "rewrite-scalar.vcxproj" -- FAILED.
86>------ Build started: Project: tst_fillbug, Configuration: Debug x64 ------
87>------ Build started: Project: tst_fillonlyz, Configuration: Debug x64 ------
78>LINK : fatal error LNK1104: cannot open file '..\liblib\Debug\netcdf.lib'
78>Done building project "testfilter_order.vcxproj" -- FAILED.
77>LINK : fatal error LNK1104: cannot open file '..\liblib\Debug\netcdf.lib'
77>Done building project "testfilter_multi.vcxproj" -- FAILED.
73>LINK : fatal error LNK1104: cannot open file '..\liblib\Debug\netcdf.lib'
73>Done building project "test_filter_avail.vcxproj" -- FAILED.
72>LINK : fatal error LNK1104: cannot open file '..\liblib\Debug\netcdf.lib'
72>Done building project "s3util.vcxproj" -- FAILED.
74>LINK : fatal error LNK1104: cannot open file '..\liblib\Debug\netcdf.lib'
74>Done building project "test_quantize.vcxproj" -- FAILED.
80>LINK : fatal error LNK1104: cannot open file '..\liblib\Debug\netcdf.lib'
80>Done building project "tst_chunkcases.vcxproj" -- FAILED.
88>------ Build started: Project: tst_inmemory, Configuration: Debug x64 ------
81>LINK : fatal error LNK1104: cannot open file '..\liblib\Debug\netcdf.lib'
81>Done building project "tst_dimsizes.vcxproj" -- FAILED.
89>------ Build started: Project: tst_nczfilter, Configuration: Debug x64 ------
90>------ Build started: Project: tst_open_mem, Configuration: Debug x64 ------
91>------ Build started: Project: tst_rename, Configuration: Debug x64 ------
92>------ Build started: Project: tst_utf8, Configuration: Debug x64 ------
93>------ Build started: Project: tst_zchunks2, Configuration: Debug x64 ------
94>------ Build started: Project: tst_zchunks3, Configuration: Debug x64 ------
95>------ Build started: Project: ut_chunking, Configuration: Debug x64 ------
82>LINK : fatal error LNK1104: cannot open file '..\liblib\Debug\netcdf.lib'
82>Done building project "tst_diskless.vcxproj" -- FAILED.
84>LINK : fatal error LNK1104: cannot open file '..\liblib\Debug\netcdf.lib'
84>Done building project "tst_diskless4.vcxproj" -- FAILED.
85>LINK : fatal error LNK1104: cannot open file '..\liblib\Debug\netcdf.lib'
85>Done building project "tst_diskless5.vcxproj" -- FAILED.
79>LINK : fatal error LNK1104: cannot open file '..\liblib\Debug\netcdf.lib'
79>Done building project "testfilter_repeat.vcxproj" -- FAILED.
76>LINK : fatal error LNK1104: cannot open file '..\liblib\Debug\netcdf.lib'
76>Done building project "testfilter_misc.vcxproj" -- FAILED.
87>LINK : fatal error LNK1104: cannot open file '..\liblib\Debug\netcdf.lib'
86>LINK : fatal error LNK1104: cannot open file '..\liblib\Debug\netcdf.lib'
87>Done building project "tst_fillonlyz.vcxproj" -- FAILED.
86>Done building project "tst_fillbug.vcxproj" -- FAILED.
89>LINK : fatal error LNK1104: cannot open file '..\liblib\Debug\netcdf.lib'
88>LINK : fatal error LNK1104: cannot open file '..\liblib\Debug\netcdf.lib'
89>Done building project "tst_nczfilter.vcxproj" -- FAILED.
94>LINK : fatal error LNK1104: cannot open file '..\liblib\Debug\netcdf.lib'
93>LINK : fatal error LNK1104: cannot open file '..\liblib\Debug\netcdf.lib'
88>Done building project "tst_inmemory.vcxproj" -- FAILED.
94>Done building project "tst_zchunks3.vcxproj" -- FAILED.
93>Done building project "tst_zchunks2.vcxproj" -- FAILED.
92>LINK : fatal error LNK1104: cannot open file '..\liblib\Debug\netcdf.lib'
92>Done building project "tst_utf8.vcxproj" -- FAILED.
95>LINK : fatal error LNK1104: cannot open file '..\liblib\Debug\netcdf.lib'
95>Done building project "ut_chunking.vcxproj" -- FAILED.
91>LINK : fatal error LNK1104: cannot open file '..\liblib\Debug\netcdf.lib'
91>Done building project "tst_rename.vcxproj" -- FAILED.
90>LINK : fatal error LNK1104: cannot open file '..\liblib\Debug\netcdf.lib'
90>Done building project "tst_open_mem.vcxproj" -- FAILED.
96>------ Skipped Build: Project: INSTALL, Configuration: Debug x64 ------
96>Project not selected to build for this solution configuration 
97>------ Skipped Build: Project: PACKAGE, Configuration: Debug x64 ------
97>Project not selected to build for this solution configuration 
========== Build: 0 succeeded, 84 failed, 7 up-to-date, 13 skipped ==========

I took a look at https://github.com/Unidata/netcdf-c/blob/main/plugins/CMakeLists.txt, and I can't figure out where requirement for Debug.lib comes from.

My CMake settings are attached: CMakeCache.txt

This happens with both v4.9.0 and main (5ebc855). Win10 x64, version 21H2 (build 19044.1865). Visual Studio 2019, v16.11.17.

RelWithDebInfo configuration also wants Debug.lib.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions