小编Rya*_*Lee的帖子

CMAKE_C_COMPILER不是现有编译器工具的完整路径

我最近浏览了distcc,无法使其正常运行。所以我

sudo apt-get remove distcc
Run Code Online (Sandbox Code Playgroud)

之后,我得到了错误

==> Processing catkin package: 'gencpp'
==> Building with env: '/opt/ros/kinetic/env.sh'
Makefile exists, skipping explicit cmake invocation...
==> make cmake_check_build_system in '/home/pi/ros_catkin_ws/build_isolated/gencpp'
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
CMake Error at CMakeLists.txt:2 (project):
  The CMAKE_C_COMPILER:

    /usr/local/bin/cc

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 …
Run Code Online (Sandbox Code Playgroud)

gcc makefile g++ distcc

6
推荐指数
1
解决办法
1万
查看次数

如何将多个.cpp文件添加到单个CMakeLists.txt中

我目前有一个项目,其中 有一个模板,CMakeLists.txt用于一个可执行文件,一个标头和一个 .cpp文件。我希望它有几个.cpp文件,但仍然要全部编译和构建。我应该如何使CMakeLists.txt文件生成并编译所有.cpp文件,如何检查它是否有效?

c++ executable header cmake

0
推荐指数
1
解决办法
1613
查看次数

标签 统计

c++ ×1

cmake ×1

distcc ×1

executable ×1

g++ ×1

gcc ×1

header ×1

makefile ×1