我试图编译JDK 12(wget-c)https://hg.openjdk.java.net/jdk/jdk12/archive/tip.tar.gz
)在我自己的MacBook Pro 2019中使用英特尔芯片(macOS Monterey 12.3.1)。第一步我运行configure命令:
bash configure --with-boot-jdk='/Users/dolphin/.sdkman/candidates/java/11.0.10.hs-adpt' --with-debug-level=slowdebug --with-target-bits=64 --disable-warnings-as-errors --enable-dtrace --with-jvm-variants=server
输出如下所示:
checking if build directory is on local disk... yes
checking JVM features for JVM variant 'server'... "cds cmsgc compiler1 compiler2 dtrace epsilongc g1gc graal jfr jni-check jvmci jvmti management nmt parallelgc serialgc services shenandoahgc vm-structs"
configure: creating /Users/dolphin/source/third-party/jdk12-06222165c35f/build/macosx-x86_64-server-slowdebug/configure-support/config.status
config.status: creating /Users/dolphin/source/third-party/jdk12-06222165c35f/build/macosx-x86_64-server-slowdebug/spec.gmk
config.status: creating /Users/dolphin/source/third-party/jdk12-06222165c35f/build/macosx-x86_64-server-slowdebug/bootcycle-spec.gmk
config.status: creating /Users/dolphin/source/third-party/jdk12-06222165c35f/build/macosx-x86_64-server-slowdebug/buildjdk-spec.gmk
config.status: creating /Users/dolphin/source/third-party/jdk12-06222165c35f/build/macosx-x86_64-server-slowdebug/compare.sh
config.status: creating /Users/dolphin/source/third-party/jdk12-06222165c35f/build/macosx-x86_64-server-slowdebug/Makefile
====================================================
The existing configuration has been successfully updated in
/Users/dolphin/source/third-party/jdk12-06222165c35f/build/macosx-x86_64-server-slowdebug
using configure arguments '--with-boot-jdk=/Users/dolphin/.sdkman/candidates/java/11.0.10.hs-adpt --with-debug-level=slowdebug --with-target-bits=64 --disable-warnings-as-errors --enable-dtrace --with-jvm-variants=server'.
Configuration summary:
* Debug level: slowdebug
* HS debug level: debug
* JVM variants: server
* JVM features: server: 'cds cmsgc compiler1 compiler2 dtrace epsilongc g1gc graal jfr jni-check jvmci jvmti management nmt parallelgc serialgc services shenandoahgc vm-structs'
* OpenJDK target: OS: macosx, CPU architecture: x86, address length: 64
* Version string: 12-internal+0-adhoc.dolphin.jdk12-06222165c35f (12-internal)
Tools summary:
* Boot JDK: openjdk version "11.0.10" 2021-01-19 OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.10+9) OpenJDK 64-Bit Server VM AdoptOpenJDK (build 11.0.10+9, mixed mode) (at /Users/dolphin/.sdkman/candidates/java/11.0.10.hs-adpt)
* Toolchain: clang (clang/LLVM from Xcode 13.2.1)
* C Compiler: Version 13.0.0 (at /usr/bin/clang)
* C++ Compiler: Version 13.0.0 (at /usr/bin/clang++)
Build performance summary:
* Cores to use: 12
* Memory limit: 16384 MB
没有错误输出。使用以下命令生成项目时:
make CONF=macosx-x86_64-server-slowdebug compile-commands
显示如下错误:
$ make CONF=macosx-x86_64-server-slowdebug compile-commands ‹ruby-2.7.2›
make[1]: /Users/dolphin/source/third-party/jdk12-06222165c35f/test/make/TestMake.gmk: No such file or directory
make[1]: *** No rule to make target `/Users/dolphin/source/third-party/jdk12-06222165c35f/test/make/TestMake.gmk'. Stop.
/usr/local/bin/bash: line 1: /Users/dolphin/source/third-party/jdk12-06222165c35f/build/macosx-x86_64-server-slowdebug/make-support/main-targets.gmk: No such file or directory
make[1]: *** [create-main-targets-include] Error 1
make: *** No rule to make target `compile-commands'. Stop.
我也试过:
$ make CONF=macosx-x86_64-server-slowdebug ‹ruby-2.7.2›
make[1]: /Users/dolphin/source/third-party/jdk12-06222165c35f/test/make/TestMake.gmk: No such file or directory
make[1]: *** No rule to make target `/Users/dolphin/source/third-party/jdk12-06222165c35f/test/make/TestMake.gmk'. Stop.
/usr/local/bin/bash: line 1: /Users/dolphin/source/third-party/jdk12-06222165c35f/build/macosx-x86_64-server-slowdebug/make-support/main-targets.gmk: No such file or directory
make[1]: *** [create-main-targets-include] Error 1
make: Nothing to be done for `default'.
我该怎么解决这个问题?
错误缺少规则:
make: *** No rule to make target `compile-commands'. Stop.
make: Nothing to be done for `default'.
你要做一个jdk的命令是:
make images
输出将在build/中
问题内容: 我在Windows中使用Code :: Blocks。 我创建了一个dll项目,试图获得一些JNI实践。 在javah生成的.h文件中,有#include jni.h,但是当我尝试对其进行编译时,它总是说jni.h:没有这样的文件或目录。 我认为这与classpath有关,但我不知道它是什么!可能是我必须更改Code :: Blocks的设置 有人可以帮我解决这个问题吗?非常感谢 编辑
问题内容: 我从节点应用程序收到此错误: 我知道文件在那里,因为当我尝试使用确切的复制和粘贴路径打开文件时,它可以工作。我也知道应用程序使用的是正确的目录,因为它会在错误中输出它。 问题答案: 波浪形扩展是一件空壳的事情。编写正确的路径名(可能是yourusername )或使用
问题内容: 我最近在运行Ubuntu 12.04 LTS的Macbook Pro上安装了用于C ++开发的KDevelop 4。 我想在我的C ++代码中嵌入Python应用程序。为此,需要包含Python.h头文件。所以,我做到了。 但是,在运行时,我从IDE收到以下响应: 但是,我很快就发现了问题。我还没有下载python- dev软件包。所以,我做到了。我又跑了一次,但同样的错误又出现了。因
问题内容: 我在运行docker文件时收到来自docker的错误消息。就是说/ var / lib / docker / aufs / layers / xxxx:运行Docker build时没有这样的文件或目录。 我尝试了多种方法来删除容器和图像,因此我对此非常有兴趣。 任何 Docker文件为: 完整的控制台输出为: 编辑 @BMitchs的建议解决了该问题: rm -rf / var /
我想我没有从源代码正确安装pylint。这是学习python中包如何工作的好机会。 我从源代码中安装了,我可以在我的pip列表中看到它。 我想卸载它并从pypi安装。 但是,我的2个pip是空的,但是当我使用 我得到一个错误 有没有办法删除这个bash命令?Pylint可能是安装了,但我不知道在哪里,或如何删除它? 编辑:正如评论中建议的,我尝试了这个链接查找哪个版本的包安装了pip。这也给了我一
一切正常,uri正在获取图像和路径,但在第二个acitivty返回时,图像不显示在imageView中,并在logcat中显示,请帮助 E/Ashish://storage/emulated/0/pictures/fotoaula/img_20180329_183302.jpg E/bitmapFactory:无法解码流:java.io.fileNotFoundException://storag