ZBLOG

No CMAKE_CXX_COMPILER could be found.

This error message commonly occurs when CMake is unable to locate a valid C++ compiler on the system. This can happen if the compiler is not installed, or if it is installed but its location is not included in the system path.

To resolve this error, you will need to ensure that a valid C++ compiler is installed on the system and its location is included in the system path. You can check the availability of a C++ compiler by running the following command in a terminal:

$ g++ --version

If the command returns a version number, then the compiler is installed and you can add its location to the system path by modifying the PATH environment variable. For example, on Linux/MacOS systems, you can add the following line to your bash profile:

export PATH=/usr/local/bin:$PATH

On Windows systems, you can modify the system path by going to Control Panel > System and Security > System > Advanced system settings > Environment Variables and editing the Path variable.

Once a valid C++ compiler has been installed and added to the system path, you should be able to run CMake without encountering the “No CMAKE_CXX_COMPILER could be found” error.

本站部分文章来源于网络,版权归原作者所有,如有侵权请联系站长删除。
转载请注明出处:https://golang.0voice.com/?id=1719

分享:
扫描分享到社交APP
上一篇
下一篇
发表列表
游客 游客
此处应有掌声~
评论列表

还没有评论,快来说点什么吧~

联系我们

在线咨询: 点击这里给我发消息

微信号:3007537140

上班时间: 10:30-22:30

关注我们
x

注册

已经有帐号?