Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

windows Cannot run program "cl" #716

Open
shuaidan0412 opened this issue Oct 13, 2023 · 1 comment
Open

windows Cannot run program "cl" #716

shuaidan0412 opened this issue Oct 13, 2023 · 1 comment

Comments

@shuaidan0412
Copy link

env:
windows10 22H2
mingw64
visual stdio 2022
cl path: C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.16.27023\bin\HostX64\x64

  1. if not add cl path to system path
    error: Cannot run program "cl"

  2. if add cl path to system path
    error:

jniTest.cpp
C:\Program Files\Java\jdk1.8.0_181\include\jni.h(39): fatal error C1083: 无法打开包括文件: “stdio.h”: No such file or directory
jnijavacpp.cpp
C:\Program Files\Java\jdk1.8.0_181\include\jni.h(39): fatal error C1083: 无法打开包括文件: “stdio.h”: No such file or directory
Exception in thread "main" java.lang.RuntimeException: Process exited with an error: 2
at org.bytedeco.javacpp.tools.Builder.generateAndCompile(Builder.java:620)
at org.bytedeco.javacpp.tools.Builder.build(Builder.java:1167)
at org.bytedeco.javacpp.tools.Builder.main(Builder.java:1450)

@saudet
Copy link
Member

saudet commented Oct 13, 2023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants