我正在尝试构建本机 quarkus 应用程序,但遇到了 Windows 编译器的问题。我已经安装了 Visual Studio 构建工具。最初构建找不到 cl.exe 所以我不得不将 C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.28.29910\bin\Hostx64\x64 添加到我的路径变量中。我曾尝试按照此处某些答案中的建议使用 VCvars bat 文件,但这似乎对我的环境变量没有任何影响。
现在在构建时(在 Eclipse 中使用捆绑的 maven)我收到以下错误:
Error: Error compiling query code (in C:\Users\lukeg\AppData\Local\Temp\SVM-9347802898847780383\AArch64LibCHelperDirectives.c). Compiler command ''C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.28.29910\bin\Hostx64\x64\cl.exe' /WX /W4 /wd4244 /wd4245 /wd4800 /wd4804 /wd4214 '/FeC:\Users\lukeg\AppData\Local\Temp\SVM-9347802898847780383\AArch64LibCHelperDirectives.exe' 'C:\Users\lukeg\AppData\Local\Temp\SVM-9347802898847780383\AArch64LibCHelperDirectives.c' ' output included error: [AArch64LibCHelperDirectives.c, C:\Users\lukeg\AppData\Local\Temp\SVM-9347802898847780383\AArch64LibCHelperDirectives.c(1): fatal error C1034: stdio.h: no include path set]
com.oracle.svm.core.util.UserError$UserException: Error compiling query code (in C:\Users\lukeg\AppData\Local\Temp\SVM-9347802898847780383\AArch64LibCHelperDirectives.c). Compiler command ''C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.28.29910\bin\Hostx64\x64\cl.exe' /WX /W4 /wd4244 /wd4245 /wd4800 /wd4804 /wd4214 '/FeC:\Users\lukeg\AppData\Local\Temp\SVM-9347802898847780383\AArch64LibCHelperDirectives.exe' 'C:\Users\lukeg\AppData\Local\Temp\SVM-9347802898847780383\AArch64LibCHelperDirectives.c' ' output included error: [AArch64LibCHelperDirectives.c, C:\Users\lukeg\AppData\Local\Temp\SVM-9347802898847780383\AArch64LibCHelperDirectives.c(1): fatal error C1034: stdio.h: no include path set]
at com.oracle.svm.core.util.UserError.abort(UserError.java:139)
at com.oracle.svm.hosted.c.NativeLibraries.reportErrors(NativeLibraries.java:369)
at com.oracle.svm.hosted.NativeImageGenerator.processNativeLibraryImports(NativeImageGenerator.java:1585)
at com.oracle.svm.hosted.NativeImageGenerator.setupNativeLibraries(NativeImageGenerator.java:1064)
at com.oracle.svm.hosted.NativeImageGenerator.setupNativeImage(NativeImageGenerator.java:882)
at com.oracle.svm.hosted.NativeImageGenerator.doRun(NativeImageGenerator.java:561)
at com.oracle.svm.hosted.NativeImageGenerator.lambda$run$0(NativeImageGenerator.java:476)
at java.base/java.util.concurrent.ForkJoinTask$AdaptedRunnableAction.exec(ForkJoinTask.java:1407)
at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290)
at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1020)
at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1656)
at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1594)
at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183)
Error: Image build request failed with exit status 1
这里还有什么我遗漏的吗?任何帮助将不胜感激。