[SOLVED] Flutter Error: cmake error : debugging new project
Flutter Error: cmake error : debugging new project
I just start a new flutter project in vscode , when I want debugging the project , I got Error:
Could not find compiler set in environment variable CXX:
clang++.
Call Stack (most recent call first):
CMakeLists.txt:3 (project)
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
Exception: Unable to generate build files
I search on internet , and I found my “cmake” package , doesn’t have g++.exe , so install it manually by following command line:
sudo apt-get install g++
but it doesn’t work , how can I solve it?
Solution
I found the solution:
1- first run this command line :
sudo apt-get install clang cmake ninja-build pkg-config libgtk-3-dev
2- run flutter clean , but you must run it from your project root , done!
source : here
Answered By — irmoah80
Answer Checked By — Clifford M. (FixIt Volunteer)
This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0
메타데이터
- post_id
- 01b7be9d2084
- slug
- solved-flutter-error-cmake-error-debugging-new-project-01b7be9d2084
- url
- https://medium.com/@fixitblog/solved-flutter-error-cmake-error-debugging-new-project-01b7be9d2084
- canonical_url
- https://medium.com/@fixitblog/solved-flutter-error-cmake-error-debugging-new-project-01b7be9d2084
- author_url
- https://medium.com/@fixitblog
- status
- ok
- fetched_at
- 2026-08-30 01:21:22