Open cavoirom opened 9 months ago
Those symbols come from the PR that added this commit, that was merged right before JavaFX 21 GA.
I'm running on macOS 13.4.1, and I can link just fine. I wonder what could have changed in 13.6.
Can you run and post the result of
nm target/gluonfx/aarch64-darwin/gvm/tmp/SVM-***/com.gluonhq.hello.hellogluon.o | grep _LMGetKbdType
Instead of running against hellogluon I ran the above command on my binary:
nm target/gluonfx/aarch64-darwin/gvm/tmp/SVM-1696523641365/***ickapi.o | grep _LMGetKbdType
No output.
There are nothing special in the dependencies:
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-controls</artifactId>
<version>${javafx.version}</version>
</dependency>
<dependency>
<groupId>io.reactivex.rxjava3</groupId>
<artifactId>rxjava</artifactId>
<version>${rxjava.version}</version>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents.core5</groupId>
<artifactId>httpcore5</artifactId>
<version>${httpcore5.version}</version>
</dependency>
For those who is facing the same issue. Here is what I found on StackOverflow: https://stackoverflow.com/q/77512693
Summary: We need to link Carbon.
Here is my configuration in the gluonfx-maven-plugin
.
<configuration>
...
<linkerArgs>
<!-- Workaround linker command failed on macOS Sonoma, details: https://stackoverflow.com/q/77512693 -->
<linkerArg>-Wl</linkerArg>
<linkerArg>-framework</linkerArg>
<linkerArg>Carbon</linkerArg>
</linkerArgs>
...
</configuration>
I'm facing this error when building native image on macOS 13.6 (Apple Silicon)
My settings
Build with GraalVM on: https://github.com/gluonhq/graal/releases
If I change the
javafxStaticSdkVersion
to21-ea+9.1
, the build will success.Expected behavior: native image will be build successfully.