Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Can't compile on windows

未关闭
#8 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
20/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
停滞
技术栈
c, cmake, cpp, java

调研方向

首先检查 CMakeError.txt 和 CMakeOutput.txt,重点关注针对 kernel32.lib 和 LIBCMT.lib 失败的 MSVC 链接器检查。然后在 Windows 上使用 CMake 3.8.0 和 Visual Studio 14.0 重现该配置,并追踪 repository 的 Windows 构建入口点。当项目能在所报告的 Windows 环境中成功配置和构建时,即表示完成。

由索引模型根据 Issue 内容生成。

描述

CMakeError.txt

Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/cl.exe
Build flags:
Id flags:

The output was:
2
Microsoft (R) C/C++ Optimizing Compiler Version 19.00.24210 for x86
Copyright (C) Microsoft Corporation. All rights reserved.

CMakeCCompilerId.c
Microsoft (R) Incremental Linker Version 14.00.24210.0
Copyright (C) Microsoft Corporation. All rights reserved.

/out:CMakeCCompilerId.exe
CMakeCCompilerId.obj
LINK : fatal error LNK1104: cannot open file 'kernel32.lib'

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/cl.exe
Build flags:
Id flags:

The output was:
2
Microsoft (R) C/C++ Optimizing Compiler Version 19.00.24210 for x86
Copyright (C) Microsoft Corporation. All rights reserved.

CMakeCXXCompilerId.cpp
Microsoft (R) Incremental Linker Version 14.00.24210.0
Copyright (C) Microsoft Corporation. All rights reserved.

/out:CMakeCXXCompilerId.exe
CMakeCXXCompilerId.obj
LINK : fatal error LNK1104: cannot open file 'kernel32.lib'

Determining if the C compiler works failed with the following output:
Change Dir: C:/Users/elodan/Desktop/arrayfire-java-master/build/CMakeFiles/CMakeTmp

Run Build Command:"nmake" "/NOLOGO" "cmTC_f9692\fast"
"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\nmake.exe" -f CMakeFiles\cmTC_f9692.dir\build.make /nologo -L CMakeFiles\cmTC_f9692.dir\build

Building C object CMakeFiles/cmTC_f9692.dir/testCCompiler.c.obj

C:\PROGRA2\MICROS1.0\VC\bin\cl.exe @C:\Users\elodan\AppData\Local\Temp\nm56E3.tmp

testCCompiler.c

Linking C executable cmTC_f9692.exe

"C:\Program Files\CMake\bin\cmake.exe" -E vs_link_exe --intdir=CMakeFiles\cmTC_f9692.dir --manifests -- C:\PROGRA2\MICROS1.0\VC\bin\link.exe /nologo @CMakeFiles\cmTC_f9692.dir\objects1.rsp @C:\Users\elodan\AppData\Local\Temp\nm5713.tmp

RC Pass 1 failed to run.
NMAKE : fatal error U1077: '"C:\Program Files\CMake\bin\cmake.exe"' : return code '0xffffffff'

Stop.

NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\nmake.exe"' : return code '0x2'

Stop.

Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/cl.exe
Build flags: /DWIN32;/D_WINDOWS;/W3
Id flags:

The output was:
2
Microsoft (R) C/C++ Optimizing Compiler Version 19.00.24210 for x86
Copyright (C) Microsoft Corporation. All rights reserved.

CMakeCCompilerId.c
Microsoft (R) Incremental Linker Version 14.00.24210.0
Copyright (C) Microsoft Corporation. All rights reserved.

/out:CMakeCCompilerId.exe
CMakeCCompilerId.obj
LINK : fatal error LNK1104: cannot open file 'LIBCMT.lib'

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/cl.exe
Build flags:
Id flags:

The output was:
2
Microsoft (R) C/C++ Optimizing Compiler Version 19.00.24210 for x86
Copyright (C) Microsoft Corporation. All rights reserved.

CMakeCXXCompilerId.cpp
Microsoft (R) Incremental Linker Version 14.00.24210.0
Copyright (C) Microsoft Corporation. All rights reserved.

/out:CMakeCXXCompilerId.exe
CMakeCXXCompilerId.obj
LINK : fatal error LNK1104: cannot open file 'LIBCMT.lib'

Determining if the C compiler works failed with the following output:
Change Dir: C:/Users/elodan/Desktop/arrayfire-java-master/build/CMakeFiles/CMakeTmp

Run Build Command:"nmake" "/NOLOGO" "cmTC_48a8d\fast"
"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\nmake.exe" -f CMakeFiles\cmTC_48a8d.dir\build.make /nologo -L CMakeFiles\cmTC_48a8d.dir\build

Building C object CMakeFiles/cmTC_48a8d.dir/testCCompiler.c.obj

C:\PROGRA2\MICROS1.0\VC\bin\cl.exe @C:\Users\elodan\AppData\Local\Temp\nm3DF3.tmp

testCCompiler.c

Linking C executable cmTC_48a8d.exe

"C:\Program Files\CMake\bin\cmake.exe" -E vs_link_exe --intdir=CMakeFiles\cmTC_48a8d.dir --manifests -- C:\PROGRA2\MICROS1.0\VC\bin\link.exe /nologo @CMakeFiles\cmTC_48a8d.dir\objects1.rsp @C:\Users\elodan\AppData\Local\Temp\nm3E13.tmp

RC Pass 1 failed to run.
NMAKE : fatal error U1077: '"C:\Program Files\CMake\bin\cmake.exe"' : return code '0xffffffff'

Stop.

NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\nmake.exe"' : return code '0x2'

Stop.

CMakeOutput.txt

The system is: Windows - 10.0.14393 - AMD64
Compiling the C compiler identification source file "CMakeCCompilerId.c" succeeded.
Compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/cl.exe
Build flags:
Id flags: -c

The output was:
0
Microsoft (R) C/C++ Optimizing Compiler Version 19.00.24210 for x86
Copyright (C) Microsoft Corporation. All rights reserved.

CMakeCCompilerId.c

Compilation of the C compiler identification source "CMakeCCompilerId.c" produced "CMakeCCompilerId.obj"

The C compiler identification is MSVC, found in "C:/Users/elodan/Desktop/arrayfire-java-master/build/CMakeFiles/3.8.0/CompilerIdC/CMakeCCompilerId.obj"

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" succeeded.
Compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/cl.exe
Build flags:
Id flags: -c

The output was:
0
Microsoft (R) C/C++ Optimizing Compiler Version 19.00.24210 for x86
Copyright (C) Microsoft Corporation. All rights reserved.

CMakeCXXCompilerId.cpp

Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" produced "CMakeCXXCompilerId.obj"

The CXX compiler identification is MSVC, found in "C:/Users/elodan/Desktop/arrayfire-java-master/build/CMakeFiles/3.8.0/CompilerIdCXX/CMakeCXXCompilerId.obj"

Compiling the C compiler identification source file "CMakeCCompilerId.c" succeeded.
Compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/cl.exe
Build flags: /DWIN32;/D_WINDOWS;/W3
Id flags: -c

The output was:
0
Microsoft (R) C/C++ Optimizing Compiler Version 19.00.24210 for x86
Copyright (C) Microsoft Corporation. All rights reserved.

CMakeCCompilerId.c

Compilation of the C compiler identification source "CMakeCCompilerId.c" produced "CMakeCCompilerId.obj"

The C compiler identification is MSVC, found in "C:/Users/elodan/Desktop/arrayfire-java-master/build/CMakeFiles/3.8.0/CompilerIdC/CMakeCCompilerId.obj"

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" succeeded.
Compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/cl.exe
Build flags:
Id flags: -c

The output was:
0
Microsoft (R) C/C++ Optimizing Compiler Version 19.00.24210 for x86
Copyright (C) Microsoft Corporation. All rights reserved.

CMakeCXXCompilerId.cpp

Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" produced "CMakeCXXCompilerId.obj"

The CXX compiler identification is MSVC, found in "C:/Users/elodan/Desktop/arrayfire-java-master/build/CMakeFiles/3.8.0/CompilerIdCXX/CMakeCXXCompilerId.obj"

主要语言
Java
星标
39
派生
18
PR 合并指标
30 天内没有已合并 PR

贡献指南

这个仓库没有索引到贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

arrayfire/arrayfire-java 的其他 Issue

查看 arrayfire/arrayfire-java 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。