BlackHole icon indicating copy to clipboard operation
BlackHole copied to clipboard

Cannot Run using flutter command on Ubuntu 22.04 LTS

Open dmdhrumilmistry opened this issue 2 years ago • 2 comments

I have latest ubuntu LTS system with flutter installed with linux desktop enabled But I'm unable to run the application.

$ flutter run
"ar": 323 untranslated message(s).
"bn": 288 untranslated message(s).
"es": 17 untranslated message(s).
"gu": 194 untranslated message(s).
"he": 23 untranslated message(s).
"hi": 11 untranslated message(s).
"it": 40 untranslated message(s).
"ja": 58 untranslated message(s).
"kn": 293 untranslated message(s).
"ml": 153 untranslated message(s).
"mn": 314 untranslated message(s).
"ne": 231 untranslated message(s).
"or": 322 untranslated message(s).
"pl": 121 untranslated message(s).
"ru": 18 untranslated message(s).
"ur": 323 untranslated message(s).
"vi": 320 untranslated message(s).
"zh_Hans": 323 untranslated message(s).
To see a detailed report, use the untranslated-messages-file 
option in the l10n.yaml file:
untranslated-messages-file: desiredFileName.txt
<other option>: <other selection> 


This will generate a JSON format file containing all messages that 
need to be translated.
Launching lib/main.dart on Linux in debug mode...
CMake Error at /snap/flutter/111/usr/share/cmake-3.10/Modules/CMakeTestCXXCompiler.cmake:45 (message):
  The C++ compiler

    "/snap/flutter/current/usr/bin/clang++"

  is not able to compile a simple test program.

  It fails with the following output:

    Change Dir: /home/username/repos/BlackHole/build/linux/x64/debug/CMakeFiles/CMakeTmp

    Run Build Command:"/snap/flutter/current/usr/bin/ninja" "cmTC_1e174"
    [1/2] Building CXX object CMakeFiles/cmTC_1e174.dir/testCXXCompiler.cxx.o
    [2/2] Linking CXX executable cmTC_1e174
    FAILED: cmTC_1e174 
    : && /snap/flutter/current/usr/bin/clang++    -L/snap/flutter/current/usr/lib/gcc/x86_64-linux-gnu/8 -L/snap/flutter/current/usr/lib/x86_64-linux-gnu -lblkid -lgcrypt -llzma -lpthread -ldl -L/snap/flutter/current/usr/lib/ -L/snap/flutter/current/usr/lib/gcc/x86_64-linux-gnu/8 -L/snap/flutter/current/usr/lib/x86_64-linux-gnu -lblkid -lgcrypt -llzma -lpthread -ldl -L/snap/flutter/current/usr/lib/ CMakeFiles/cmTC_1e174.dir/testCXXCompiler.cxx.o  -o cmTC_1e174   && :
    /snap/flutter/current/usr/bin/ld: warning: /usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu/crt1.o: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0008002
    /usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu/libgcc_s.so.1: undefined reference to `_dl_find_object@GLIBC_2.35'
    //lib/x86_64-linux-gnu/libgpg-error.so.0: undefined reference to `__libc_single_threaded@GLIBC_2.32'
    //lib/x86_64-linux-gnu/libgpg-error.so.0: undefined reference to `pthread_mutex_trylock@GLIBC_2.34'
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    ninja: build stopped: subcommand failed.




  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:2 (project)


Building Linux application...                                           
Exception: Unable to generate build files

dmdhrumilmistry avatar May 05 '22 17:05 dmdhrumilmistry

got the same problem bro

badushaebrahim avatar May 24 '22 16:05 badushaebrahim

Is there any fix?

dmdhrumilmistry avatar May 24 '22 18:05 dmdhrumilmistry