Я выполняю эти учебники:Ошибка настройки Catkin рабочего пространства
На этапе catkin_make я получаю сообщение об ошибке:
-- The C compiler identification is unknown
CMake Error at /usr/share/cmake-2.8/Modules/CMakeDetermineCCompiler.cmake:186 (configure_file):
configure_file Problem configuring file
-- The CXX compiler identification is unknown
CMake Error at /usr/share/cmake-2.8/Modules/CMakeDetermineCXXCompiler.cmake:185 (configure_file):
configure_file Problem configuring file
-- Check for working C compiler: /usr/bin/cc
CMake Error at /usr/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:47 (try_compile):
Unknown extension ".c" for file
/home/manoj/catkin_ws/build/CMakeFiles/CMakeTmp/testCCompiler.c
try_compile() works only for enabled languages. Currently these are:
C CXX
See project() command to enable other languages.
-- Check for working C compiler: /usr/bin/cc -- broken
CMake Error at /usr/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:61 (message):
The C compiler "/usr/bin/cc" is not able to compile a simple test program.
It fails with the following output:
Я попытался установить переменные окружения CC и CXX в/USR/бен/НКУ и/USR/бен/г ++, но без использования.
Также попробовал свежую установку cmake, все еще бесполезно. Я использую Ubuntu в подсистеме Windows для Linux.
Помощь! Заранее спасибо.
Это не кажется logicaly, но вы можете попробовать добавить [ 'ENABLE_LANGUAGE (C)'] (http://www.grokit.ca/cnt/CMakeProblemsSolutions/)? – Antonio
Если вы хотите, вы можете попробовать [обновить свой CMake] (http://askubuntu.com/questions/355565/how-to-install-latest-cmake-version-in-linux-ubuntu-from-command-line/ 595441 # 595441). – Antonio