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

Add JNI #35

Open
rintcius opened this issue Aug 10, 2022 · 1 comment
Open

Add JNI #35

rintcius opened this issue Aug 10, 2022 · 1 comment
Labels

Comments

@rintcius
Copy link

Should be fun :)

I had a quick try but it lead to:

[bindgen] info Struct 'JNIInvokeInterface_' was detected as having cycles
[bindgen] info Struct 'JNIInvokeInterface_' was detected as having cycles
bindgen.rendering.Error: Failed to resolve aliased definition jobjectRefType
        at bindgen.rendering.Error$.apply(Unknown Source)
        at bindgen.rendering.utils$package$AliasResolver$.create$$anonfun$1$$anonfun$1(Unknown Source)
        at bindgen.rendering.utils$package$AliasResolver$.create$$anonfun$1(Unknown Source)
        at bindgen.rendering.struct$package$.given_AliasResolver$lzyINIT1$1$$anonfun$1(Unknown Source)
        at bindgen.rendering.hack_recursive_structs$package$.go$1$$anonfun$2(Unknown Source)
        at bindgen.rendering.hack_recursive_structs$package$.go$1(Unknown Source)
        at scala.collection.mutable.ListBuffer.map(Unknown Source)
        at bindgen.rendering.hack_recursive_structs$package$.hack_recursive_structs(Unknown Source)
        at bindgen.rendering.struct$package$.struct(Unknown Source)
        at bindgen.rendering.binding$package$.binding$$anonfun$2$$anonfun$9(Unknown Source)
        at bindgen.rendering.binding$package$$$Lambda$39.applyVoid(Unknown Source)
        at scala.runtime.function.JProcedure2.apply(Unknown Source)
        at bindgen.rendering.binding$package$.liftedTree1$1(Unknown Source)
        at bindgen.rendering.binding$package$.renderAll$1$$anonfun$1(Unknown Source)
        at bindgen.rendering.binding$package$$$Lambda$26.applyVoid(Unknown Source)
        at scala.runtime.function.JProcedure1.apply(Unknown Source)
        at scala.collection.immutable.List.foreach(Unknown Source)
        at bindgen.rendering.binding$package$.binding$$anonfun$2(Unknown Source)
        at bindgen.rendering.binding$package$$$Lambda$2.applyVoid(Unknown Source)
        at scala.runtime.function.JProcedure1.apply(Unknown Source)
        at bindgen.rendering.binding$package$.binding(Unknown Source)
        at bindgen.Generate$.main$$anonfun$1(Unknown Source)
        at bindgen.Generate$$$Lambda$1.applyVoid(Unknown Source)
        at scala.runtime.function.JProcedure1.apply(Unknown Source)
        at scala.scalanative.unsafe.Zone$.apply(Unknown Source)
        at <none>.main(Unknown Source)
@keynmol
Copy link
Collaborator

keynmol commented Aug 13, 2022

Hah, this would be a fun one, especially if SN finally gains the ability to build dynamic libraries.

The Failed to resolve aliased definition <..> is the bane of my existence - so far I've only seen it on GTK and the JNI header files - and for the life of me I cannot reproduce it in a smaller environment.

@keynmol keynmol added the example label Sep 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants