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

Improving on JniLibraryComposingFromSource-0.5.0-930919a0-kotlin-dsl #859

Open
btbouwens opened this issue Feb 9, 2024 · 0 comments
Open

Comments

@btbouwens
Copy link

I downloaded the zip file for this, and tried to build. It wouldn't because some Groovy obsolescence.

I tried again with a newer Gradle and it worked.

But then: the cpp-jni-greeter/src/main/headers/com_example_greeter_Greeter.h should not be there, as it is also generated by the java-jni-greeter subproject, which will be picked up by:

@@ -20,7 +21,7 @@ library {
                                it.operatingSystem.isLinux -> listOf(File("${Jvm.current().javaHome.absolutePath}/include/linux"))
                                it.operatingSystem.isWindows -> listOf(File("${Jvm.current().javaHome.absolutePath}/include/win32"))
                                else -> emptyList()
-                       }
+                       } + "../java-jni-greeter/build/generated/sources/headers/java/main/"
                })
                compileTask.get().setPositionIndependentCode(true)
        }

But then, this should be built first, so a dependency should be defined. I don't understand how.

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