/home/username/MyQtExample/camera/CMakeLists.txt:5: error:
No CMAKE_CXX_COMPILER could be found.Tell CMake where to find the compiler by setting either the environment variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path to the compiler,or to the compiler name if it is in the PATH.
The newly installed version of Ubuntu22.04, the new online installation of Qt_4.5.2.run, Qt version 6.4.0, and Qt Creator version 10.0.0, are relatively new systems and tools, but when running the built-in routines of Qt Creator, it appears CMake_CXX_COMPILER did not find the problem. Following this prompt, I checked the build and run settings, and indeed the GCC and G++ columns are empty, and then
gcc --version
g++ --version
Also reported not found, then according to this information, to install gcc and g++, execute:
sudo apt install gcc
sudo apt install g++
Then look at the above version, and then open the Qt build and run. The default desktop also has gcc and g++. The default path is:
/usr/bin/gcc
/usr/bin/g++
But the Qt routine still reported that the compiler could not find this error.
is having a