You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sudo apt-get install clang cmake ninja-build pkg-config libgtk-3-dev
flutter clean
flutter run -d linux
After installing the packages, I got some weird c++ compilation errors. I also tried updating to the edge-channel, I removed the build folder, ran flutter clean and rebuilt multiple times.
Launching lib/main.dart on Linux in debug mode...
Building Linux application...
/snap/flutter/current/usr/include/x86_64-linux-gnu/c++/9/bits/c++config.h:386:2: error: #else without #if
/snap/flutter/current/usr/include/x86_64-linux-gnu/c++/9/bits/c++config.h:389:2: error: #endif without #if
/snap/flutter/current/usr/include/x86_64-linux-gnu/c++/9/bits/c++config.h:1950:2: error: #endif without #if
/snap/flutter/current/usr/include/bits/floatn.h:14:3: error: #endif without #if
/snap/flutter/current/usr/include/bits/floatn.h:16:2: error: #endif without #if
/snap/flutter/current/usr/include/bits/floatn.h:20:2: error: #endif without #if
/snap/flutter/current/usr/include/x86_64-linux-gnu/c++/9/bits/c++config.h:386:2: error: #else without #if
/snap/flutter/current/usr/include/x86_64-linux-gnu/c++/9/bits/c++config.h:389:2: error: #endif without #if
/snap/flutter/current/usr/include/x86_64-linux-gnu/c++/9/bits/c++config.h:1950:2: error: #endif without #if
/snap/flutter/current/usr/include/c++/9/bits/std_abs.h:48:15: error: expected '{'
/snap/flutter/current/usr/include/c++/9/bits/std_abs.h:48:15: error: C++ requires a type specifier for all declarations
/snap/flutter/current/usr/include/c++/9/bits/std_abs.h:48:35: error: expected expression
/snap/flutter/current/usr/include/c++/9/bits/std_abs.h:48:43: error: expected ';' after top level declarator
/snap/flutter/current/usr/include/c++/9/cstdlib:123:15: error: expected '{'
/snap/flutter/current/usr/include/c++/9/cstdlib:123:15: error: C++ requires a type specifier for all declarations
/snap/flutter/current/usr/include/c++/9/cstdlib:123:35: error: expected expression
/snap/flutter/current/usr/include/c++/9/cstdlib:123:43: error: expected ';' after top level declarator
/snap/flutter/current/usr/include/c++/9/stdlib.h:38:7: error: no member named 'abort' in namespace 'std'; did you mean '::abort'?
/snap/flutter/current/usr/include/c++/9/stdlib.h:39:7: error: no member named 'atexit' in namespace 'std'; did you mean '::atexit'?
fatal error: too many errors emitted, stopping now [-ferror-limit=]
/snap/flutter/current/usr/include/x86_64-linux-gnu/c++/9/bits/c++config.h:386:2: error: #else without #if
/snap/flutter/current/usr/include/x86_64-linux-gnu/c++/9/bits/c++config.h:389:2: error: #endif without #if
/snap/flutter/current/usr/include/x86_64-linux-gnu/c++/9/bits/c++config.h:1950:2: error: #endif without #if
/snap/flutter/current/usr/include/bits/floatn.h:14:3: error: #endif without #if
/snap/flutter/current/usr/include/bits/floatn.h:16:2: error: #endif without #if
/snap/flutter/current/usr/include/bits/floatn.h:20:2: error: #endif without #if
/snap/flutter/current/usr/include/x86_64-linux-gnu/c++/9/bits/c++config.h:386:2: error: #else without #if
/snap/flutter/current/usr/include/x86_64-linux-gnu/c++/9/bits/c++config.h:389:2: error: #endif without #if
/snap/flutter/current/usr/include/x86_64-linux-gnu/c++/9/bits/c++config.h:1950:2: error: #endif without #if
/snap/flutter/current/usr/include/c++/9/bits/std_abs.h:48:15: error: expected '{'
/snap/flutter/current/usr/include/c++/9/bits/std_abs.h:48:15: error: C++ requires a type specifier for all declarations
/snap/flutter/current/usr/include/c++/9/bits/std_abs.h:48:35: error: expected expression
/snap/flutter/current/usr/include/c++/9/bits/std_abs.h:48:43: error: expected ';' after top level declarator
/snap/flutter/current/usr/include/c++/9/cstdlib:123:15: error: expected '{'
/snap/flutter/current/usr/include/c++/9/cstdlib:123:15: error: C++ requires a type specifier for all declarations
/snap/flutter/current/usr/include/c++/9/cstdlib:123:35: error: expected expression
/snap/flutter/current/usr/include/c++/9/cstdlib:123:43: error: expected ';' after top level declarator
/snap/flutter/current/usr/include/c++/9/stdlib.h:38:7: error: no member named 'abort' in namespace 'std'; did you mean '::abort'?
/snap/flutter/current/usr/include/c++/9/stdlib.h:39:7: error: no member named 'atexit' in namespace 'std'; did you mean '::atexit'?
fatal error: too many errors emitted, stopping now [-ferror-limit=]
/snap/flutter/current/usr/include/x86_64-linux-gnu/c++/9/bits/c++config.h:386:2: error: #else without #if
/snap/flutter/current/usr/include/x86_64-linux-gnu/c++/9/bits/c++config.h:389:2: error: #endif without #if
/snap/flutter/current/usr/include/x86_64-linux-gnu/c++/9/bits/c++config.h:1950:2: error: #endif without #if
/snap/flutter/current/usr/include/bits/floatn.h:14:3: error: #endif without #if
/snap/flutter/current/usr/include/bits/floatn.h:16:2: error: #endif without #if
/snap/flutter/current/usr/include/bits/floatn.h:20:2: error: #endif without #if
/snap/flutter/current/usr/include/x86_64-linux-gnu/c++/9/bits/c++config.h:386:2: error: #else without #if
/snap/flutter/current/usr/include/x86_64-linux-gnu/c++/9/bits/c++config.h:389:2: error: #endif without #if
/snap/flutter/current/usr/include/x86_64-linux-gnu/c++/9/bits/c++config.h:1950:2: error: #endif without #if
/snap/flutter/current/usr/include/c++/9/bits/std_abs.h:48:15: error: expected '{'
/snap/flutter/current/usr/include/c++/9/bits/std_abs.h:48:15: error: C++ requires a type specifier for all declarations
/snap/flutter/current/usr/include/c++/9/bits/std_abs.h:48:35: error: expected expression
/snap/flutter/current/usr/include/c++/9/bits/std_abs.h:48:43: error: expected ';' after top level declarator
/snap/flutter/current/usr/include/c++/9/cstdlib:123:15: error: expected '{'
/snap/flutter/current/usr/include/c++/9/cstdlib:123:15: error: C++ requires a type specifier for all declarations
/snap/flutter/current/usr/include/c++/9/cstdlib:123:35: error: expected expression
/snap/flutter/current/usr/include/c++/9/cstdlib:123:43: error: expected ';' after top level declarator
/snap/flutter/current/usr/include/c++/9/stdlib.h:38:7: error: no member named 'abort' in namespace 'std'; did you mean '::abort'?
/snap/flutter/current/usr/include/c++/9/stdlib.h:39:7: error: no member named 'atexit' in namespace 'std'; did you mean '::atexit'?
fatal error: too many errors emitted, stopping now [-ferror-limit=]
Exception: Build process failed
Btw, I'm on PopOS 22.04. Anyone some ideas? I will also try to install flutter manually and post here if there are the same issues.
The text was updated successfully, but these errors were encountered:
I reopened a project which I was working on before and which I definitely built before. First I had the same issues as described on this stackoverflow: https://stackoverflow.com/questions/67396100/flutter-linux-build-error-when-executing-flutter-run-d-linux
I installed the packages which were suggested:
After installing the packages, I got some weird c++ compilation errors. I also tried updating to the edge-channel, I removed the build folder, ran
flutter clean
and rebuilt multiple times.Btw, I'm on PopOS 22.04. Anyone some ideas? I will also try to install flutter manually and post here if there are the same issues.
The text was updated successfully, but these errors were encountered: