localcc / hid_listener

Keyboard/Mouse event listener library for flutter
MIT License
9 stars 6 forks source link

Linker command failed on Linux #2

Closed dzen1984 closed 5 months ago

dzen1984 commented 1 year ago

I have added the package and now my app does not build. Ubuntu 22.04

Launching lib/main.dart on Linux in debug mode...
Building Linux application...
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Exception: Build process failed

if I remove this package, everything works well. Any thought?

localcc commented 1 year ago

Please run flutter build -v and send the logs

riskyRahul commented 7 months ago

i have added the package in my app but dose not build Ubuntu 22.04

Launching lib/main.dart on Linux in debug mode... clang: error: linker command failed with exit code 1 (use -v to see invocation) Building Linux application...
Exception: Build process failed

riskyRahul commented 7 months ago

if i am run this flutter build -v

[+1279 ms] executing: uname -m [ +184 ms] Exit code 0 from: uname -m [ +63 ms] x86_64 [+1676 ms] Missing subcommand for "flutter build".

[ +112 ms] Run 'flutter -h' (or 'flutter -h') for available flutter commands and options. [ +383 ms] ensureAnalyticsSent: 3ms [ +16 ms] Running 0 shutdown hooks [ +8 ms] Shutdown hooks complete [ +12 ms] exiting with code 64

localcc commented 7 months ago

what's the output of flutter doctor -v for you?

riskyRahul commented 7 months ago

[+1279 ms] executing: uname -m [ +184 ms] Exit code 0 from: uname -m [ +63 ms] x86_64 [+1676 ms] Missing subcommand for "flutter build".

[ +112 ms] Run 'flutter -h' (or 'flutter -h') for available flutter commands and options. [ +383 ms] ensureAnalyticsSent: 3ms [ +16 ms] Running 0 shutdown hooks [ +8 ms] Shutdown hooks complete [ +12 ms] exiting with code 64

On Tue, Nov 21, 2023 at 3:08 PM localcc @.***> wrote:

what's the output of flutter doctor -v for you?

— Reply to this email directly, view it on GitHub https://github.com/localcc/hid_listener/issues/2#issuecomment-1820557069, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIS576E6A6YH6ZJR6ND5MSDYFRZAJAVCNFSM6AAAAAAV6FFFIGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRQGU2TOMBWHE . You are receiving this because you commented.Message ID: @.***>

HaseebUllahAbbasi commented 6 months ago

linker issue also exists on Ubuntu 22

HaseebUllahAbbasi commented 6 months ago

@riskyRahul @localcc @dzen1984 , did you got any solution on this linker on ubuntu

localcc commented 6 months ago

Could you provide me with the output of flutter doctor -v and specify the full version of ubuntu you have?

HaseebUllahAbbasi commented 6 months ago

Output of flutter doctor -v

$ flutter doctor -v

[✓] Flutter (Channel stable, 3.16.4, on Ubuntu 22.04.3 LTS 6.2.0-37-generic, locale en_US.UTF-8)
    • Flutter version 3.16.4 on channel stable at /home/haseeb/snap/flutter/common/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 2e9cb0aa71 (7 days ago), 2023-12-11 14:35:13 -0700
    • Engine revision 54a7145303
    • Dart version 3.2.3
    • DevTools version 2.28.4

[✗] Android toolchain - develop for Android devices
    ✗ Unable to locate Android SDK.
      Install Android Studio from: https://developer.android.com/studio/index.html
      On first launch it will assist you in installing the Android SDK components.
      (or visit https://flutter.dev/docs/get-started/install/linux#android-setup for detailed instructions).
      If the Android SDK has been installed to a custom location, please use
      `flutter config --android-sdk` to update to that location.

[✗] Chrome - develop for the web (Cannot find Chrome executable at google-chrome)
    ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.

[✓] Linux toolchain - develop for Linux desktop
    • clang version 10.0.0-4ubuntu1
    • cmake version 3.16.3
    • ninja version 1.10.0
    • pkg-config version 0.29.1

[!] Android Studio (not installed)
    • Android Studio not found; download from https://developer.android.com/studio/index.html
      (or visit https://flutter.dev/docs/get-started/install/linux#android-setup for detailed instructions).

[✓] VS Code (version 1.77.0)
    • VS Code at /usr/share/code
    • Flutter extension version 3.78.0

[✓] Connected device (1 available)
    • Linux (desktop) • linux • linux-x64 • Ubuntu 22.04.3 LTS 6.2.0-37-generic

[✓] Network resources
    • All expected network resources are available.

! Doctor found issues in 3 categories. 

@localcc here is the log

localcc commented 5 months ago

This issue only occurs when flutter is installed from the snap store. To fix this issue your flutter installation must not be from the snap store. If you are running the app inside vscode the vscode install should also not be from the snap store.