I am not able to run flutter application (linux development)
I am facing a problem last two days..
I want to use flutter for Linux development (as it is part of college course), all of the requirements is full filled that flutter wants.
(Here is my flutter doctor)
```
Linux toolchain - develop for Linux desktop
• Ubuntu clang version 14.0.0-1ubuntu1
• cmake version 3.22.1
• ninja version 1.10.1
• pkg-config version 0.29.2
[!] Android Studio (not installed)
• Android Studio not found; download from
https:/
(or visit https:/
for detailed instructions).
[✓] VS Code (version 1.77.3)
• VS Code at /usr/share/code
• Flutter extension version 3.62.0
[✓] Connected device (1 available)
• Linux (desktop) • linux • linux-x64 • Ubuntu 22.04.2 LTS 5.19.0-40-generic
[✓] HTTP Host Availability
• All required HTTP hosts are available
```
below is the problem with clang
```
[ +7 ms] CMake Error at
/usr/share/
[ +27 ms] The C++ compiler
[ +2 ms] "/usr/bin/clang++"
[ +2 ms] is not able to compile a simple test program.
[ +1 ms] It fails with the following output:
[ +1 ms] Change Dir:
/media/
MakeFiles/CMakeTmp
[ +2 ms] Run Build Command(
CXX object CMakeFiles/
[ +1 ms] [2/2] Linking CXX executable cmTC_e6945
[ +1 ms] FAILED: cmTC_e6945
[ +1 ms] : && /usr/bin/clang++
CMakeFiles/
[ +2 ms] /usr/bin/ld: cannot find -lstdc++: No such file or directory
[ +1 ms] clang: error: linker command failed with exit code 1 (use -v to
see invocation)
[ +1 ms] ninja: build stopped: subcommand failed.
[ +1 ms] CMake will not be able to correctly generate this project.
[ +1 ms] Call Stack (most recent call first):
[ +14 ms] CMakeLists.txt:3 (project)
```
thanks in advance.
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Ali_Niaz
- Solved:
- Last query:
- Last reply: