Issue
I have a JavaFx project that I am compiling to native with no problems using GluonFx.
I recently had to add a feature that uses a DLL through to make use of its native functions. I have done this through GraalVm using this solution: href="https://yyhh.org/blog/2021/02/writing-c-code-in-javaclojure-graalvm-specific-programming/" rel="nofollow noreferrer">https://yyhh.org/blog/2021/02/writing-c-code-in-javaclojure-graalvm-specific-programming/
Now when trying to compile to native with gluonfx:build I am getting the following error:
[Project source] package org.graalvm.nativeimage.c does not exist
[Project source] package org.graalvm.nativeimage.c.function does not exist
[Project source] package org.graalvm.nativeimage.c.function does not exist
[Project source] package org.graalvm.nativeimage.c.struct does not exist
[Project source] package org.graalvm.nativeimage.c.struct does not exist
[Project source] package org.graalvm.nativeimage.c.type does not exist
[Project source] package org.graalvm.nativeimage.c.type does not exist
[Project source] package org.graalvm.nativeimage.c.type does not exist
[Project source] package org.graalvm.word does not exist
[Project source] cannot find symbol symbol: class CContext
[Project source]cannot find symbol symbol: class CLibrary
.....
.....
Does someone had this issue before? Shouldn't graalvm.nativeimage.c be part of the graalvm sdk?
Thanks in advance
Solution
Answered by José Pereda in comments
"Did you add the required dependencies (like org.graalvm.nativeimage:library-support) to the project?"
Adding the dependency solved my problem. Thanks
Answered By - Ikaro
Answer Checked By - Mildred Charles (JavaFixing Admin)