Skip to content

Packaged libmonero-cpp.dll does not seem to load with current MSYS2 boost #111

@mr-nv

Description

@mr-nv

Hello.

I installed MSYS2 and installed all the dependencies listed here:
https://github.com/woodser/monero-cpp?tab=readme-ov-file#windows

When calling MoneroUtils.loadNativeLibrary() with monero-java being added through Gradle (not built from source), it fails with the following error:

Caused by: java.lang.UnsatisfiedLinkError: (temp path)\libmonero-cpp.dll: The specified procedure could not be found
	at java.base/jdk.internal.loader.NativeLibraries.load(Native Method)
	at java.base/jdk.internal.loader.NativeLibraries$NativeLibraryImpl.open(NativeLibraries.java:388)
	at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:232)
	at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:174)
	at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2394)
	at java.base/java.lang.Runtime.load0(Runtime.java:755)
	at java.base/java.lang.System.load(System.java:1957)
	at monero.common.MoneroUtils.loadNativeLibrary(MoneroUtils.java:114)

When using Dependencies to find out more about the error, it appears that monero-cpp tries to import some functions from boost's filesystem library that are no longer present:
Screenshot_5765

The version of boost that I have is 1.86.0:
image

Is this a real problem or did I install boost somehow wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions