DroidAITech / ROS-Academy-for-Beginners-Book-Melodic

中国大学MOOC---《机器人操作系统入门》讲义,升级版本
177 stars 95 forks source link

关于工程编译的问题 #1

Open leikevin opened 4 years ago

leikevin commented 4 years ago

老师好,

     使用catkin_make后,生成build目录,在build目录中执行make -j8 -l8不会进行编译。

【我的操作步骤】 mkdir catkin_ws/src -p cd catkin_ws/src git clone https://github.com/DroidAITech/ROS-Academy-for-Beginners-Book-Melodic.git rosdep install --from-paths src --ignore-src --rosdistro=melodic -y catkin_make

输出: Base path: /home/liulei/workspace/08_ROS/example/catkin_ws Source space: /home/liulei/workspace/08_ROS/example/catkin_ws/src Build space: /home/liulei/workspace/08_ROS/example/catkin_ws/build Devel space: /home/liulei/workspace/08_ROS/example/catkin_ws/devel Install space: /home/liulei/workspace/08_ROS/example/catkin_ws/install

Running command: "cmake /home/liulei/workspace/08_ROS/example/catkin_ws/src -DCATKIN_DEVEL_PREFIX=/home/liulei/workspace/08_ROS/example/catkin_ws/devel -DCMAKE_INSTALL_PREFIX=/home/liulei/workspace/08_ROS/example/catkin_ws/install -G Unix Makefiles" in "/home/liulei/workspace/08_ROS/example/catkin_ws/build"

-- The C compiler identification is GNU 7.5.0 -- The CXX compiler identification is GNU 7.5.0 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Using CATKIN_DEVEL_PREFIX: /home/liulei/workspace/08_ROS/example/catkin_ws/devel -- Using CMAKE_PREFIX_PATH: /home/liulei/workspace/08_ROS/example/catkin_ws/devel;/opt/ros/melodic -- This workspace overlays: /home/liulei/workspace/08_ROS/example/catkin_ws/devel;/opt/ros/melodic -- Found PythonInterp: /usr/bin/python2 (found suitable version "2.7.17", minimum required is "2") -- Using PYTHON_EXECUTABLE: /usr/bin/python2 -- Using Debian Python package layout -- Using empy: /usr/bin/empy -- Using CATKIN_ENABLE_TESTING: ON -- Call enable_testing() -- Using CATKIN_TEST_RESULTS_DIR: /home/liulei/workspace/08_ROS/example/catkin_ws/build/test_results -- Found gtest sources under '/usr/src/googletest': gtests will be built -- Found gmock sources under '/usr/src/googletest': gmock will be built -- Found PythonInterp: /usr/bin/python2 (found version "2.7.17") -- Looking for pthread.h -- Looking for pthread.h - found -- Looking for pthread_create -- Looking for pthread_create - not found -- Looking for pthread_create in pthreads -- Looking for pthread_create in pthreads - not found -- Looking for pthread_create in pthread -- Looking for pthread_create in pthread - found -- Found Threads: TRUE
-- Using Python nosetests: /usr/bin/nosetests-2.7 -- catkin 0.7.28 -- BUILD_SHARED_LIBS is on -- BUILD_SHARED_LIBS is on -- Configuring done -- Generating done -- Build files have been written to: /home/liulei/workspace/08_ROS/example/catkin_ws/build

Running command: "make -j8 -l8" in "/home/liulei/workspace/08_ROS/example/catkin_ws/build"

====================================================================== cd build/ make -j8 -l8 (无编译输出)

anchuanxu commented 4 years ago

你好,这是课程文档仓库,非代码仓库,代码仓库下载:git clone -b melodic https://github.com/DroidAITech/ROS-Academy-for-Beginners.git