Open ochafik opened 9 years ago
I'm having trouble using BridJ to implement OpenVR support for a Java engine, jMonkeyEngine. I get the error "Invalid return value type !" when this function is run:
I think it is related to this "issue", right? Any possible workaround or solution here? I don't have access to the OpenVR source code. I'd love to continue to use BridJ. What are my options?
I'm also experiencing this issue with TreeSitter, where many structs are passed by value (notably TSNode
): https://github.com/tree-sitter/tree-sitter/blob/master/lib/include/tree_sitter/api.h
I can call the parser from Java (which returns a TSTree *
), but I can't inspect the tree from Java as that requires passing TSNode
s by value. This is quite a big limitation of the Maven plugin for TreeSitter: https://github.com/mpsijm/java-tree-sitter#limitations
From @ivangfr on January 19, 2015 14:41
Hi,
I have a function with this signature:
However, when I execute it, I get a RuntimeException error: "Failed to get low-level struct representation !"
I implemented a second version of the function, now the second parameter is a pointer:
Now it works.
Googling about it, I found this (https://groups.google.com/forum/#!topic/nativelibs4java/Xj4Y-yTB8DI) when you said that
So, I would like to confirm if it's not implemented in the version 0.6.2? Do you plan to implement it in the next versions?
Congratulations! It's a great project!
Regards
Copied from original issue: ochafik/nativelibs4java#554