Skip to content

Fix warning on unnecessary double load of openpnp-capture library #10

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

craigraw
Copy link

Currently, the JNAeator generated code loads the openpnp-capture twice, leading to the following warning:

Class PlatformAVCaptureDelegate is implemented in both ../Library/Caches/JNA/temp/jna10042956694623537098.tmp (0x14b6ac5f8) and ../Library/Caches/JNA/temp/jna8716218045893292183.tmp (0x14b7345f8). One of the two will be used. Which one is undefined.

The warning is harmless but unncessary, since Native.load calls NativeLibrary.getInstance anyway and JNA_NATIVE_LIB is never referenced. This PR comments out one of the load directives to remove the warning.

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

Successfully merging this pull request may close these issues.

1 participant