jnilib.dll: Can’t find dependent libraries

Issue

This Content is from Stack Overflow. Question asked by John Mayot

The fact is that I made my binder for games using the Java Native Interface, but apparently I did not compile the DLL correctly, since everything works fine for me (AMD64), and for a friend (Intel) it gives an UnsatisfiedLinkError: Can’t find error dependent libraries. By the way, I’m using CMake to generate the dynamic library. My friend and I both have Windows 10 x64. Java 17 x64

Tree:

  • binder.jar
  • jnilib.dll

code

I think it’s because I didn’t compile the DLL correctly. Can you tell me how can I compile DLL for other systems using Cmake & Visual Studio 17 2022



Solution

Check the Answers

This Question and Answer are collected from stackoverflow and tested by JTuto community, is licensed under the terms of CC BY-SA 2.5. - CC BY-SA 3.0. - CC BY-SA 4.0.

people found this article helpful. What about you?