Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with running build script due to EIGEN #478

Open
calebdasher opened this issue Mar 15, 2024 · 1 comment
Open

Issue with running build script due to EIGEN #478

calebdasher opened this issue Mar 15, 2024 · 1 comment

Comments

@calebdasher
Copy link

Hey, I'm having trouble trying to build this project. Here are the commands I ran and the output. I am trying to run it on a Jetson Nano B01 running Ubuntu 20.04 with ROS2 Foxy.

jetson@nano:~/Desktop/ros2_ws_testing$ cd src/
jetson@nano:~/Desktop/ros2_ws_testing/src$ cd LIO-SAM/
jetson@nano:~/Desktop/ros2_ws_testing/src/LIO-SAM$ git checkout ros2
Already on 'ros2'
Your branch is up to date with 'origin/ros2'.
jetson@nano:~/Desktop/ros2_ws_testing/src/LIO-SAM$ cd ..
jetson@nano:~/Desktop/ros2_ws_testing/src$ colcon build
Starting >>> lio_sam  
--- stderr: lio_sam                           
CMake Error at CMakeLists.txt:30 (find_package):
  By not providing "FindEigen.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "Eigen", but
  CMake did not find one.

  Could not find a package configuration file provided by "Eigen" with any of
  the following names:

    EigenConfig.cmake
    eigen-config.cmake

  Add the installation prefix of "Eigen" to CMAKE_PREFIX_PATH or set
  "Eigen_DIR" to a directory containing one of the above files.  If "Eigen"
  provides a separate development package or SDK, be sure it has been
  installed.


---
Failed   <<< lio_sam [11.6s, exited with code 1]

Summary: 0 packages finished [42.5s]
  1 package failed: lio_sam
  1 package had stderr output: lio_sam

I ran this command to see if I had eigen, and it seems I do.

jetson@nano:~/Desktop/ros2_ws_testing/src$ cat /usr/include/eigen3/Eigen/src/Core/util/Macros.h | grep VERSION
#define EIGEN_WORLD_VERSION 3
#define EIGEN_MAJOR_VERSION 3
#define EIGEN_MINOR_VERSION 7
#define EIGEN_VERSION_AT_LEAST(x,y,z) (EIGEN_WORLD_VERSION>x || (EIGEN_WORLD_VERSION>=x && \
                                      (EIGEN_MAJOR_VERSION>y || (EIGEN_MAJOR_VERSION>=y && \
                                                                 EIGEN_MINOR_VERSION>=z))))
#if defined(__CC_ARM) || defined(__ARMCC_VERSION)
    ((defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901))       \
  || (defined(_LIBCPP_VERSION) && !defined(_MSC_VER)))

I don't really know what I should try, or if there is any more information someone needs to help me figure out this issue.
Thanks, for your time.

@calebdasher
Copy link
Author

Well, I fixed that error by changing the line in CMakeLists.txt from
find_package(Eigen REQUIRED)
to
find_package(Eigen3 REQUIRED)

Now I have a new error

jetson@nano:~/Desktop/ros2_ws_testing$ colcon build --symlink-install
Starting >>> lio_sam  
--- stderr: lio_sam                           
CMake Error at CMakeLists.txt:47 (rosidl_get_typesupport_target):
  Unknown CMake command "rosidl_get_typesupport_target".


---
Failed   <<< lio_sam [16.4s, exited with code 1]

Summary: 0 packages finished [47.7s]
  1 package failed: lio_sam
  1 package had stderr output: lio_sam

Hopefully I can figure this one out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant