升级QT版本,并把老的版本卸载后,打开原来的项目报错如下:
CMAKE_C_COMPILER xxx(原gcc路径) is not a full path to an existing compiler tool. Tell CMake where to find the compiler by setting either the environment variable CC; or the CMake cache entry CMAKE_C_COMPILER to the full path to the compiler, or to the compiler name if it is in the PATH.
针对本次遇到的问题,真正有用的是加粗的the CMake cache,即需要删除原来的build目录。如果不想全部删除(因为要重编),删除build目录下的CMakeCache.txt也可以。
不禁想起经典 CMake 笑话:“99%的CMake错误可以用删build解决” “删 build 大法好”。