HKUST-Aerial-Robotics / Fast-Planner

A Robust and Efficient Trajectory Planner for Quadrotors
GNU General Public License v3.0
2.4k stars 665 forks source link

ros-noetic build failed on jetson #171

Closed lida2003 closed 4 months ago

lida2003 commented 4 months ago

Just followed readme and got below error, any idea and how to fix it?

daniel@nvidia:~/HKUST$ catkin_make
Base path: /home/daniel/HKUST
Source space: /home/daniel/HKUST/src
Build space: /home/daniel/HKUST/build
Devel space: /home/daniel/HKUST/devel
Install space: /home/daniel/HKUST/install
####
#### Running command: "cmake /home/daniel/HKUST/src -DCATKIN_DEVEL_PREFIX=/home/daniel/HKUST/devel -DCMAKE_INSTALL_PREFIX=/home/daniel/HKUST/install -G Unix Makefiles" in "/home/daniel/HKUST/build"
####
-- Using CATKIN_DEVEL_PREFIX: /home/daniel/HKUST/devel
-- Using CMAKE_PREFIX_PATH: /opt/ros/noetic
-- This workspace overlays: /opt/ros/noetic
-- Found PythonInterp: /usr/bin/python3 (found suitable version "3.8.10", minimum required is "3")
-- Using PYTHON_EXECUTABLE: /usr/bin/python3
-- Using Debian Python package layout
-- Using empy: /usr/lib/python3/dist-packages/em.py
-- Using CATKIN_ENABLE_TESTING: ON
-- Call enable_testing()
-- Using CATKIN_TEST_RESULTS_DIR: /home/daniel/HKUST/build/test_results
-- Forcing gtest/gmock from source, though one was otherwise available.
-- 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/python3 (found version "3.8.10")
-- Using Python nosetests: /usr/bin/nosetests3
-- catkin 0.8.10
-- BUILD_SHARED_LIBS is on
-- BUILD_SHARED_LIBS is on
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- ~~  traversing 20 packages in topological order:
-- ~~  - quadrotor_msgs
-- ~~  - cmake_utils
-- ~~  - map_generator
-- ~~  - plan_env
-- ~~  - bspline
-- ~~  - bspline_opt
-- ~~  - path_searching
-- ~~  - poly_traj
-- ~~  - pose_utils
-- ~~  - multi_map_server
-- ~~  - rviz_plugins
-- ~~  - so3_control
-- ~~  - local_sensing_node
-- ~~  - odom_visualization
-- ~~  - so3_disturbance_generator
-- ~~  - traj_utils
-- ~~  - plan_manage
-- ~~  - uav_utils
-- ~~  - so3_quadrotor_simulator
-- ~~  - waypoint_generator
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- +++ processing catkin package: 'quadrotor_msgs'
-- ==> add_subdirectory(Fast-Planner/uav_simulator/Utils/quadrotor_msgs)
-- Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy
-- quadrotor_msgs: 13 messages, 0 services
CMake Error at /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:146 (message):
  Could NOT find Eigen3 (missing: EIGEN3_INCLUDE_DIR EIGEN3_VERSION_OK)
  (Required is at least version "2.91.0")
Call Stack (most recent call first):
  /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:393 (_FPHSA_FAILURE_MESSAGE)
  Fast-Planner/uav_simulator/Utils/quadrotor_msgs/cmake/FindEigen3.cmake:76 (find_package_handle_standard_args)
  Fast-Planner/uav_simulator/Utils/quadrotor_msgs/CMakeLists.txt:101 (find_package)

-- Configuring incomplete, errors occurred!
See also "/home/daniel/HKUST/build/CMakeFiles/CMakeOutput.log".
See also "/home/daniel/HKUST/build/CMakeFiles/CMakeError.log".
Invoking "cmake" failed

CMakeError.log CMakeOutput.log

PS: libpthread-stubs0-dev installed

p   libblis-pthread-dev                                                                      - BLAS-like Library Instantiation Software Framework (dev,32bit,pthread)
p   libblis3-pthread                                                                         - BLAS-like Library Instantiation Software Framework (32bit,pthread)
p   libblis64-3-pthread                                                                      - BLAS-like Library Instantiation Software Framework (64bit,pthread)
p   libblis64-pthread-dev                                                                    - BLAS-like Library Instantiation Software Framework (dev,64bit,pthread)
idA libevent-pthreads-2.1-7                                                                  - Asynchronous event notification library (pthreads)
p   libopenblas-pthread-dev                                                                  - Optimized BLAS (linear algebra) library (dev, pthread)
p   libopenblas0-pthread                                                                     - Optimized BLAS (linear algebra) library (shared lib, pthread)
p   libopenblas64-0-pthread                                                                  - Optimized BLAS (linear algebra) library (shared lib, 64bit, pthread)
p   libopenblas64-pthread-dev                                                                - Optimized BLAS (linear algebra) library (dev, 64bit, pthread)
i A libpthread-stubs0-dev                                                                    - pthread stubs not provided by native libc, development files
p   libpthread-workqueue-dev                                                                 - thread pool library (development files)
p   libpthread-workqueue0                                                                    - thread pool library
p   libsundials-nvecparallel-pthread3                                                        - Pthread vector operations library (SUNDIALS library)

--- EDIT: And my hello world for pthread works fine with gcc test.c -lpthread, so it should not be pthread library issue. so what's wrong with catkin_make

lida2003 commented 4 months ago

Linux 35.5 + JetPack v5.1.3@ros-noetic安装