安装ros驱动的时候,运行catkin_make命令,出现的问题如下:
#### Running command: "cmake /home/hunter/桌面/WLR-720-ROS/src -DCATKIN_DEVEL_PREFIX=/home/hunter/桌面/WLR-720-ROS/devel -DCMAKE_INSTALL_PREFIX=/home/hunter/桌面/WLR-720-ROS/install -G Unix Makefiles" in "/home/hunter/桌面/WLR-720-ROS/build"
####
CMake Error at CMakeLists.txt:1:
Parse error. Expected a command name, got unquoted argument with text
"/opt/ros/noetic/share/catkin/cmake/toplevel.cmake".
-- Configuring incomplete, errors occurred!
Invoking "cmake" failed
src文件夹中有个的CMakeList.txt文件,进入到src文件夹中运行这个命令:
iconv -f GBK -t UTF-8 CMakeLists.txt >CMakeLists.txt
即可解决问题。