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

Can't build native cpp jni library demo #854

Open
hgourvest opened this issue Sep 14, 2023 · 0 comments
Open

Can't build native cpp jni library demo #854

hgourvest opened this issue Sep 14, 2023 · 0 comments

Comments

@hgourvest
Copy link

Can't build native cpp jni library demo

OS: Fedora 38
GCC and CLang are installed with DNF package manager
G++ is used by default.

Is there a way to select CLang instead of GCC ?

> Task :compileCpp FAILED
Dans le fichier inclus depuis /home/henri/Téléchargements/JavaCppJniLibrary-0.5.0-930919a0-groovy-dsl/src/main/cpp/greeter_impl.cpp:2:
/home/henri/Téléchargements/JavaCppJniLibrary-0.5.0-930919a0-groovy-dsl/src/main/headers/greeter.h:10:10: erreur fatale: string : Aucun fichier ou dossier de ce type
   10 | #include <string>
      |          ^~~~~~~~
compilation terminée.

Dans le fichier inclus depuis /home/henri/Téléchargements/JavaCppJniLibrary-0.5.0-930919a0-groovy-dsl/build/generated/jni-headers/com_example_greeter_Greeter.h:2,
                 depuis /home/henri/Téléchargements/JavaCppJniLibrary-0.5.0-930919a0-groovy-dsl/src/main/cpp/greeter.cpp:2:
/usr/lib/jvm/java-17-amazon-corretto/include/jni.h:39:10: erreur fatale: stdio.h : Aucun fichier ou dossier de ce type
   39 | #include <stdio.h>
      |          ^~~~~~~~~
compilation terminée.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant