Clion 出现CMake Error: Could not find CMAKE_ROOT !!!是什么问题,应该怎么解决?

Clion CMake 错误解决方案

Clion 出现CMake Error: Could not find CMAKE_ROOT !!!是什么问题,应该怎么解决?

这是我第一次写博客,以前敲c++都用codeblocks,但是感觉codeblocks的debug功能自己一直不是特别会用。自从别人推荐我用clion以后,觉得clion debug功能是真的强大而且很好用,但是我重装了win10系统,然后重新初始化了以后(就是设一些用户名,开机密码等等一堆东西),clion就开始疯狂报错,就是
在这里插入图片描述

在这里插入图片描述
这个错误的产生原因就是clion路径里面有中文,会出现乱码,如果你发现可以通过更换路径解决这个问题那就万事大吉,但是如果你是因为刚安装了新系统,初始化时写了自己的名字,你以为这就是开机时显示的名字(虽然确实是)但也会使你c盘用户名(admin)改成了中文名,那么你只能再重装重新初始化了。

/root/.cache/JetBrains/RemoteDev/dist/4301d48e0f61a_CLion-252.23309.24/bin/cmake/linux/x64/bin/cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_MAKE_PROGRAM=/root/.cache/JetBrains/RemoteDev/dist/4301d48e0f61a_CLion-252.23309.24/bin/ninja/linux/x64/ninja -DVP_SDK_PLATFORM=VP_SDK_PLATFORM_LINUX -G Ninja -S /home/dong/vp_cloud -B /home/dong/vp_cloud -- Current build platform is [Linux] use host -- vp_context_1.0.0.12 Module Config: -- VP_SDK_OS_TYPE:VP_SDK_OS_VEEPAI -- VP_SDK_PLATFORM:VP_SDK_PLATFORM_LINUX -- VP_POWER_TYPE:VP_POWER_TYPE_LOW -- VP_NETWORK_MODE:VP_NETWORK_MODE_MOBILE -- VP_SOC_BRAND:VP_SOC_BRAND_JZ -- VP_SOC_MODEL:VP_SOC_MODEL_JZ_T41ZM -- VP_NIC_BRAND:VP_NIC_BRAND_HZ -- VP_NIC_MODEL:VP_NIC_MODEL_HZ_780E -- VP_DEVICE_TYPE:VP_DEVICE_TYPE_BW6 -- VP_MOBILE_DEVICE_TYPE:VP_MOBILE_DEVICE_TYPE_QG5 -- Current build Veepai OS -- Current build nic mode wifi:OFF mobile:ON wire:OFF -- vp_printf_1.0.0.4 Module Config: -- VP_PRINTF_ENABLE:0x01 -- VP_PRINTF_LEVEL:VP_PRINTF_LEVEL_ALL -- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE) -- Checking for one of the modules 'libavformat' CMake Error at /root/.cache/JetBrains/RemoteDev/dist/4301d48e0f61a_CLion-252.23309.24/bin/cmake/linux/x64/share/cmake-4.0/Modules/FindPkgConfig.cmake:934 (message): None of the required 'libavformat' found Call Stack (most recent call first): .dependencies/vp_cmake_1.0.0.8/vp_cmake/src/CMakeLists.txt:256 (pkg_search_module) .dependencies/vp_platform_1.0.0.19/vp_platform/CMakeLists.txt:16 (add_pkg_library) -- vp_platform not found libavformat -- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE) -- Checking for one of the modules 'libavcodec' CMake Error at /root/.cache/JetBrains/RemoteDev/dist/4301d48e0f61a_CLion-252.23309.24/bin/cmake/linux/x64/share/cmake-4.0/Modules/FindPkgConfig.cmake:934 (message): None of the required 'libavcodec' found Call Stack (most recent call first): .dependencies/vp_cmake_1.0.0.8/vp_cmake/src/CMakeLists.txt:256 (pkg_search_module) .dependencies/vp_platform_1.0.0.19/vp_platform/CMakeLists.txt:17 (add_pkg_library) -- vp_platform not found libavcodec -- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE) -- Checking for one of the modules 'libswresample' CMake Error at /root/.cache/JetBrains/RemoteDev/dist/4301d48e0f61a_CLion-252.23309.24/bin/cmake/linux/x64/share/cmake-4.0/Modules/FindPkgConfig.cmake:934 (message): None of the required 'libswresample' found Call Stack (most recent call first): .dependencies/vp_cmake_1.0.0.8/vp_cmake/src/CMakeLists.txt:256 (pkg_search_module) .dependencies/vp_platform_1.0.0.19/vp_platform/CMakeLists.txt:18 (add_pkg_library) -- vp_platform not found libswresample -- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE) -- Checking for one of the modules 'libavfilter' CMake Error at /root/.cache/JetBrains/RemoteDev/dist/4301d48e0f61a_CLion-252.23309.24/bin/cmake/linux/x64/share/cmake-4.0/Modules/FindPkgConfig.cmake:934 (message): None of the required 'libavfilter' found Call Stack (most recent call first): .dependencies/vp_cmake_1.0.0.8/vp_cmake/src/CMakeLists.txt:256 (pkg_search_module) .dependencies/vp_platform_1.0.0.19/vp_platform/CMakeLists.txt:19 (add_pkg_library) -- vp_platform not found libavfilter -- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE) -- Checking for one of the modules 'libpostproc' CMake Error at /root/.cache/JetBrains/RemoteDev/dist/4301d48e0f61a_CLion-252.23309.24/bin/cmake/linux/x64/share/cmake-4.0/Modules/FindPkgConfig.cmake:934 (message): None of the required 'libpostproc' found Call Stack (most recent call first): .dependencies/vp_cmake_1.0.0.8/vp_cmake/src/CMakeLists.txt:256 (pkg_search_module) .dependencies/vp_platform_1.0.0.19/vp_platform/CMakeLists.txt:20 (add_pkg_library) -- vp_platform not found libpostproc -- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE) -- Checking for one of the modules 'libswscale' CMake Error at /root/.cache/JetBrains/RemoteDev/dist/4301d48e0f61a_CLion-252.23309.24/bin/cmake/linux/x64/share/cmake-4.0/Modules/FindPkgConfig.cmake:934 (message): None of the required 'libswscale' found Call Stack (most recent call first): .dependencies/vp_cmake_1.0.0.8/vp_cmake/src/CMakeLists.txt:256 (pkg_search_module) .dependencies/vp_platform_1.0.0.19/vp_platform/CMakeLists.txt:21 (add_pkg_library) -- vp_platform not found libswscale -- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE) -- Checking for one of the modules 'libavutil' CMake Error at /root/.cache/JetBrains/RemoteDev/dist/4301d48e0f61a_CLion-252.23309.24/bin/cmake/linux/x64/share/cmake-4.0/Modules/FindPkgConfig.cmake:934 (message): None of the required 'libavutil' found Call Stack (most recent call first): .dependencies/vp_cmake_1.0.0.8/vp_cmake/src/CMakeLists.txt:256 (pkg_search_module) .dependencies/vp_platform_1.0.0.19/vp_platform/CMakeLists.txt:22 (add_pkg_library) -- vp_platform not found libavutil platform_dir:LINUX -- vp_crypto_1.1.0.0 Module Config: -- VP_SSL_MBEDTLS:0x01 -- VP_SSL_WOLFSSL:0x00 -- VP_SSL_LIBRARY:0x01 -- Configuring incomplete, errors occurred! [无法重新加载]
06-22
打开Clion报错CMake Error: Could not find cmake module file: CMakeDeterminefileCompiler.cmake CMake Error: Could not find cmake module file: A:/Separate file writing/cmake-build-debug/CMakeFiles/3.28.1/CMakefileCompiler.cmake CMake Error: Could not find cmake module file: CMakeDeterminewritingCompiler.cmake CMake Error: Could not find cmake module file: A:/Separate file writing/cmake-build-debug/CMakeFiles/3.28.1/CMakewritingCompiler.cmake CMake Error: Could not find cmake module file: CMakeDetermineVERSION1.0.0Compiler.cmake CMake Error: Could not find cmake module file: A:/Separate file writing/cmake-build-debug/CMakeFiles/3.28.1/CMakeVERSION1.0.0Compiler.cmake CMake Error at CMakeLists.txt:2 (project): No CMAKE_file_COMPILER could be found. Tell CMake where to find the compiler by setting the CMake cache entry CMAKE_file_COMPILER to the full path to the compiler, or to the compiler name if it is in the PATH. CMake Error: Could not find cmake module file: CMakefileInformation.cmake CMake Error at CMakeLists.txt:2 (project): No CMAKE_writing_COMPILER could be found. Tell CMake where to find the compiler by setting the CMake cache entry CMAKE_writing_COMPILER to the full path to the compiler, or to the compiler name if it is in the PATH. CMake Error: Could not find cmake module file: CMakewritingInformation.cmake CMake Error at CMakeLists.txt:2 (project): No CMAKE_VERSION1.0.0_COMPILER could be found. Tell CMake where to find the compiler by setting the CMake cache entry CMAKE_VERSION1.0.0_COMPILER to the full path to the compiler, or to the compiler name if it is in the PATH. CMake Error: Could not find cmake module file: CMakeVERSION1.0.0Information.cmake CMake Error: CMAKE_file_COMPILER not set, after EnableLanguage CMake Error: CMAKE_writing_COMPILER not set, after EnableLanguage CMake Error: CMAKE_VERSION1.0.0_COMPILER not set, after EnableLanguage怎么回事
05-11
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值