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

Not able to use library on windows #9

Open
BitcoinZavior opened this issue Sep 2, 2022 · 2 comments
Open

Not able to use library on windows #9

BitcoinZavior opened this issue Sep 2, 2022 · 2 comments
Assignees

Comments

@BitcoinZavior
Copy link
Contributor

Unable to use library on windows development environment.

Error: dlopen failed: library "librust.io" not found

Screenshot 2022-09-01 at 22 53 04

@BitcoinZavior BitcoinZavior self-assigned this Sep 2, 2022
@thunderbiscuit
Copy link

Related to bitcoindevkit/bdk-ffi#76 and bitcoindevkit/bdk-ffi#240.

@aniketambore
Copy link
Contributor

I encountered a similar error today while trying to run my Flutter app on Android. The error message states:

Error: Invalid argument(s): Failed to load dynamic library 'librust_bdk_ffi.so': dlopen failed: library "librust_bdk_ffi.so" not found

The code triggering the error is as follows:

Future<String?> _generateMnemonic() async {
  print('[BDK API] Generating mnemonic...');
  try {
    final mnemonic = await Mnemonic.create(WordCount.Words12);
    return mnemonic.asString();
  } catch (e) {
    print('[BDK API] Error generation mnemonic: $e');
  }
  return null;
}

Environment:

  • Flutter version: 3.10.5 (stable channel)
  • Dart version: 3.0.5
  • Operating System: Microsoft Windows [Version 10.0.22621.1702]
  • Android SDK version: 34.0.0
  • Java version: OpenJDK Runtime Environment (build 17.0.6+0-b2043.56-9586694)
  • Android Studio version: 2022.2

Flutter Doctor Output

[√] Flutter (Channel stable, 3.10.5, on Microsoft Windows [Version 10.0.22621.1702], locale en-IN)
    • Flutter version 3.10.5 on channel stable
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 796c8ef792 (3 weeks ago), 2023-06-13 15:51:02 -0700
    • Engine revision 45f6e00911
    • Dart version 3.0.5
    • DevTools version 2.23.1

[√] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at C:\Users\aniket\AppData\Local\Android\sdk
    • Platform android-34, build-tools 34.0.0
    • Java binary at: D:\AndroidStudio\jbr\bin\java
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-b2043.56-9586694)
    • All Android licenses accepted.

[√] Android Studio (version 2022.2)
    • Android Studio at D:\AndroidStudio
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-b2043.56-9586694)


[√] Connected device (3 available)
    • sdk gphone64 x86 64 (mobile) • emulator-5554 • android-x64    • Android 12 (API 31) (emulator)
    • Windows (desktop)            • windows       • windows-x64    • Microsoft Windows [Version 10.0.22621.1702]
    • Edge (web)                   • edge          • web-javascript • Microsoft Edge 114.0.1823.67

Would appreciate any guidance or assistance on resolving this issue. Thank you!

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

No branches or pull requests

3 participants